tidy3d.InternalAbsorber#
- class InternalAbsorber[source]#
Bases:
Box
Internally placed plane with one-way wave equation boundary conditions for absorption of electromagnetic waves. Note that internal absorbers are automatically wrapped in a PEC frame with a backing PEC plate on the non-absorbing side.
- 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.
direction (Literal['+', '-']) β Indicates which direction of traveling waves are absorbed.
grid_shift (int = 0) β Displacement of absorber in the normal positive direction in number of cells. This could be used to conveniently place an absorber right behind a source: one can use the same size and center as for the source and simply set shift to 1.
boundary_spec (Union[ModeABCBoundary, ABCBoundary]) β Boundary specification for defining effective propagation index in the one-way wave equation.
Attributes
Default parameters for plotting a port absorber object.
Methods
plot
([x,Β y,Β z,Β ax])Plot this absorber.
Inherited Common Usage
- direction#
- grid_shift#
- boundary_spec#
- property plot_params#
Default parameters for plotting a port absorber object.
- __hash__()#
Hash method.