pub enum InitialStateError {
Evaluation(EvaluationError),
ConflictingConditions {
element: String,
implied: f64,
declared: f64,
},
InconsistentWithCircuit {
constraint: String,
residual: f64,
},
}Expand description
Why a netlist’s declared ic= values could not be turned into a starting state vector.
Variants§
Evaluation(EvaluationError)
A component value, or an ic= value itself, could not be evaluated numerically.
ConflictingConditions
Two or more ic= values on capacitors contradict each other, independently of the rest
of the circuit: they form a loop whose declared voltages do not sum to zero, so no
assignment of node voltages satisfies all of them at once.
Fields
InconsistentWithCircuit
An assignment violates one of the circuit’s own algebraic constraints — every unknown in
that constraint is fixed by an ic=, and the values they are fixed to do not satisfy it.
The two textbook cases: an ic on a capacitor wired directly across an ideal voltage
source (the source’s branch equation already fixes that voltage), and two series
inductors whose ic values declare different currents (the shared node’s KCL row
already fixes them equal).
Trait Implementations§
Source§impl Clone for InitialStateError
impl Clone for InitialStateError
Source§impl Debug for InitialStateError
impl Debug for InitialStateError
Source§impl Display for InitialStateError
impl Display for InitialStateError
Source§impl Error for InitialStateError
impl Error for InitialStateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()