Struct JfetModel
pub struct JfetModel {
pub vto: f64,
pub beta: f64,
pub lambda: f64,
pub gate_is: f64,
pub n: f64,
pub rd: f64,
pub rs: f64,
pub cgs: f64,
pub cgd: f64,
pub is_n_channel: bool,
}Expand description
JFET model parameters in standard SPICE Level 1 parameterization.
Uses VTO (threshold voltage) and BETA (transconductance coefficient)
directly from SPICE .MODEL statements rather than the derived Idss.
Fields§
§vto: f64Threshold (pinch-off) voltage (V). Negative for N-channel depletion mode.
beta: f64Transconductance coefficient (A/V²). Ids_sat = BETA × (Vgs - VTO)².
lambda: f64Channel-length modulation parameter (1/V).
gate_is: f64Gate junction saturation current (A).
n: f64Gate junction ideality factor.
rd: f64Drain ohmic resistance (Ω).
rs: f64Source ohmic resistance (Ω).
cgs: f64Gate-source zero-bias junction capacitance (F).
cgd: f64Gate-drain zero-bias junction capacitance (F).
is_n_channel: boolTrue for N-channel, false for P-channel.
Implementations§
§impl JfetModel
impl JfetModel
pub fn gate_source_current(&self, vgs: f64) -> f64
pub fn gate_source_current(&self, vgs: f64) -> f64
Compute gate-source junction diode current.
Igs = IS × (exp(Vgs / (N × Vt)) - 1)
pub fn gate_drain_current(&self, vgd: f64) -> f64
pub fn gate_drain_current(&self, vgd: f64) -> f64
Compute gate-drain junction diode current.
Igd = IS × (exp(Vgd / (N × Vt)) - 1)
pub fn gate_source_conductance(&self, vgs: f64) -> f64
pub fn gate_source_conductance(&self, vgs: f64) -> f64
Compute d(Igs)/d(Vgs): conductance of the gate-source junction diode.
dIgs/dVgs = IS / (N × Vt) × exp(Vgs / (N × Vt))
Returns the external-convention derivative (same sign convention as
gate_source_current).