Skip to content

Commit 07ddba5

Browse files
damiano-flexdaquinteroflex
authored andcommitted
docs(charge): Fix rendering & further descriptions
* Fixing charge doc typos and formatting errors.
1 parent ac0835f commit 07ddba5

File tree

18 files changed

+115
-79
lines changed

18 files changed

+115
-79
lines changed

docs/api/charge/output_data.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ Monitor Data
2828
tidy3d.SteadyElectricFieldData
2929
tidy3d.SteadyCurrentDensityData
3030

31+
Device Data
32+
^^^^^^^^^^^^
33+
34+
.. autosummary::
35+
:toctree: ../_autosummary/
36+
:template: module.rst
37+
38+
tidy3d.DeviceCharacteristics

docs/api/heat/boundary_conditions.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,13 @@ Placement
3737
tidy3d.StructureBoundary
3838
tidy3d.MediumMediumInterface
3939
tidy3d.StructureSimulationBoundary
40-
tidy3d.SimulationBoundary
40+
tidy3d.SimulationBoundary
41+
42+
Coefficient Models
43+
^^^^^^^^^^^^^^^^^
44+
45+
.. autosummary::
46+
:toctree: ../_autosummary/
47+
:template: module.rst
48+
49+
tidy3d.VerticalNaturalConvectionCoeffModel

docs/api/mediums.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ Anisotropic
139139
:template: module.rst
140140

141141
tidy3d.AnisotropicMedium
142+
tidy3d.AnisotropicMediumFromMedium2D
142143
tidy3d.FullyAnisotropicMedium
143144
tidy3d.Medium2D
144145

@@ -403,7 +404,7 @@ Multiphysics Medium
403404
.. autosummary::
404405
:toctree: _autosummary/
405406

406-
tidy3d.components.material.multi_physics.MultiPhysicsMedium
407+
tidy3d.MultiPhysicsMedium
407408

408409
This section is still under construction.
409410

docs/api/mesh/output_data.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ Individual Datasets
4545
tidy3d.PointDataArray
4646
tidy3d.CellDataArray
4747
tidy3d.IndexedDataArray
48+
tidy3d.IndexedVoltageDataArray
49+
tidy3d.IndexedTimeDataArray
50+
tidy3d.IndexedFieldVoltageDataArray

docs/api/output_data.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,4 @@ List of Dataset Types
8787
tidy3d.DiffractionDataArray
8888
tidy3d.DirectivityDataArray
8989
tidy3d.AxialRatioDataArray
90+
tidy3d.SteadyVoltageDataArray

tidy3d/components/base_sim/simulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ class AbstractSimulation(Box, ABC):
128128
title="Structure Priority Setting",
129129
description="This field only affects structures of `priority=None`. "
130130
"If `equal`, the priority of those structures is set to 0; if `conductor`, "
131-
"the priority of structures made of `LossyMetalMedium` is set to 90, "
132-
"`PECMedium` to 100, and others to 0.",
131+
"the priority of structures made of :class:`LossyMetalMedium` is set to 90, "
132+
":class:`PECMedium` to 100, and others to 0.",
133133
)
134134

135135
""" Validating setup """

tidy3d/components/material/tcad/charge.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AbstractChargeMedium(AbstractMedium):
3333
def charge(self):
3434
"""
3535
This means that a charge medium has been defined inherently within this solver medium.
36-
This provides interconnection with the `MultiPhysicsMedium` higher-dimensional classes.
36+
This provides interconnection with the :class:`MultiPhysicsMedium` higher-dimensional classes.
3737
"""
3838
return self
3939

@@ -77,7 +77,7 @@ class ChargeConductorMedium(AbstractChargeMedium):
7777
conductivity: pd.PositiveFloat = pd.Field(
7878
...,
7979
title="Electric conductivity",
80-
description=f"Electric conductivity of material in units of {CONDUCTIVITY}.",
80+
description="Electric conductivity of material.",
8181
units=CONDUCTIVITY,
8282
)
8383

@@ -296,20 +296,24 @@ class SemiconductorMedium(AbstractChargeMedium):
296296

297297
delta_E_g: BandGapNarrowingModelType = pd.Field(
298298
None,
299-
title=r"$\Delta E_g$ Bandgap narrowing model.",
299+
title=":math:`\\Delta E_g` Bandgap narrowing model.",
300300
description="Bandgap narrowing model.",
301301
)
302302

