tidy3d.components.data.dataset.FieldDataset#

class FieldDataset[source]#

Bases: ElectromagneticFieldDataset

Dataset storing a collection of the scalar components of E and H fields in the freq. domain

Parameters:
  • Ex (Attribute: Ex) –

    Type

    Optional[ScalarFieldDataArray]

    Default

    = None

    Description

    Spatial distribution of the x-component of the electric field.

  • Ey (Attribute: Ey) –

    Type

    Optional[ScalarFieldDataArray]

    Default

    = None

    Description

    Spatial distribution of the y-component of the electric field.

  • Ez (Attribute: Ez) –

    Type

    Optional[ScalarFieldDataArray]

    Default

    = None

    Description

    Spatial distribution of the z-component of the electric field.

  • Hx (Attribute: Hx) –

    Type

    Optional[ScalarFieldDataArray]

    Default

    = None

    Description

    Spatial distribution of the x-component of the magnetic field.

  • Hy (Attribute: Hy) –

    Type

    Optional[ScalarFieldDataArray]

    Default

    = None

    Description

    Spatial distribution of the y-component of the magnetic field.

  • Hz (Attribute: Hz) –

    Type

    Optional[ScalarFieldDataArray]

    Default

    = None

    Description

    Spatial distribution of the z-component of the magnetic field.

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)
>>> scalar_field = ScalarFieldDataArray((1+1j) * np.random.random((2,3,4,2)), coords=coords)
>>> data = FieldDataset(Ex=scalar_field, Hz=scalar_field)

Attributes

Methods

Ex#
Ey#
Ez#
Hx#
Hy#
Hz#
__hash__()#

Hash method.