Struct MosfetRoot
pub struct MosfetRoot {
pub model: MosfetModel,
/* private fields */
}Expand description
Enhancement-mode MOSFET nonlinear root for WDF trees.
Models the drain-source path as a nonlinear element controlled by an external gate-source voltage Vgs. Uses Newton-Raphson to solve the implicit WDF constraint equation.
Unlike JFETs (depletion-mode, normally on), enhancement MOSFETs are normally off and require Vgs > Vth to conduct.
Fields§
§model: MosfetModelImplementations§
§impl MosfetRoot
impl MosfetRoot
pub fn new(model: MosfetModel) -> MosfetRoot
pub fn set_vgs(&mut self, vgs: f64)
pub fn set_vgs(&mut self, vgs: f64)
Set the gate-source voltage (external control from bias, signal, etc.)
pub fn set_operating_point(&mut self, vgs_bias: f64, vds_bias: f64)
pub fn set_operating_point(&mut self, vgs_bias: f64, vds_bias: f64)
Set the DC operating point used by the incremental WDF one-port.
pub fn drain_current(&self, vds: f64) -> f64
pub fn drain_current(&self, vds: f64) -> f64
Compute drain current for given Vds at current Vgs.
See MosfetModel::ids for the enhancement-mode square-law model.
Trait Implementations§
§impl Clone for MosfetRoot
impl Clone for MosfetRoot
§fn clone(&self) -> MosfetRoot
fn clone(&self) -> MosfetRoot
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 moreimpl Copy for MosfetRoot
§impl Debug for MosfetRoot
impl Debug for MosfetRoot
§impl NlDeviceIv for MosfetRoot
impl NlDeviceIv for MosfetRoot
Auto Trait Implementations§
impl Freeze for MosfetRoot
impl RefUnwindSafe for MosfetRoot
impl Send for MosfetRoot
impl Sync for MosfetRoot
impl Unpin for MosfetRoot
impl UnsafeUnpin for MosfetRoot
impl UnwindSafe for MosfetRoot
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