tidy3d.UniformCurrentSource#
- class UniformCurrentSource[source]#
Bases:
CurrentSource,ReverseInterpolatedSourceSource in a rectangular volume with uniform time dependence.
- Parameters:
name (Optional[str] = None) β Optional name for the source.
center (Tuple[float, float, float] = (0.0, 0.0, 0.0)) β [units = um]. Center of object in x, y, and z.
size (Tuple[NonNegativeFloat, NonNegativeFloat, NonNegativeFloat]) β [units = um]. Size in x, y, and z directions.
source_time (Union[GaussianPulse, ContinuousWave, CustomSourceTime]) β Specification of the source time-dependence.
interpolate (bool = True) β Handles reverse-interpolation of zero-size dimensions of the source. If
False, the source data is snapped to the nearest Yee grid point. IfTrue, equivalent source data is applied on the surrounding Yee grid points to emulate placement at the specified location using linear interpolation.polarization (Literal['Ex', 'Ey', 'Ez', 'Hx', 'Hy', 'Hz']) β Specifies the direction and type of current component.
Notes
Inputting the parameter
size=(0,0,0)defines the equivalent of a point source.Example
>>> pulse = GaussianPulse(freq0=200e12, fwidth=20e12) >>> pt_source = UniformCurrentSource(size=(0,0,0), source_time=pulse, polarization='Ex')
Attributes
Methods
Inherited Common Usage
- __hash__()#
Hash method.