tidy3d.plugins.microwave.CurrentIntegralAxisAligned#
- class CurrentIntegralAxisAligned[source]#
Bases:
AbstractAxesRH
,Box
Class 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,
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()
.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
AxisAlignedPathIntegral
objects when computing the contour integral.snap_contour_to_grid (bool = False) β This parameter is passed to
AxisAlignedPathIntegral
objects when computing the contour integral.
Attributes
Methods
compute_current
(em_field)Compute current flowing in loop defined by the outer edge of a rectangle.
Inherited Common Usage
- sign#
- extrapolate_to_endpoints#
- snap_contour_to_grid#
- compute_current(em_field)[source]#
Compute current flowing in loop defined by the outer edge of a rectangle.
- property main_axis#
Axis normal to loop
- __hash__()#
Hash method.