tidy3d.GaussianDoping#

class GaussianDoping[source]#

Bases: AbstractDopingBox

Doping in a box that falls off with a Gaussian profile near the faces of the box.

Parameters:
  • center (tuple[Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box]] = (0.0, 0.0, 0.0)) – [units = um]. Center of object in x, y, and z.

  • size (tuple[Union[NonNegativeFloat, autograd.tracer.Box], Union[NonNegativeFloat, autograd.tracer.Box], Union[NonNegativeFloat, autograd.tracer.Box]] = (inf, inf, inf)) – [units = um]. Size in x, y, and z directions.

  • ref_con (PositiveFloat) – [units = 1/cm^3]. Concentration on a face of the box other than the source face. Where two or three such faces meet, at an edge or a corner, the concentration falls to ref_con**2 / concentration or ref_con**3 / concentration**2.

  • concentration (PositiveFloat) – [units = 1/cm^3]. Peak concentration \(N_{\text{max}}\), reached farther than width from every face other than the source face.

  • width (PositiveFloat) – [units = um]. Distance from a face over which the concentration falls from concentration to ref_con on the face.

  • source (Literal['xmin', 'xmax', 'ymin', 'ymax', 'zmin', 'zmax'] = xmin) – Face of the box without a transition: along its normal the concentration stays at its peak up to this face.

Notes

The concentration is a product of one factor per axis, \(N = N_{\text{max}} f_x f_y f_z\). Along an axis the factor is 1 more than \(\text{width}\) away from both faces of the box, and within \(\text{width}\) of a face other than the source face it is

\[f = \exp \left[ - \ln \left( \frac{N_{\text{max}}}{N_{\text{ref}}} \right) \left( \frac{\text{width} - d}{\text{width}} \right)^2 \right],\]

where \(d\) is the distance to that face. On the source face the factor stays 1. A face therefore has concentration \(N_{\text{ref}}\), an edge where two such faces meet \(N_{\text{ref}}^2 / N_{\text{max}}\), and a corner of three \(N_{\text{ref}}^3 / N_{\text{max}}^2\). Along an axis where the box is thinner than \(2\,\text{width}\), the lower face (xmin, ymin or zmin) sets the factor where the two transitions overlap, and such a box warns. An infinite size removes the transitions along that axis. Use an infinite size along the normal of a 2D simulation.

ref_con must be lower than concentration. The doping boxes of one N_a or N_d list of a SemiconductorMedium add up where they overlap. A doping box must have a nonzero size along every axis.

Example

>>> import tidy3d as td
>>> box_coords = [
...     [-1, -1, -1],
...     [1, 1, 1]
... ]
>>> gaussian_box1 = td.GaussianDoping(
...     center=(0, 0, 0),
...     size=(2, 2, 2),
...     ref_con=1e15,
...     concentration=1e18,
...     width=0.1,
...     source="xmin"
... )
>>> gaussian_box2 = td.GaussianDoping.from_bounds(
...     rmin=box_coords[0],
...     rmax=box_coords[1],
...     ref_con=1e15,
...     concentration=1e18,
...     width=0.1,
...     source="xmin"
... )

Attributes

sigma

The sigma parameter of the pseudo-gaussian

ref_con

concentration

width

source

size

center

ref_con#
concentration#
width#
source#
property sigma#

The sigma parameter of the pseudo-gaussian