Skip to content

Adding units/field quantity to mesh converter

Lennart Huth requested to merge lhuth/allpix-squared:units_mesh_converter into master

Previously, only ap2 internal units have been assumed in the mesh_converter for all TCAD observables, but the ElectricField

In this MR two new config parameters are introduced:

  • observable_units: Units in which the observable is stored (Defaults to V/cm)
  • vector_field: Boolean to decide if a scalar field or vector field should be used (defaults to true)

The defaults are chosen to not change the previous behaviour if not set.

Confirmation of functionality to follow soon ;) -> Now the doping concentration in the physics model is correct when using the apf data format, before it has been a factor 1000 to high, since the TCAD default of cm^-3 have been interpret as ap2-base units of mm^-3. However, we do not see any recombination in 200ns at all now

Edited by Lennart Huth

Merge request reports