# CustomFieldSource
Implements a source corresponding to an input dataset containing E and H fields, using the equivalence principle to define the actual injected currents. For the injection to work as expected (i.e. to reproduce the required E and H fields), the field data must decay by the edges of the source plane, or the source plane must span the entire simulation domain and the fields must match the simulation boundary conditions. The equivalent source currents are fully defined by the field components tangential to the source plane. For e.g. source normal along z, the normal components (Ez and Hz) can be provided but will have no effect on the results, and at least one of the tangential components has to be in the dataset, i.e. at least one of Ex, Ey, Hx, and Hy.
# Name
name: Optional name for the source.
# Source Region
Specification of the source region.
# Center + size
Object definition through a center position and size.
center: Center of the object in x, y, and z-directions.
Type: floating-point number
- Unit: m, μm (default), or nm
- Default: (0, 0, 0)
size: Size of the object in x, y, and z-directions.
Use Infinity to define a geometry extending to infinity in both directions along an axis.
Type: floating-point number
- Unit: m, μm (default), or nm
- Constraint: greater than or equal to 0
- Required field
# Bounds
Object definition through minimum and maximum coordinate bounds.
min: Values of the x, y, and z coordinates defining the object lower corner.
Type: floating-point number
- Unit: m, μm (default), or nm
- Required field
max: Values of the x, y, and z coordinates defining the object upper corner.
Type: floating-point number
- Unit: m, μm (default), or nm
- Required field
# Field Dataset
field_dataset: FieldDataset containing the desired frequency-domain fields patterns to inject. At least one tangetial field component must be specified.
To generate a
HDF5dataset in a correct shape, create aCustomFieldSourceusing the Python interface and use the to_hdf5(filename) (opens new window) method. For details on creating a spatially varying field source, see this example (opens new window).
Type: FieldDataset
- Unit: unitless
# Source Time
source_time: Specification of the source time-dependence.
Options:
Required field