303303
N_a: Union[pd.NonNegativeFloat, SpatialDataArray, tuple[DopingBoxType, ...]] = pd.Field(
304304
0,
305305
title="Doping: Acceptor concentration",
306-
description="Units of 1/cm^3",
306+
description="Concentration of acceptor impurities, which create mobile holes, resulting in p-type material. "
307+
"Can be specified as a single float for uniform doping, a :class:`SpatialDataArray` for a custom profile, "
308+
"or a tuple of geometric shapes to define specific doped regions.",
307309
units="1/cm^3",
308310
)
309311

310312
N_d: Union[pd.NonNegativeFloat, SpatialDataArray, tuple[DopingBoxType, ...]] = pd.Field(
311313
0,
312314
title="Doping: Donor concentration",
313-
description="Units of 1/cm^3",
315+
description="Concentration of donor impurities, which create mobile electrons, resulting in n-type material. "
316+
"Can be specified as a single float for uniform doping, a :class:`SpatialDataArray` for a custom profile, "
317+
"or a tuple of geometric shapes to define specific doped regions.",
314318
units="1/cm^3",
315319
)

tidy3d/components/material/tcad/heat.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,16 @@ def optical(self):
4747

4848
class FluidMedium(AbstractHeatMedium):
4949
"""Fluid medium. Heat simulations will not solve for temperature
50-
in a structure that has a medium with this 'heat_spec'.
50+
in a structure that has a medium with this ``heat_spec``.
5151
52+
53+
Notes
54+
--------
5255
The full set of parameters is primarily intended for calculations involving natural
5356
convection, where they are used to determine the heat transfer coefficient.
5457
In the current version, these specific properties may not be utilized for
5558
other boundary condition types.
5659
57-
Attributes
58-
----------
59-
thermal_conductivity : float, optional
60-
Thermal conductivity ($k$) of the fluid in $W/(\\mu m \\cdot K)$.
61-
viscosity : float, optional
62-
Dynamic viscosity ($\\mu$) of the fluid in $kg/(\\mu m \\cdot s)$.
63-
specific_heat : float, optional
64-
Specific heat ($c_p$) of the fluid in $\\mu m^2/(s^2 \\cdot K)$.
65-
density : float, optional
66-
Density ($\rho$) of the fluid in $kg/\\mu m^3$.
67-
expansivity : float, optional
68-
Thermal expansion coefficient ($\beta$) of the fluid in $1/K$.
69-
7060
Examples
7161
--------
7262
>>> # If you are using a boundary condition without a natural convection model,

tidy3d/components/medium.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -862,10 +862,10 @@ def _validate_modulation_spec_post_init(self):
862862
heat_spec: Optional[ThermalSpecType] = pd.Field(
863863
None,
864864
title="Heat Specification",
865-
description="DEPRECATED: Use `td.MultiPhysicsMedium`. Specification of the medium heat properties. They are "
866-
"used for solving the heat equation via the ``HeatSimulation`` interface. Such simulations can be"
865+
description="DEPRECATED: Use :class:`MultiPhysicsMedium`. Specification of the medium heat properties. They are "
866+
"used for solving the heat equation via the :class:`HeatSimulation` interface. Such simulations can be"
867867
"used for investigating the influence of heat propagation on the properties of optical systems. "
868-
"Once the temperature distribution in the system is found using ``HeatSimulation`` object, "
868+
"Once the temperature distribution in the system is found using :class:`HeatSimulation` object, "
869869
"``Simulation.perturbed_mediums_copy()`` can be used to convert mediums with perturbation "
870870
"models defined into spatially dependent custom mediums. "
871871
"Otherwise, the ``heat_spec`` does not directly affect the running of an optical "

tidy3d/components/parameter_perturbation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,8 @@ class LinearChargePerturbation(ChargePerturbation):
605605
606606
.. math::
607607
608-
\\Delta X (T) = \\text{electron\\_coeff} \\times (N_e - \\text{electron\\_ref})
609-
+ \\text{hole\\_coeff} \\times (N_h - \\text{hole\\_ref}),
608+
\\Delta X (T) = \\text{electron_coeff} \\times (N_e - \\text{electron_ref})
609+
+ \\text{hole_coeff} \\times (N_h - \\text{hole_ref}),
610610
611611
where ``electron_coeff`` and ``hole_coeff`` are the parameter's sensitivities to electron and
612612
hole densities, while ``electron_ref`` and ``hole_ref`` are reference electron and hole density

0 commit comments

Comments
 (0)