tidy3d.components.source.Source#
- class Source[source]#
Bases:
Box,AbstractSource,ABCAbstract base class for all sources.
- 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[NonNegativeFloat, NonNegativeFloat, NonNegativeFloat]
DefaultUnitsum
DescriptionSize in x, y, and z directions.
source_time (Attribute:
source_time) –TypeUnion[GaussianPulse, ContinuousWave, CustomSourceTime]
DefaultDescriptionSpecification of the source time-dependence.
Attributes
Boxrepresentation of source.Default parameters for plotting a Source object.
Methods
plot([x, y, z, ax])Plot this source.
- source_time#
- property plot_params#
Default parameters for plotting a Source object.
- property geometry#
Boxrepresentation of source.
- __hash__()#
Hash method.