tidy3d.plugins.microwave.AxisAlignedCurrentIntegral#
- class AxisAlignedCurrentIntegral[source]#
Bases:
AxisAlignedCurrentIntegralSpecClass for computing conduction current via AmpΓ¨reβs circuital law on an axis-aligned loop.
- 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().center (Union[tuple[Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box]], Box] = (0.0, 0.0, 0.0)) β [units = um]. Center of object in x, y, and z.
size (Union[tuple[Union[pydantic.v1.types.NonNegativeFloat, autograd.tracer.Box], Union[pydantic.v1.types.NonNegativeFloat, autograd.tracer.Box], Union[pydantic.v1.types.NonNegativeFloat, autograd.tracer.Box]], Box]) β [units = um]. Size in x, y, and z directions.
sign (Literal['+', '-']) β Positive indicates current flowing in the positive normal axis direction.
extrapolate_to_endpoints (bool = False) β This parameter is passed to
AxisAlignedPathIntegralobjects when computing the contour integral.snap_contour_to_grid (bool = False) β This parameter is passed to
AxisAlignedPathIntegralobjects when computing the contour integral.
Example
>>> current = AxisAlignedCurrentIntegral( ... center=(0, 0, 0), ... size=(1, 1, 0), ... sign="+", ... extrapolate_to_endpoints=True, ... snap_contour_to_grid=True, ... )
Attributes
Methods
compute_current(em_field)Compute current flowing in loop defined by the outer edge of a rectangle.
Inherited Common Usage
- compute_current(em_field)[source]#
Compute current flowing in loop defined by the outer edge of a rectangle.
- __hash__()#
Hash method.