flex_rf.tidy3d.FreqRange
Type: class │ Base(s): Tidy3dBaseModel
Description
Section titled “Description”Convenience class for handling frequency/wavelength conversion; it simplifies specification of frequency ranges and sample points for sources and monitors.
Depending on the context the user can define desired frequency range by specifying:
- central frequency
freq0and frequency bandwidthfwidth; - frequency interval [
fmin,fmax]; - central wavelength
wvl0and wavelength rangewvl_width; - wavelength interval [
wvl_min,wvl_max].
Example(s)
Section titled “Example(s)”import tidy3d as tdfreq0 = 1e12fwidth = 1e11freq_range = td.FreqRange(freq0=freq0, fwidth=fwidth)central_freq = freq_range.freqs(num_points=1, spacing="uniform_freq")freqs = freq_range.freqs(num_points=11, spacing="uniform_wvl")source = freq_range.to_gaussian_pulse()Parameters
Section titled “Parameters”freq0 [PositiveFloat] = ... |
|
Real-valued positive central frequency. |
fwidth [PositiveFloat] = ... |
|
Real-valued positive width of the frequency range (bandwidth). |
Attributes
Section titled “Attributes”fmax [float] |
|
Infer highest frequency |
fmin [float] |
|
Infer lowest frequency |
wvl0 [float] |
|
Get central wavelength from central frequency and bandwidth. |
Methods
Section titled “Methods”check_half_fwidth_less_than_freq0() |
freqs(num_points: int, spacing: str = 'uniform_freq') |
|
method |
from_freq_interval(fmin: float, fmax: float) |
|
method |
from_wvl(wvl0: float, wvl_width: float) |
|
method |
from_wvl_interval(wvl_min: float, wvl_max: float) |
|
method |
sweep_decade(num_points_per_decade: int) |
|
Generate frequencies with logarithmic spacing across decades. |
to_gaussian_pulse(**kwargs: Any) |
|
to_gaussian_pulse(): Return a |
wvls(num_points: int, spacing: str = 'uniform_wvl') |
|
method |