pub struct SpiceDeviceOp {
pub device: String,
pub model: String,
pub vbe: f64,
pub vce: f64,
pub ic: f64,
pub ib: f64,
pub gm: f64,
}Expand description
One device’s DC operating point as reported by ngspice’s .op / show.
vce/ic are derived for BJTs from the show table:
vce = vbe − vbc, ic is the collector current row. All voltages in volts,
currents in amps. For PNP devices ngspice reports the junction-voltage
magnitudes (positive vbe) with a negative ic; the values are stored
verbatim so the caller controls sign convention.
Fields§
§device: StringDevice reference, uppercased (e.g. Q1, Q3).
model: StringModel name (e.g. QBC184C, QAC128).
vbe: f64Base–emitter voltage vbe, volts.
vce: f64Collector–emitter voltage vce = vbe − vbc, volts.
ic: f64Collector current ic, amps.
ib: f64Base current ib, amps.
gm: f64Transconductance gm, siemens.
Trait Implementations§
Source§impl Clone for SpiceDeviceOp
impl Clone for SpiceDeviceOp
Source§fn clone(&self) -> SpiceDeviceOp
fn clone(&self) -> SpiceDeviceOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpiceDeviceOp
impl Debug for SpiceDeviceOp
Source§impl<'de> Deserialize<'de> for SpiceDeviceOp
impl<'de> Deserialize<'de> for SpiceDeviceOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SpiceDeviceOp
impl PartialEq for SpiceDeviceOp
Source§fn eq(&self, other: &SpiceDeviceOp) -> bool
fn eq(&self, other: &SpiceDeviceOp) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SpiceDeviceOp
impl Serialize for SpiceDeviceOp
impl StructuralPartialEq for SpiceDeviceOp
Auto Trait Implementations§
impl Freeze for SpiceDeviceOp
impl RefUnwindSafe for SpiceDeviceOp
impl Send for SpiceDeviceOp
impl Sync for SpiceDeviceOp
impl Unpin for SpiceDeviceOp
impl UnsafeUnpin for SpiceDeviceOp
impl UnwindSafe for SpiceDeviceOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more