tidy3d.components.lumped_element.RectangularLumpedElement#
- class RectangularLumpedElement[source]#
Bases:
LumpedElement,BoxClass representing a rectangular planar element with zero thickness along its normal axis. A
RectangularLumpedElementis appended to the list of structures in the simulation as aMedium2Dwith the appropriate material properties given their size, voltage axis, and the network they represent.- Parameters:
center (Optional[tuple[Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box]]] = None) – [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]]) – [units = um]. Size in x, y, and z directions.
name (str) – 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.
voltage_axis (Literal[0, 1, 2]) – Specifies the axis along which the component is oriented and along which the associated voltage drop will occur. Must be in the plane of the element.
snap_perimeter_to_grid (bool = True) – When enabled, the perimeter of the lumped element is snapped to the simulation grid, which improves accuracy when the number of grid cells is low within the element. Sides of the element perpendicular to the
voltage_axisare snapped to grid boundaries, while the sides parallel to thevoltage_axisare snapped to grid centers. Lumped elements are always snapped to the nearest grid boundary along theirnormal_axis, regardless of this option.
Note
The element must be planar (exactly one zero-size dimension). One-dimensional elements (two zero-size dimensions) are not supported. If you need a narrow element, provide a small but finite width along the lateral axis.
Attributes
Lateral axis of the lumped element.
Normal axis of the lumped element, which is the axis where the element has zero size.
namenum_grid_cellsenable_snapping_pointssizecenterMethods
to_geometry([grid])Converts the
RectangularLumpedElementobject to aBox.Creates a suggested
MeshOverrideStructurelist for mesh refinement both on the plane of lumped element, and along normal axis.to_monitor(freqs)Creates a field monitor that can be added to the simulation, which records field data that can be used to later compute voltage and current flowing through the element.
Creates a suggested snapping point list to ensure that the element is aligned with a grid boundary in the normal direction, and the endpoints aligned with grids in the voltage axis.
- voltage_axis#
- snap_perimeter_to_grid#
- property normal_axis#
Normal axis of the lumped element, which is the axis where the element has zero size.
- property lateral_axis#
Lateral axis of the lumped element.
- to_mesh_overrides()[source]#
Creates a suggested
MeshOverrideStructurelist 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 the same as the in-plane cell size in the override region.
- 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, and the endpoints aligned with grids in the voltage axis.
- to_geometry(grid=None)[source]#
Converts the
RectangularLumpedElementobject to aBox.
- to_monitor(freqs)[source]#
Creates a field monitor that can be added to the simulation, which records field data that can be used to later compute voltage and current flowing through the element.
- property monitor_name#