Skip to main content

Pss

Struct Pss 

Source
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: Solution

One 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: Solution

The 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: f64

The period T (s): the drive’s for a driven circuit, the shooting’s result for an autonomous oscillator.

§t0: f64

Start 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>

Trait Implementations§

Source§

impl Clone for Pss

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Pss

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Pss

§

impl Freeze for Pss

§

impl Move for Pss

§

impl RefUnwindSafe for Pss

§

impl Send for Pss

§

impl Sync for Pss

§

impl Unpin for Pss

§

impl UnsafeUnpin for Pss

§

impl UnwindSafe for Pss

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.