1414 MobilityModelType ,
1515 RecombinationModelType ,
1616)
17- from tidy3d .constants import (
18- CONDUCTIVITY ,
19- ELECTRON_VOLT ,
20- PERMITTIVITY ,
21- )
17+ from tidy3d .constants import CONDUCTIVITY , ELECTRON_VOLT , PERCMCUBE , PERMITTIVITY
2218
2319
2420class AbstractChargeMedium (AbstractMedium ):
@@ -47,7 +43,7 @@ def n_cfl(self):
4743class ChargeInsulatorMedium (AbstractChargeMedium ):
4844 """
4945 Insulating medium. Conduction simulations will not solve for electric
50- potential in a structure that has a medium with this ' charge' .
46+ potential in a structure that has a medium with this `` charge`` .
5147
5248 Example
5349 -------
@@ -258,21 +254,21 @@ class SemiconductorMedium(AbstractChargeMedium):
258254 N_c : pd .PositiveFloat = pd .Field (
259255 ...,
260256 title = "Effective density of electron states" ,
261- description = r"$ N_c$ Effective density of states in the conduction band." ,
262- units = "cm^(-3)" ,
257+ description = ":math:` N_c` Effective density of states in the conduction band." ,
258+ units = PERCMCUBE ,
263259 )
264260
265261 N_v : pd .PositiveFloat = pd .Field (
266262 ...,
267263 title = "Effective density of hole states" ,
268- description = r"$ N_v$ Effective density of states in the valence band." ,
269- units = "cm^(-3)" ,
264+ description = ":math:` N_v` Effective density of states in the valence band." ,
265+ units = PERCMCUBE ,
270266 )
271267
272268 E_g : pd .PositiveFloat = pd .Field (
273269 ...,
274270 title = "Band-gap energy" ,
275- description = "Band-gap energy" ,
271+ description = ":math:`E_g` Band-gap energy" ,
276272 units = ELECTRON_VOLT ,
277273 )
278274
@@ -296,8 +292,9 @@ class SemiconductorMedium(AbstractChargeMedium):
296292
297293 delta_E_g : BandGapNarrowingModelType = pd .Field (
298294 None ,
299- title = ":math:`\\ Delta E_g` Bandgap narrowing model." ,
300- description = "Bandgap narrowing model." ,
295+ title = "Bandgap narrowing model." ,
296+ description = ":math:`\\ Delta E_g` Bandgap narrowing model." ,
297+ units = ELECTRON_VOLT ,
301298 )
302299
303300 N_a : Union [pd .NonNegativeFloat , SpatialDataArray , tuple [DopingBoxType , ...]] = pd .Field (
@@ -306,7 +303,7 @@ class SemiconductorMedium(AbstractChargeMedium):
306303 description = "Concentration of acceptor impurities, which create mobile holes, resulting in p-type material. "
307304 "Can be specified as a single float for uniform doping, a :class:`SpatialDataArray` for a custom profile, "
308305 "or a tuple of geometric shapes to define specific doped regions." ,
309- units = "1/cm^3" ,
306+ units = PERCMCUBE ,
310307 )
311308
312309 N_d : Union [pd .NonNegativeFloat , SpatialDataArray , tuple [DopingBoxType , ...]] = pd .Field (
@@ -315,5 +312,5 @@ class SemiconductorMedium(AbstractChargeMedium):
315312 description = "Concentration of donor impurities, which create mobile electrons, resulting in n-type material. "
316313 "Can be specified as a single float for uniform doping, a :class:`SpatialDataArray` for a custom profile, "
317314 "or a tuple of geometric shapes to define specific doped regions." ,
318- units = "1/cm^3" ,
315+ units = PERCMCUBE ,
319316 )
0 commit comments