tidy3d.components.data.monitor_data.AbstractFieldProjectionData#
- class AbstractFieldProjectionData[source]#
Bases:
MonitorData
Collection of projected fields in spherical coordinates in the frequency domain.
- Parameters:
monitor (Union[FieldProjectionAngleMonitor, FieldProjectionCartesianMonitor, FieldProjectionKSpaceMonitor, DiffractionMonitor]) – Field projection monitor.
Er (Union[FieldProjectionAngleDataArray, FieldProjectionCartesianDataArray, FieldProjectionKSpaceDataArray, DiffractionDataArray]) – Spatial distribution of r-component of the electric field.
Etheta (Union[FieldProjectionAngleDataArray, FieldProjectionCartesianDataArray, FieldProjectionKSpaceDataArray, DiffractionDataArray]) – Spatial distribution of the theta-component of the electric field.
Ephi (Union[FieldProjectionAngleDataArray, FieldProjectionCartesianDataArray, FieldProjectionKSpaceDataArray, DiffractionDataArray]) – Spatial distribution of phi-component of the electric field.
Hr (Union[FieldProjectionAngleDataArray, FieldProjectionCartesianDataArray, FieldProjectionKSpaceDataArray, DiffractionDataArray]) – Spatial distribution of r-component of the magnetic field.
Htheta (Union[FieldProjectionAngleDataArray, FieldProjectionCartesianDataArray, FieldProjectionKSpaceDataArray, DiffractionDataArray]) – Spatial distribution of theta-component of the magnetic field.
Hphi (Union[FieldProjectionAngleDataArray, FieldProjectionCartesianDataArray, FieldProjectionKSpaceDataArray, DiffractionDataArray]) – Spatial distribution of phi-component of the magnetic field.
medium (Union[Medium, AnisotropicMedium, PECMedium, PoleResidue, Sellmeier, Lorentz, Debye, Drude, FullyAnisotropicMedium, CustomMedium, CustomPoleResidue, CustomSellmeier, CustomLorentz, CustomDebye, CustomDrude, CustomAnisotropicMedium, PerturbationMedium, PerturbationPoleResidue, Medium2D] = Medium(name=None, frequency_range=None, allow_gain=False, nonlinear_spec=None, modulation_spec=None, heat_spec=None, type='Medium', permittivity=1.0, conductivity=0.0)) – Background medium through which to project fields.
Attributes
Coordinates of the fields contained.
Coordinates grid for the fields in the spherical system.
Dimensions of the radiation vectors contained.
Returns the complex wave impedance associated with the background medium.
Frequencies.
Maps the field components to their associated data.
Get all field components in Cartesian coordinates relative to the monitor's local origin for all projection grid points and frequencies specified in the
AbstractFieldProjectionMonitor
.Get all field components in spherical coordinates relative to the monitor's local origin for all projection grid points and frequencies specified in the
AbstractFieldProjectionMonitor
.Returns the complex wave number associated with the background medium.
Returns the real and imaginary parts of the background medium's refractive index.
Get power measured on the projection grid relative to the monitor's local origin.
Radar cross section in units of incident power.
Methods
make_data_array
(data)Make an xr.DataArray with data and same coords and dims as fields of self.
make_dataset
(keys, vals)Make an xr.Dataset with keys and data with same coords and dims as fields.
make_renormalized_data
(phase, proj_distance)Helper to apply the re-projection phase to a copied dataset.
normalize
(source_spectrum_fn)Return copy of self after normalization is applied using source spectrum function.
propagation_phase
(dist, k)Phase associated with propagation of a distance with a given wavenumber.
wavenumber
(medium, frequency)Complex valued wavenumber associated with a frequency.
- monitor#
- Er#
- Etheta#
- Ephi#
- Hr#
- Htheta#
- Hphi#
- medium#
- property field_components#
Maps the field components to their associated data.
- property f#
Frequencies.
- property coords#
Coordinates of the fields contained.
- property coords_spherical#
Coordinates grid for the fields in the spherical system.
- property dims#
Dimensions of the radiation vectors contained.
- make_data_array(data)[source]#
Make an xr.DataArray with data and same coords and dims as fields of self.
- make_dataset(keys, vals)[source]#
Make an xr.Dataset with keys and data with same coords and dims as fields.
- make_renormalized_data(phase, proj_distance)[source]#
Helper to apply the re-projection phase to a copied dataset.
- normalize(source_spectrum_fn)[source]#
Return copy of self after normalization is applied using source spectrum function.
- static wavenumber(medium, frequency)[source]#
Complex valued wavenumber associated with a frequency.
- property nk#
Returns the real and imaginary parts of the background medium’s refractive index.
- property k#
Returns the complex wave number associated with the background medium.
- property eta#
Returns the complex wave impedance associated with the background medium.
- static propagation_phase(dist, k)[source]#
Phase associated with propagation of a distance with a given wavenumber.
- property fields_spherical#
Get all field components in spherical coordinates relative to the monitor’s local origin for all projection grid points and frequencies specified in the
AbstractFieldProjectionMonitor
.- Returns:
xarray dataset containing (
Er
,Etheta
,Ephi
,Hr
,Htheta
,Hphi
) in spherical coordinates.- Return type:
xarray.Dataset
- property fields_cartesian#
Get all field components in Cartesian coordinates relative to the monitor’s local origin for all projection grid points and frequencies specified in the
AbstractFieldProjectionMonitor
.- Returns:
xarray dataset containing (
Ex
,Ey
,Ez
,Hx
,Hy
,Hz
) in Cartesian coordinates.- Return type:
xarray.Dataset
- property power#
Get power measured on the projection grid relative to the monitor’s local origin.
- Returns:
Power at points relative to the local origin.
- Return type:
xarray.DataArray
- property radar_cross_section#
Radar cross section in units of incident power.
- __hash__()#
Hash method.