Skip to main content

BjtModel

Struct BjtModel 

Source
pub struct BjtModel {
Show 42 fields pub npn: bool, pub is: f64, pub bf: f64, pub nf: f64, pub vaf: f64, pub ikf: f64, pub ise: f64, pub ne: f64, pub br: f64, pub nr: f64, pub var: f64, pub ikr: f64, pub isc: f64, pub nc: f64, pub rb: f64, pub irb: f64, pub rbm: Option<f64>, pub re: f64, pub rc: f64, pub cje: f64, pub vje: f64, pub mje: f64, pub tf: f64, pub xtf: f64, pub vtf: f64, pub itf: f64, pub ptf: f64, pub cjc: f64, pub vjc: f64, pub mjc: f64, pub xcjc: f64, pub tr: f64, pub cjs: f64, pub vjs: f64, pub mjs: f64, pub xtb: f64, pub eg: f64, pub xti: f64, pub fc: Option<f64>, pub kf: f64, pub af: f64, pub tnom: Option<f64>,
}
Expand description

.model … npn(…)/pnp(…) parameters, 3f5 names and defaults (bjt.c keyword table; defaults from bjtsetup.c).

Fields§

§npn: bool

NPN (+1) or PNP (−1).

§is: f64

IS, default 1e-16.

§bf: f64

BF, default 100.

§nf: f64

NF, default 1.

§vaf: f64

VAF/VA, default 0 (= infinite).

§ikf: f64

IKF/IK, default 0 (= infinite).

§ise: f64

ISE, default 0.

§ne: f64

NE, default 1.5.

§br: f64

BR, default 1.

§nr: f64

NR, default 1.

§var: f64

VAR/VB, default 0.

§ikr: f64

IKR, default 0.

§isc: f64

ISC, default 0.

§nc: f64

NC, default 2.

§rb: f64

RB, default 0.

§irb: f64

IRB, default 0.

§rbm: Option<f64>

RBM, default = RB.

§re: f64

RE, default 0.

§rc: f64

RC, default 0.

§cje: f64

CJE, default 0.

§vje: f64

VJE/PE, default 0.75.

§mje: f64

MJE/ME, default 0.33.

§tf: f64

TF, default 0.

§xtf: f64

XTF, default 0.

§vtf: f64

VTF, default 0.

§itf: f64

ITF, default 0.

§ptf: f64

PTF (degrees), default 0.

§cjc: f64

CJC, default 0.

§vjc: f64

VJC/PC, default 0.75.

§mjc: f64

MJC/MC, default 0.33.

§xcjc: f64

XCJC, default 1.

§tr: f64

TR, default 0.

§cjs: f64

CJS/CCS, default 0.

§vjs: f64

VJS/PS, default 0.75.

§mjs: f64

MJS/MS, default 0.

§xtb: f64

XTB, default 0.

§eg: f64

EG, default 1.11.

§xti: f64

XTI, default 3.

§fc: Option<f64>

FC, default 0.5 (clamped to 0.9999 when given).

§kf: f64

KF/AF (noise only).

§af: f64§tnom: Option<f64>

TNOM in kelvin.

Implementations§

Source§

impl BjtModel

Source

pub fn new(npn: bool) -> Self

Trait Implementations§

Source§

impl Clone for BjtModel

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BjtModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.