Skip to content

Commit 109dae2

Browse files
committed
Fix(docs): Add missing classes in docs and fix formatting errors
1 parent da73c2b commit 109dae2

File tree

5 files changed

+45
-16
lines changed

5 files changed

+45
-16
lines changed

docs/api/charge/mediums.rst

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,28 @@ Bandgap
5757
tidy3d.SlotboomBandGapNarrowing
5858

5959

60+
Effective Density Of States (DOS)
61+
^^^^^^^^
62+
63+
.. autosummary::
64+
:toctree: ../_autosummary/
65+
:template: module.rst
66+
67+
tidy3d.ConstantEffectiveDOS
68+
tidy3d.IsotropicEffectiveDOS
69+
tidy3d.MultiValleyEffectiveDOS
70+
tidy3d.DualValleyEffectiveDOS
71+
72+
Energy Bandgap
73+
^^^^^^^^
74+
75+
.. autosummary::
76+
:toctree: ../_autosummary/
77+
:template: module.rst
78+
79+
tidy3d.ConstantEnergyBandGap
80+
tidy3d.VarshniEnergyBandGap
81+
6082
Charge Carrier Properties
6183
------------------------------------
6284

@@ -65,4 +87,4 @@ Charge Carrier Properties
6587
:template: module.rst
6688

6789
tidy3d.LinearChargePerturbation
68-
tidy3d.CustomChargePerturbation
90+
tidy3d.CustomChargePerturbation

docs/api/spice.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ Analysis
2222
:template: module.rst
2323

2424
tidy3d.IsothermalSteadyChargeDCAnalysis
25+
tidy3d.SteadyChargeDCAnalysis
2526
tidy3d.ChargeToleranceSpec

tidy3d/components/spice/analysis/dc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class SteadyChargeDCAnalysis(Tidy3dBaseModel):
7272
fermi_dirac: bool = pd.Field(
7373
False,
7474
title="Fermi-Dirac statistics",
75-
description="Determines whether Fermi-Dirac statistics are used. When False, "
75+
description="Determines whether Fermi-Dirac statistics are used. When ``False``, "
7676
"Boltzmann statistics will be used. This can provide more accurate results in situations "
7777
"where very high doping may lead the pseudo-Fermi energy level to approach "
7878
"either the conduction or valence energy bands.",

tidy3d/components/tcad/bandgap_energy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class VarshniEnergyBandGap(Tidy3dBaseModel):
2525
-----
2626
The model implements the following formula:
2727
28-
.. math::
28+
.. math::
2929
30-
E_g(T) = E_g(0) - \\frac{\\alpha T^2}{T + \\beta}$
30+
E_g(T) = E_g(0) - \\frac{\\alpha T^2}{T + \\beta}
3131
3232
Example
3333
-------

tidy3d/components/tcad/effective_DOS.py

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pydantic.v1 as pd
77

88
from tidy3d.components.base import Tidy3dBaseModel
9-
from tidy3d.constants import HBAR, K_B, M_E_EV
9+
from tidy3d.constants import HBAR, K_B, M_E_EV, PERCMCUBE
1010
from tidy3d.exceptions import DataError
1111

1212
um_3_to_cm_3 = 1e12 # conversion factor from micron^(-3) to cm^(-3)
@@ -33,7 +33,7 @@ class ConstantEffectiveDOS(EffectiveDOS):
3333
"""Constant effective density of states model."""
3434

3535
N: pd.PositiveFloat = pd.Field(
36-
..., title="Effective DOS", description="Effective density of states", units="cm^(-3)"
36+
..., title="Effective DOS", description="Effective density of states", units=PERCMCUBE
3737
)
3838

3939
def calc_eff_dos(self, T: float):
@@ -44,11 +44,13 @@ class IsotropicEffectiveDOS(EffectiveDOS):
4444
"""Effective density of states model that assumes single valley and isotropic effective mass.
4545
The model assumes the standard equation for the 3D semiconductor with parabolic energy dispersion:
4646
47-
.. math::
47+
Notes
48+
-----
49+
50+
.. math::
51+
52+
\\mathbf{N_eff} = 2 * (\\frac{m_eff * m_e * k_B T}{2 \\pi \\hbar^2})^(3/2)
4853
49-
\\begin{equation}
50-
\\mathbf{N_eff} = 2 * (\\frac{m_eff * m_e * k_B T}{2 \\pi \\hbar^2})^(3/2)
51-
\\end{equation}
5254
"""
5355

5456
m_eff: pd.PositiveFloat = pd.Field(
@@ -65,11 +67,13 @@ class MultiValleyEffectiveDOS(EffectiveDOS):
6567
"""Effective density of states model that assumes multiple equivalent valleys and anisotropic effective mass.
6668
The model assumes the standard equation for the 3D semiconductor with parabolic energy dispersion:
6769
70+
Notes
71+
-----
72+
6873
.. math::
6974
70-
\\begin{equation}
71-
\\mathbf{N_eff} = 2 * N_valley * (m_{eff_long} * m_{eff_trans} * m_{eff_trans})^(1/2) *(\\frac{m_e * k_B * T}{2 \\pi * \\hbar^2})^(3/2)
72-
\\end{equation}
75+
N_{\\text{eff}} = 2 N_{\\text{valley}} \\left( m_{\\text{eff,long}} m_{\\text{eff,trans}}^2 \\right)^{1/2} \\left( \\frac{m_e k_B T}{2 \\pi \\hbar^2} \\right)^{3/2}
76+
7377
"""
7478

7579
m_eff_long: pd.PositiveFloat = pd.Field(
@@ -101,11 +105,13 @@ class DualValleyEffectiveDOS(EffectiveDOS):
101105
"""Effective density of states model that assumes combination of light holes and heavy holes with isotropic effective masses.
102106
The model assumes the standard equation for the 3D semiconductor with parabolic energy dispersion:
103107
108+
Notes
109+
-----
110+
104111
.. math::
105112
106-
\\begin{equation}
107-
\\mathbf{N_eff} = 2 * ( {\\frac{m_{eff_lh} * m_e * k_B * T}{2 \\pi \\hbar^2})^(3/2) + (\\frac{m_{eff_hh} * m_e * k_B * T}{2 \\pi \\hbar^2})^(3/2) )
108-
\\end{equation}
113+
N_{eff} = 2 \\left( \\frac{m_{\\text{eff, lh}} m_e k_B T}{2 \\pi \\hbar^2} \\right)^{3/2} + 2 \\left( \\frac{m_{\\text{eff, hh}} m_e k_B T}{2 \\pi \\hbar^2} \\right)^{3/2}
114+
109115
"""
110116

111117
m_eff_lh: pd.PositiveFloat = pd.Field(

0 commit comments

Comments
 (0)