pub struct Vsource {
pub name: String,
pub nodes: [String; 2],
pub dc: Option<f64>,
pub wave: Option<Wave>,
pub ac: Option<(f64, f64)>,
pub distof1: Option<(f64, f64)>,
pub distof2: Option<(f64, f64)>,
pub port: Option<RfPort>,
}Expand description
VXXXXXXX N+ N- <DC VALUE> <tranfn(…)>.
Fields§
§name: String§nodes: [String; 2]§dc: Option<f64>None when no DC value was given (transient functions then
also provide the DC-mode value, like VSRCload).
wave: Option<Wave>§ac: Option<(f64, f64)>AC <MAG <PHASE°>>: the small-signal stimulus.
distof1: Option<(f64, f64)>DISTOF1 <MAG <PHASE°>>: the .disto input at f1.
distof2: Option<(f64, f64)>DISTOF2 <MAG <PHASE°>>: the .disto input at f2.
port: Option<RfPort>PORTNUM N <Z0 Z>: makes the source an ngspice RF port —
in every analysis it then drives its + node through the
series reference impedance (internal node <name>#res), and
.sp excites it. None for an ordinary source.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Vsource
impl Freeze for Vsource
impl Move for Vsource
impl RefUnwindSafe for Vsource
impl Send for Vsource
impl Sync for Vsource
impl Unpin for Vsource
impl UnsafeUnpin for Vsource
impl UnwindSafe for Vsource
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