tidy3d.PermittivityDataset#
- class PermittivityDataset[source]#
Bases:
AbstractFieldDataset
Dataset storing the diagonal components of the permittivity tensor.
- 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()
.eps_xx (ScalarFieldDataArray) β Spatial distribution of the xx-component of the relative permittivity.
eps_yy (ScalarFieldDataArray) β Spatial distribution of the yy-component of the relative permittivity.
eps_zz (ScalarFieldDataArray) β Spatial distribution of the zz-component of the relative permittivity.
Example
>>> x = [-1,1] >>> y = [-2,0,2] >>> z = [-3,-1,1,3] >>> f = [2e14, 3e14] >>> coords = dict(x=x, y=y, z=z, f=f) >>> sclr_fld = ScalarFieldDataArray((1+1j) * np.random.random((2,3,4,2)), coords=coords) >>> data = PermittivityDataset(eps_xx=sclr_fld, eps_yy=sclr_fld, eps_zz=sclr_fld)
Attributes
Maps the field components to their associated data.
Maps field components to the string key of their grid locations on the yee lattice.
Maps field components to their (positive) symmetry eigenvalues.
Methods
Inherited Common Usage
- property field_components#
Maps the field components to their associated data.
- property grid_locations#
Maps field components to the string key of their grid locations on the yee lattice.
- property symmetry_eigenvalues#
Maps field components to their (positive) symmetry eigenvalues.
- eps_xx#
- eps_yy#
- eps_zz#
- __hash__()#
Hash method.