pub enum SweepParam {
Temp,
Instance {
name: String,
param: Option<String>,
},
}Expand description
One swept quantity.
Built with SweepParam::parse from the forms below (case
insensitive, like the deck); names are the elaborated ones, so an
element inside a subcircuit is addressed by its expanded name
(r.x1.r1, as in the rawfile).
| text | quantity |
|---|---|
temp | circuit temperature TEMP, in °C (as .options temp=) |
r1, c1, l1 | the element value (Ω, F, H) |
vin, iin | the source’s DC level |
@r1[resistance], @r1[r] | resistor value |
@c1[capacitance], @c1[c] | capacitor value |
@l1[inductance], @l1[l] | inductor value |
@vin[dc], @vin[acmag], @vin[acphase] | V/I source DC level, AC magnitude, AC phase (degrees) |
@m1[w], @m1[l] | MOSFET drawn width and length (m) |
Model parameters are not sweepable yet (v2 of issue #10).
Variants§
Temp
Circuit temperature (TEMP), in °C.
Instance
A parameter of one element: param is the canonical ngspice
name (resistance, capacitance, inductance, dc,
acmag, acphase, w, l); None is the element’s primary
value (R/C/L value, V/I DC level).
Implementations§
Trait Implementations§
Source§impl Clone for SweepParam
impl Clone for SweepParam
Source§impl Debug for SweepParam
impl Debug for SweepParam
Source§impl Display for SweepParam
impl Display for SweepParam
impl Eq for SweepParam
Source§impl FromStr for SweepParam
impl FromStr for SweepParam
Source§impl Hash for SweepParam
impl Hash for SweepParam
Source§impl PartialEq for SweepParam
impl PartialEq for SweepParam
impl StructuralPartialEq for SweepParam
Auto Trait Implementations§
impl Forget for SweepParam
impl Freeze for SweepParam
impl Move for SweepParam
impl RefUnwindSafe for SweepParam
impl Send for SweepParam
impl Sync for SweepParam
impl Unpin for SweepParam
impl UnsafeUnpin for SweepParam
impl UnwindSafe for SweepParam
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