tidy3d.plugins.microwave.VoltageIntegralAxisAligned#

class VoltageIntegralAxisAligned[source]#

Bases: AxisAlignedPathIntegral

Class for computing the voltage between two points defined by an axis-aligned line.

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 an attr obj.attrs['foo'] = bar. Also note that Tidy3D` will raise a TypeError if attrs contain objects that can not be serialized. One can check if attrs are serializable by calling obj.json().

  • center (Tuple[float, float, float] = (0.0, 0.0, 0.0)) – [units = um]. Center of object in x, y, and z.

  • size (Tuple[NonNegativeFloat, NonNegativeFloat, NonNegativeFloat]) – [units = um]. Size in x, y, and z directions.

  • extrapolate_to_endpoints (bool = False) – If the endpoints of the path integral terminate at or near a material interface, the field is likely discontinuous. When this field is True, fields that are outside and on the bounds of the integral are ignored. Should be enabled when computing voltage between two conductors.

  • snap_path_to_grid (bool = False) – It might be desireable to integrate exactly along the Yee grid associated with a field. When this field is True, the integration path will be snapped to the grid.

  • sign (Literal['+', '-']) – Positive indicates V=Vb-Va where position b has a larger coordinate along the axis of integration.

Attributes

attrs

Methods

compute_voltage(em_field)

Compute voltage along path defined by a line.

Inherited Common Usage

sign#
compute_voltage(em_field)[source]#

Compute voltage along path defined by a line.

__hash__()#

Hash method.