tidy3d.BroadbandPulse#
- class BroadbandPulse[source]#
Bases:
SourceTimeA source time injecting significant energy in the entire custom frequency range.
- Parameters:
attrs (dict = {}) β Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields,
attrsare mutable. For example, the following is allowed for setting anattrobj.attrs['foo'] = bar. Also note that Tidy3D will raise aTypeErrorifattrscontain objects that can not be serialized. One can check ifattrsare serializable by callingobj.json().amplitude (NonNegativeFloat = 1.0) β Real-valued maximum amplitude of the time dependence.
phase (float = 0.0) β [units = rad]. Phase shift of the time dependence.
freq_range (Tuple[float, float]) β [units = Hz]. Frequency range where the pulse should have significant energy.
minimum_amplitude (ConstrainedFloatValue = 0.3) β Minimum amplitude of the pulse relative to the peak amplitude in the frequency range.
offset (float = 0.0) β An automatic time delay of the peak value of the pulse has been applied under the hood to ensure smooth ramping up of the pulse at time = 0. This offfset is added on top of the automatic time delay in units of 1 / [
2pi * (freq_range[1] - freq_range[0])].
Attributes
Methods
amp_freq(freq)Complex-valued source amplitude as a function of frequency.
amp_time(time)Complex-valued source amplitude as a function of time.
end_time()Time after which the source is effectively turned off / close to zero amplitude.
frequency_range([num_fwidth])Delegated to frequency_range_sigma(sigma=num_fwidth) for computing the frequency range where the source amplitude is within
exp(-num_fwidth**2/2)of the peak amplitude.frequency_range_sigma([sigma])Frequency range where the source amplitude is within
exp(-sigma**2/2)of the peak amplitude.Inherited Common Usage
- freq_range#
- minimum_amplitude#
- offset#
- end_time()[source]#
Time after which the source is effectively turned off / close to zero amplitude.
- frequency_range_sigma(sigma=4.0)[source]#
Frequency range where the source amplitude is within
exp(-sigma**2/2)of the peak amplitude.
- frequency_range(num_fwidth=4.0)[source]#
Delegated to frequency_range_sigma(sigma=num_fwidth) for computing the frequency range where the source amplitude is within
exp(-num_fwidth**2/2)of the peak amplitude.
- __hash__()#
Hash method.