tidy3d.CoaxialLumpedResistor#
- class CoaxialLumpedResistor[source]#
Bases:
LumpedElement
Class representing a coaxial lumped resistor. Lumped resistors are appended to the list of structures in the simulation as
Medium2D
with the appropriate conductivity given their size and geometry.- Parameters:
attrs (dict = {}) β Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields,
attrs
are mutable. For example, the following is allowed for setting anattr
obj.attrs['foo'] = bar
. Also note that Tidy3D` will raise aTypeError
ifattrs
contain objects that can not be serialized. One can check ifattrs
are serializable by callingobj.json()
.name (ConstrainedStrValue) β Unique name for the lumped element.
num_grid_cells (Optional[PositiveInt] = 1) β Number of mesh grid cells associated with the lumped element along each direction. Used in generating the suggested list of
MeshOverrideStructure
objects. A value ofNone
will turn off mesh refinement suggestions.enable_snapping_points (bool = True) β When enabled, snapping points are automatically generated to snap grids to key geometric features of the lumped element for more accurate modelling.
resistance (PositiveFloat) β Resistance value in ohms.
center (Tuple[float, float, float] = (0.0, 0.0, 0.0)) β [units = um]. Center of object in x, y, and z.
outer_diameter (PositiveFloat) β [units = um]. Diameter of the outer concentric circle.
inner_diameter (PositiveFloat) β [units = um]. Diameter of the inner concentric circle.
normal_axis (Literal[0, 1, 2]) β Specifies the normal axis, which defines the orientation of the circles making up the coaxial lumped element.
Attributes
Alias for
to_geometry
that ignores the grid and allowsCoaxialLumpedResistor
to behave like aStructure
.Methods
to_geometry
([grid])Converts the
CoaxialLumpedResistor
object to aGeometry
.Creates a suggested
MeshOverrideStructure
list for mesh refinement both on the plane of lumped element, and along normal axis.Creates a suggested snapping point list to ensure that the element is aligned with a grid boundary in the normal direction.
to_structure
([grid])Converts the
CoaxialLumpedResistor
object to aStructure
ready to be added to theSimulation
Inherited Common Usage
- resistance#
- center#
- outer_diameter#
- inner_diameter#
- normal_axis#
- to_snapping_points()[source]#
Creates a suggested snapping point list to ensure that the element is aligned with a grid boundary in the normal direction.
- to_mesh_overrides()[source]#
Creates a suggested
MeshOverrideStructure
list for mesh refinement both on the plane of lumped element, and along normal axis. In the normal direction, weβll make sure there are at least 2 cell layers above and below whose size is half of the in-plane cell size in the override region.
- to_structure(grid=None)[source]#
Converts the
CoaxialLumpedResistor
object to aStructure
ready to be added to theSimulation
- to_geometry(grid=None)[source]#
Converts the
CoaxialLumpedResistor
object to aGeometry
.
- property geometry#
Alias for
to_geometry
that ignores the grid and allowsCoaxialLumpedResistor
to behave like aStructure
.- Returns:
The annulus describing the coaxial lumped resistor.
- Return type:
- __hash__()#
Hash method.