Skip to main content

System

Struct System 

Source
pub struct System {
    pub mna: MnaSystem,
    pub ideal_diodes: BTreeMap<String, IdealDiode>,
    pub ideal_switches: BTreeMap<String, IdealSwitch>,
    pub gates: BTreeMap<String, GateBinding>,
    pub blocks: Vec<BlockInstance>,
    pub shared_r_on: f64,
}
Expand description

The result of build_system: everything a simulator needs, already split into its own electrical (mna/ideal_diodes/ideal_switches/gates) and signal-domain (blocks) halves.

Fields§

§mna: MnaSystem

The electrical MNA system, built by crate::MnaBuilder from the netlist’s element lines.

§ideal_diodes: BTreeMap<String, IdealDiode>

Every D instance, keyed by name, as a companion ideal-diode model.

§ideal_switches: BTreeMap<String, IdealSwitch>

Every ideal-switch instance, keyed by name.

§gates: BTreeMap<String, GateBinding>

Each ideal switch’s resolved gate-drive signal, keyed by the same name as ideal_switches.

§blocks: Vec<BlockInstance>

Every block/signal-domain (kind=...) instance, in source declaration order.

§shared_r_on: f64

Every ideal switch’s shared on-resistance (dae-runtime’s switch model uses one shared value per call) — 0.0 if there are no ideal switches at all. build_system already enforces every declared ideal switch agrees on this value.

Trait Implementations§

Source§

impl Debug for System

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for System

§

impl Freeze for System

§

impl Move for System

§

impl RefUnwindSafe for System

§

impl Send for System

§

impl Sync for System

§

impl Unpin for System

§

impl UnsafeUnpin for System

§

impl UnwindSafe for System

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.