tidy3d.GaussianPulse#
- class GaussianPulse[source]#
Bases:
PulseSource time dependence that describes a Gaussian pulse.
- Parameters:
amplitude (Attribute:
amplitude) –TypeNonNegativeFloat
Default= 1.0
DescriptionReal-valued maximum amplitude of the time dependence.
phase (Attribute:
phase) –Typefloat
Default= 0.0
Unitsrad
DescriptionPhase shift of the time dependence.
freq0 (Attribute:
freq0) –TypePositiveFloat
DefaultUnitsHz
DescriptionCentral frequency of the pulse.
fwidth (Attribute:
fwidth) –TypePositiveFloat
DefaultUnitsHz
DescriptionStandard deviation of the frequency content of the pulse.
offset (Attribute:
offset) –TypeConstrainedFloatValue
Default= 5.0
DescriptionTime delay of the maximum value of the pulse in units of 1 / (
2pi * fwidth).remove_dc_component (Attribute:
remove_dc_component) –Typebool
Default= True
DescriptionWhether to remove the DC component in the Gaussian pulse spectrum. If
True, the Gaussian pulse is modified at low frequencies to zero out the DC component, which is usually desirable so that the fields will decay. However, for broadband simulations, it may be better to have non-vanishing source power near zero frequency. Setting this toFalseresults in an unmodified Gaussian pulse spectrum which can have a nonzero DC component.
Example
>>> pulse = GaussianPulse(freq0=200e12, fwidth=20e12)
Attributes
Methods
amp_time(time)Complex-valued source amplitude as a function of time.
- remove_dc_component#
- __hash__()#
Hash method.