tidy3d.PointDipole#
- class PointDipole[source]#
Bases:
CurrentSource,ReverseInterpolatedSourceUniform current source with a zero size.
- Parameters:
name (Attribute:
name) –TypeOptional[str]
Default= None
DescriptionOptional name for the source.
center (Attribute:
center) –TypeTuple[float, float, float]
Default= (0.0, 0.0, 0.0)
Unitsum
DescriptionCenter of object in x, y, and z.
size (Attribute:
size) –TypeTuple[Literal[0], Literal[0], Literal[0]]
Default= (0, 0, 0)
Unitsum
DescriptionSize in x, y, and z directions, constrained to
(0, 0, 0).source_time (Attribute:
source_time) –TypeUnion[GaussianPulse, ContinuousWave, CustomSourceTime]
DefaultDescriptionSpecification of the source time-dependence.
interpolate (Attribute:
interpolate) –Typebool
Default= True
DescriptionHandles 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 (Attribute:
polarization) –TypeLiteral[‘Ex’, ‘Ey’, ‘Ez’, ‘Hx’, ‘Hy’, ‘Hz’]
DefaultDescriptionSpecifies the direction and type of current component.
Example
>>> pulse = GaussianPulse(freq0=200e12, fwidth=20e12) >>> pt_dipole = PointDipole(center=(1,2,3), source_time=pulse, polarization='Ex')
See also
Attributes
Methods
- size#
- __hash__()#
Hash method.