Skip to main content

solve_dc

Function solve_dc 

Source
pub fn solve_dc(
    source: &str,
    dialect: Dialect,
    diodes: &BTreeMap<String, IdealDiode>,
) -> Result<OperatingPoint, DaeError>
Expand description

Solves the DC operating point of a netlist containing linear devices plus any number of D (diode) elements, whose piecewise-linear parameters are supplied in diodes (keyed by element name) rather than parsed from the netlist — SPICE’s .model syntax has no notion of this crate’s breakdown/leakage/forward segments.