pub struct SupplyConfig {
pub voltage: f64,
pub impedance: Option<f64>,
pub filter_cap: Option<f64>,
pub rectifier: RectifierType,
}Expand description
Power supply configuration — models B+ rail behavior under load.
In real amps, the power supply has finite output impedance from the rectifier forward drop, transformer winding resistance, and filter cap ESR. When the output stage draws current, the B+ voltage sags proportionally.
Simple form: supply 9V — just sets nominal voltage, no sag.
Block form: supply 480V { impedance: 150, filter_cap: 40u, rectifier: tube }
Fields§
§voltage: f64Nominal (no-load) supply voltage in volts.
impedance: Option<f64>Supply output impedance in ohms (rectifier + transformer + ESR). Higher = more sag. Tube rectifier: 50–200Ω, solid-state: 1–10Ω.
filter_cap: Option<f64>Main filter capacitance in farads — sets sag recovery time. Larger cap = faster recovery. Typical: 40µF (vintage) to 220µF (modern).
rectifier: RectifierTypeRectifier type — tube (saggy) or solid-state (stiff).
Implementations§
Source§impl SupplyConfig
impl SupplyConfig
Trait Implementations§
Source§impl Clone for SupplyConfig
impl Clone for SupplyConfig
Source§fn clone(&self) -> SupplyConfig
fn clone(&self) -> SupplyConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SupplyConfig
impl Debug for SupplyConfig
Source§impl PartialEq for SupplyConfig
impl PartialEq for SupplyConfig
Source§fn eq(&self, other: &SupplyConfig) -> bool
fn eq(&self, other: &SupplyConfig) -> bool
self and other values to be equal, and is used by ==.