tidy3d.components.lumped_element.LumpedElement#
- class LumpedElement[source]#
Bases:
Tidy3dBaseModel
,ABC
Base 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,
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] = 3) β 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.
Attributes
Default parameters for plotting a
LumpedElement
object.Methods
Creates a suggested
MeshOverrideStructure
list that could be added to theSimulation
Converts the
LumpedElement
object to aStructure
ready to be added to theSimulation
Inherited Common Usage
- name#
- num_grid_cells#
- property plot_params#
Default parameters for plotting a
LumpedElement
object.
- abstract to_mesh_overrides()[source]#
Creates a suggested
MeshOverrideStructure
list that could be added to theSimulation
- abstract to_structure()[source]#
Converts the
LumpedElement
object to aStructure
ready to be added to theSimulation
- __hash__()#
Hash method.