Skip to content

flex_rf.tidy3d.SourceTime

Type: class Base(s): AbstractTimeDependence

Base class describing the time dependence of a source.

amplitude [NonNegativeFloat] = 1.0

Real-valued maximum amplitude of the time dependence.

phase [float] = 0.0

Phase shift of the time dependence.

end_time()

Time after which the source is effectively turned off / close to zero amplitude.

frequency_range(num_fwidth: float = DEFAULT_SIGMA)

Frequency range within plus/minus num_fwidth * fwidth of the central frequency.

frequency_range_sigma(sigma: float = DEFAULT_SIGMA)

Frequency range where the source amplitude is within exp(-sigma**2/2) of the peak amplitude.

plot_spectrum(times: ArrayFloat1D, num_freqs: int = 101, val: PlotVal = 'real', ax: Ax = None)

Plot the complex-valued amplitude of the source time-dependence. Note: Only the real part of the time signal is used.