Struct BjtTwoPort
pub struct BjtTwoPort {
pub model: GummelPoonModel,
pub is_pnp: bool,
/* private fields */
}Expand description
2-port BJT for the multi-NL grouped solver.
Exposes both junction voltages as solver variables:
- Port 0: (base, emitter) → Vbe → base current Ib
- Port 1: (collector, emitter) → Vce → collector current Ic
The full 2×2 Jacobian includes the critical cross-derivative ∂Ic/∂Vbe (transconductance gm ≈ Ic/Vt), enabling proper coupled BJT solving (e.g., Fuzz Face where Q1 and Q2 interact through shared bias networks).
Fields§
§model: GummelPoonModel§is_pnp: boolImplementations§
§impl BjtTwoPort
impl BjtTwoPort
pub fn new(model: GummelPoonModel) -> BjtTwoPort
pub fn new(model: GummelPoonModel) -> BjtTwoPort
Create a new NPN BjtTwoPort.
pub fn new_pnp(model: GummelPoonModel) -> BjtTwoPort
pub fn new_pnp(model: GummelPoonModel) -> BjtTwoPort
Create a new PNP BjtTwoPort.
Trait Implementations§
§impl Clone for BjtTwoPort
impl Clone for BjtTwoPort
§fn clone(&self) -> BjtTwoPort
fn clone(&self) -> BjtTwoPort
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 more§impl Debug for BjtTwoPort
impl Debug for BjtTwoPort
§impl NlDeviceGroupIv for BjtTwoPort
impl NlDeviceGroupIv for BjtTwoPort
Auto Trait Implementations§
impl Freeze for BjtTwoPort
impl RefUnwindSafe for BjtTwoPort
impl Send for BjtTwoPort
impl Sync for BjtTwoPort
impl Unpin for BjtTwoPort
impl UnsafeUnpin for BjtTwoPort
impl UnwindSafe for BjtTwoPort
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