tidy3d.components.lumped_element.LumpedElement#
- class LumpedElement[source]#
Bases:
Tidy3dBaseModel,ABCBase class describing the interface all lumped elements obey.
- 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,
attrsare mutable. For example, the following is allowed for setting anattrobj.attrs['foo'] = bar. Also note that Tidy3D` will raise aTypeErrorifattrscontain objects that can not be serialized. One can check ifattrsare 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
MeshOverrideStructureobjects. A value ofNonewill 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.
Attributes
Default parameters for plotting a
LumpedElementobject.Methods
Converts the
LumpedElementobject to aGeometry.Creates a suggested
MeshOverrideStructurelist.Creates a suggested snapping point list.
to_structure([grid])Converts the network portion of the
LumpedElementobject to aStructure.to_structures([grid])Converts the
LumpedElementobject to a list ofStructurewhich are ready to be added to theSimulationInherited Common Usage
- name#
- num_grid_cells#
- enable_snapping_points#
- property plot_params#
Default parameters for plotting a
LumpedElementobject.
- abstract to_mesh_overrides()[source]#
Creates a suggested
MeshOverrideStructurelist.
- abstract to_geometry()[source]#
Converts the
LumpedElementobject to aGeometry.
- abstract to_structure(grid=None)[source]#
Converts the network portion of the
LumpedElementobject to aStructure.
- to_structures(grid=None)[source]#
Converts the
LumpedElementobject to a list ofStructurewhich are ready to be added to theSimulation
- __hash__()#
Hash method.