14
14
MobilityModelType ,
15
15
RecombinationModelType ,
16
16
)
17
- from tidy3d .constants import (
18
- CONDUCTIVITY ,
19
- ELECTRON_VOLT ,
20
- PERMITTIVITY ,
21
- )
17
+ from tidy3d .constants import CONDUCTIVITY , ELECTRON_VOLT , PERCMCUBE , PERMITTIVITY
22
18
23
19
24
20
class AbstractChargeMedium (AbstractMedium ):
@@ -47,7 +43,7 @@ def n_cfl(self):
47
43
class ChargeInsulatorMedium (AbstractChargeMedium ):
48
44
"""
49
45
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`` .
51
47
52
48
Example
53
49
-------
@@ -258,21 +254,21 @@ class SemiconductorMedium(AbstractChargeMedium):
258
254
N_c : pd .PositiveFloat = pd .Field (
259
255
...,
260
256
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 ,
263
259
)
264
260
265
261
N_v : pd .PositiveFloat = pd .Field (
266
262
...,
267
263
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 ,
270
266
)
271
267
272
268
E_g : pd .PositiveFloat = pd .Field (
273
269
...,
274
270
title = "Band-gap energy" ,
275
- description = "Band-gap energy" ,
271
+ description = ":math:`E_g` Band-gap energy" ,
276
272
units = ELECTRON_VOLT ,
277
273
)
278
274
@@ -296,8 +292,9 @@ class SemiconductorMedium(AbstractChargeMedium):
296
292
297
293
delta_E_g : BandGapNarrowingModelType = pd .Field (
298
294
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 ,
301
298
)
302
299
303
300
N_a : Union [pd .NonNegativeFloat , SpatialDataArray , tuple [DopingBoxType , ...]] = pd .Field (
@@ -306,7 +303,7 @@ class SemiconductorMedium(AbstractChargeMedium):
306
303
description = "Concentration of acceptor impurities, which create mobile holes, resulting in p-type material. "
307
304
"Can be specified as a single float for uniform doping, a :class:`SpatialDataArray` for a custom profile, "
308
305
"or a tuple of geometric shapes to define specific doped regions." ,
309
- units = "1/cm^3" ,
306
+ units = PERCMCUBE ,
310
307
)
311
308
312
309
N_d : Union [pd .NonNegativeFloat , SpatialDataArray , tuple [DopingBoxType , ...]] = pd .Field (
@@ -315,5 +312,5 @@ class SemiconductorMedium(AbstractChargeMedium):
315
312
description = "Concentration of donor impurities, which create mobile electrons, resulting in n-type material. "
316
313
"Can be specified as a single float for uniform doping, a :class:`SpatialDataArray` for a custom profile, "
317
314
"or a tuple of geometric shapes to define specific doped regions." ,
318
- units = "1/cm^3" ,
315
+ units = PERCMCUBE ,
319
316
)
0 commit comments