tidy3d.FieldProjectionCartesianData#

class FieldProjectionCartesianData[source]#

Bases: AbstractFieldProjectionData

Data associated with a FieldProjectionCartesianMonitor: components of projected fields.

Parameters:

Example

>>> from tidy3d import FieldProjectionCartesianDataArray
>>> f = np.linspace(1e14, 2e14, 10)
>>> x = np.linspace(0, 5, 10)
>>> y = np.linspace(0, 10, 20)
>>> z = np.atleast_1d(5)
>>> coords = dict(x=x, y=y, z=z, f=f)
>>> values = (1+1j) * np.random.random((len(x), len(y), len(z), len(f)))
>>> scalar_field = FieldProjectionCartesianDataArray(values, coords=coords)
>>> monitor = FieldProjectionCartesianMonitor(
...     center=(1,2,3), size=(2,2,2), freqs=f, name='n2f_monitor', x=x, y=y,
...     proj_axis=2, proj_distance=50
...     )
>>> data = FieldProjectionCartesianData(
...     monitor=monitor, Er=scalar_field, Etheta=scalar_field, Ephi=scalar_field,
...     Hr=scalar_field, Htheta=scalar_field, Hphi=scalar_field,
...     projection_surfaces=monitor.projection_surfaces,
...     )

Attributes

flux

Flux for projecteded field data corresponding to a Cartesian field projection monitor.

poynting

Time-averaged Poynting vector for field data associated to a Cartesian field projection monitor.

tangential_dims

x

X positions.

y

Y positions.

z

Z positions.

attrs

Methods

renormalize_fields(proj_distance)

Return a FieldProjectionCartesianData with fields re-normalized to a new projection distance, by applying a phase factor based on proj_distance.

Inherited Common Usage

monitor#
projection_surfaces#
Er#
Etheta#
Ephi#
Hr#
Htheta#
Hphi#
property x#

X positions.

property y#

Y positions.

property z#

Z positions.

property tangential_dims#
property poynting#

Time-averaged Poynting vector for field data associated to a Cartesian field projection monitor.

property flux#

Flux for projecteded field data corresponding to a Cartesian field projection monitor.

renormalize_fields(proj_distance)[source]#

Return a FieldProjectionCartesianData with fields re-normalized to a new projection distance, by applying a phase factor based on proj_distance.

Parameters:

proj_distance (float = None) – (micron) new plane distance relative to the monitor’s local origin.

Returns:

Copy of this FieldProjectionCartesianData with fields re-projected to proj_distance.

Return type:

FieldProjectionCartesianData

__hash__()#

Hash method.