TCAD version

Extended arXiv version

Code