tidy3d.components.data.dataset.FieldTimeDataset#
- class FieldTimeDataset[source]#
Bases:
ElectromagneticFieldDataset
Dataset storing a collection of the scalar components of E and H fields in the time domain
- Parameters:
Ex (Optional[ScalarFieldTimeDataArray] = None) β Spatial distribution of the x-component of the electric field.
Ey (Optional[ScalarFieldTimeDataArray] = None) β Spatial distribution of the y-component of the electric field.
Ez (Optional[ScalarFieldTimeDataArray] = None) β Spatial distribution of the z-component of the electric field.
Hx (Optional[ScalarFieldTimeDataArray] = None) β Spatial distribution of the x-component of the magnetic field.
Hy (Optional[ScalarFieldTimeDataArray] = None) β Spatial distribution of the y-component of the magnetic field.
Hz (Optional[ScalarFieldTimeDataArray] = None) β Spatial distribution of the z-component of the magnetic field.
Example
>>> x = [-1,1] >>> y = [-2,0,2] >>> z = [-3,-1,1,3] >>> t = [0, 1e-12, 2e-12] >>> coords = dict(x=x, y=y, z=z, t=t) >>> scalar_field = ScalarFieldTimeDataArray(np.random.random((2,3,4,3)), coords=coords) >>> data = FieldTimeDataset(Ex=scalar_field, Hz=scalar_field)
Attributes
Methods
apply_phase
(phase)Create a copy where all elements are phase-shifted by a value (in radians).
- Ex#
- Ey#
- Ez#
- Hx#
- Hy#
- Hz#
- apply_phase(phase)[source]#
Create a copy where all elements are phase-shifted by a value (in radians).
- __hash__()#
Hash method.