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: MnaSystemThe 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.
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.