pub struct OpPassCriteria {
pub vbe_warn_v: f64,
pub vbe_fail_v: f64,
pub vce_fail_v: f64,
pub ic_fail_pct: f64,
pub residual_formulation_v: f64,
}Expand description
Thresholds for grading the bias-accuracy dimension. Informative, not punitive — tuned to localize Layer A vs Layer B, not to gate CI.
Fields§
§vbe_warn_v: f64ΔVbe warn threshold (volts). Default 10 mV.
vbe_fail_v: f64ΔVbe fail threshold (volts). Default 25 mV.
vce_fail_v: f64ΔVce fail threshold (volts). Default 0.3 V.
ic_fail_pct: f64ΔIc fail threshold (percent). Default 10 %.
residual_formulation_v: f64Static-residual threshold separating “formulation ≈ ok” from a formulation bug (volts). Default 0.25 V.
This is a DC-balance error in volts at a device port. Once the reactive
(capacitor) ports are seeded to ngspice’s .op node voltages — the FULL
operating-point seed, not the old cold-cap probe — a residual on the
order of a junction drop means ngspice’s .op is genuinely NOT a fixed
point of our DC equations (a formulation bug, Layer A). The BA283 lands
at ≈ 0.615 V (Q3 Vbe dominant) → Layer A. Tens-of-mV residuals still read
“≈ ok” → Layer B (solver / root-selection). The prior 1.0 V default was
set against a CONTAMINATED, cold-cap residual (≈ 0.04 V) and mis-called
the BA283 Layer B; with the caps seeded the true 0.615 V exceeds this.
Trait Implementations§
Source§impl Clone for OpPassCriteria
impl Clone for OpPassCriteria
Source§fn clone(&self) -> OpPassCriteria
fn clone(&self) -> OpPassCriteria
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more