flex_rf.tidy3d.FieldTimeData
Type: class │ Base(s): FieldTimeDataset, ElectromagneticFieldData
Description
Section titled “Description”Data associated with a FieldTimeMonitor: scalar components of E and H fields.
The data is stored as a DataArray object using the xarray package.
Example(s)
Section titled “Example(s)”from tidy3d import ScalarFieldTimeDataArrayx = [-1,1,3]y = [-2,0,2,4]z = [-3,-1,1,3,5]t = [0, 1e-12, 2e-12]coords = dict(x=x[:-1], y=y[:-1], z=z[:-1], t=t)grid = Grid(boundaries=Coords(x=x, y=y, z=z))scalar_field = ScalarFieldTimeDataArray(np.random.random((2,3,4,3)), coords=coords)monitor = FieldTimeMonitor( size=(2,4,6), interval=100, name='field', fields=['Ex', 'Hz'], colocate=True)data = FieldTimeData(monitor=monitor, Ex=scalar_field, Hz=scalar_field, grid_expanded=grid)Parameters
Section titled “Parameters”monitor [FieldTimeMonitor] |
|
Time-domain field monitor associated with the data. |
Ex [ScalarFieldTimeDataArray | None] = None |
|
Spatial distribution of the x-component of the electric field. |
Ey [ScalarFieldTimeDataArray | None] = None |
|
Spatial distribution of the y-component of the electric field. |
Ez [ScalarFieldTimeDataArray | None] = None |
|
Spatial distribution of the z-component of the electric field. |
Hx [ScalarFieldTimeDataArray | None] = None |
|
Spatial distribution of the x-component of the magnetic field. |
Hy [ScalarFieldTimeDataArray | None] = None |
|
Spatial distribution of the y-component of the magnetic field. |
Hz [ScalarFieldTimeDataArray | None] = None |
|
Spatial distribution of the z-component of the magnetic field. |
symmetry [tuple[Symmetry, Symmetry, Symmetry]] = (0, 0, 0) |
|
Symmetry eigenvalues of the original simulation in x, y, and z. |
symmetry_center [Coordinate | None] = None |
|
Center of the symmetry planes of the original simulation in x, y, and z. Required only if any of the |
grid_expanded [Grid | None] = None |
|
|
grid_primal_correction [GRID_CORRECTION_TYPE] = 1.0 |
|
Correction factor that needs to be applied for data corresponding to a 2D monitor to take into account the finite grid in the normal direction in the simulation in which the data was computed. The factor is applied to fields defined on the primal grid locations along the normal direction. |
grid_dual_correction [GRID_CORRECTION_TYPE] = 1.0 |
|
Correction factor that needs to be applied for data corresponding to a 2D monitor to take into account the finite grid in the normal direction in the simulation in which the data was computed. The factor is applied to fields defined on the dual grid locations along the normal direction. |
Attributes
Section titled “Attributes”poynting [ScalarFieldTimeDataArray] |
|
Instantaneous Poynting vector for time-domain data associated to a 2D monitor, projected to the direction normal to the monitor plane. |
time_reversed_copy [FieldTimeData] |
|
Make a copy of the data with time-reversed fields. The sign of the magnetic fields is flipped, and the data is reversed along the |
Methods
Section titled “Methods”complex_flux() |
|
Complex flux is not defined for time-domain data. |
dot(field_data: ElectromagneticFieldData, conjugate: bool = True, bidirectional: bool = True) |
|
Inner product is not defined for time-domain data. |
flux() |
|
Flux for data corresponding to a 2D monitor. |
outer_dot(field_data: ElectromagneticFieldData, conjugate: bool = True, bidirectional: bool = True) |
|
Outer dot product is not defined for time-domain data. |