tidy3d.FieldProjectionSurface#
- class FieldProjectionSurface[source]#
Bases:
Tidy3dBaseModel
Data structure to store surface monitors where near fields are recorded for field projections.
- 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()
.monitor (FieldMonitor) β
FieldMonitor
on which near fields will be sampled and integrated.normal_dir (Literal['+', '-']) β
Direction
of the surface monitorβs normal vector w.r.t. the positive x, y or z unit vectors. Must be one of β+β or β-β.derivation (.. TODO add example and)
links. (and more relevant)
See also
Attributes
Returns the
Axis
normal to this surface.Methods
is_plane
(val)Ensures that the monitor is a plane, i.e., its
size
attribute has exactly 1 zeroInherited Common Usage
- monitor#
- normal_dir#
- property axis#
Returns the
Axis
normal to this surface.
- classmethod is_plane(val)[source]#
Ensures that the monitor is a plane, i.e., its
size
attribute has exactly 1 zero
- __hash__()#
Hash method.