Skip to content

flex_rf.tidy3d.BasebandCustomSourceTime

Type: class Base(s): BasebandSourceTime

Custom baseband source time profile from a user-provided time-domain dataset.

The signal is defined by a source_time_dataset containing the time-domain envelope.

cst = BasebandCustomSourceTime.from_values(values=np.linspace(0, 1, 100), dt=1e-10)
amplitude [NonNegativeFloat] = 1.0

Real-valued maximum amplitude of the time dependence.

phase [Literal[0]] = 0

Phase is locked to 0 for baseband source times (no carrier frequency).

source_time_dataset [TimeDataset | None] = None

Dataset for storing the baseband source time envelope. If None, the source produces no signal and must be populated before use.

data_times [ArrayFloat1D]

Times of envelope definition.

amp_time(time: float | ArrayFloat1D)

Real-valued source amplitude as a function of time.

end_time()

Time of the last non-zero value in the dataset.

frequency_range(num_fwidth: float = DEFAULT_SIGMA)

Frequency range computed from FFT of the source envelope.

from_values(values: ArrayFloat1D, dt: float, **kwargs: Any)

Create a BasebandCustomSourceTime from a numpy array.