pub struct Pss {
pub time: Solution,
pub spectrum: Solution,
pub period: f64,
pub t0: f64,
pub residuals: Vec<f64>,
pub periods: Vec<f64>,
pub notes: Vec<String>,
}Expand description
Result of a periodic steady-state analysis.
Fields§
§time: SolutionOne period sampled at points + 1 equispaced times from t₀
to t₀ + T (PSS_TIME_PLOT, scale time; node voltages and
branch currents as in .tran).
spectrum: SolutionThe complex harmonics X_k, k = 0 … harmonics − 1, at
k·f (PSS_FREQ_PLOT, scale frequency): X_0 the mean,
and x(t) = X_0 + Σ Re(X_k e^{jkωt}) — .ac’s phasor
convention, phases referred to t = 0. ngspice writes only
the magnitudes; mag() of these columns is that plot.
period: f64The period T (s): the drive’s for a driven circuit, the
shooting’s result for an autonomous oscillator.
t0: f64Start of the reported period (a multiple of T).
residuals: Vec<f64>The residual max_i |x_i(t₀+T) − x_i(t₀)| / tol_i of each
shooting iteration (converged when ≤ 1).
periods: Vec<f64>The period of each shooting iteration, aligned with
residuals (constant for a driven circuit; the Newton iterate
T of an autonomous one).
notes: Vec<String>