pub enum Wave {
Pulse(Vec<f64>),
Sin(Vec<f64>),
Exp(Vec<f64>),
Pwl(Vec<f64>),
Sffm(Vec<f64>),
TrNoise(Vec<f64>),
TrRandom(Vec<f64>),
}Expand description
A transient source function: PULSE SIN EXP PWL SFFM, and
ngspice-47’s transient-noise functions TRNOISE TRRANDOM, raw
args. The noise functions are random: a source’s realization is
fixed by .options seed and the source name (see
docs/dune-core.md §Ruído transiente), and is added to the
source’s DC value, as in ngspice.
Variants§
Pulse(Vec<f64>)
Sin(Vec<f64>)
Exp(Vec<f64>)
Pwl(Vec<f64>)
Sffm(Vec<f64>)
TrNoise(Vec<f64>)
TRNOISE(NA NT <NALPHA NAMP <RTSAM RTSCAPT RTSEMT>>): white
gaussian noise of rms NA sampled every NT seconds (linear
between samples), plus 1/f^NALPHA noise driven by white noise
of rms NAMP, plus random telegraph noise of amplitude
RTSAM with mean capture/emission times RTSCAPT/RTSEMT.
TrRandom(Vec<f64>)
TRRANDOM(TYPE TS <TD <PARAM1 <PARAM2>>>): a random value held
for TS seconds from TD on — TYPE 1 uniform in
[-PARAM1, PARAM1) + PARAM2, 2 gaussian (σ PARAM1, mean
PARAM2), 3 exponential (mean PARAM1, offset PARAM2), 4
poisson (λ PARAM1, offset PARAM2); PARAM1 defaults to 1,
PARAM2 to 0, and the value is PARAM2 up to TD.