FET

MOSFET

Physical Networks
Run the live example Free · no sign-up · runs in your browser

The MOSFET block models an N-channel enhancement power MOSFET for switching converters, motor drives, and active loads. It combines a gate-controlled channel (VthV_{\text{th}}, RDS(on)R_{\text{DS(on)}}), an intrinsic anti-parallel body diode (Vf,bodyV_{f,\text{body}}), and a thermal dissipation port H for electro-thermal co-simulation.

Mathematical Model

Channel enhancement α(VGS)\alpha(V_{GS}) transitions smoothly around VthV_{\text{th}} over width ΔVGS\Delta V_{GS}:

α=12(1+tanh⁡VGS−VthΔVGS),Gch=Goff+α(1RDS(on)−Goff)\alpha = \frac{1}{2}\left(1 + \tanh\frac{V_{GS} - V_{\text{th}}}{\Delta V_{GS}}\right), \qquad G_{\text{ch}} = G_{\text{off}} + \alpha\left(\frac{1}{R_{\text{DS(on)}}} - G_{\text{off}}\right)

The terminal voltage VDS(IDS)V_{DS}(I_{DS}) combines the resistive channel with the anti-parallel body diode (Vbody=−Vf,body+RDS(on)IDSV_{\text{body}} = -V_{f,\text{body}} + R_{\text{DS(on)}} I_{DS}), and conduction loss Qdiss=VDS⋅IDSQ_{\text{diss}} = V_{DS} \cdot I_{DS} is injected into thermal port H.

Inputs & Outputs

Direction ID Label Type Status
→ In p D number Required
→ In n S number Required
→ In in G number Optional
→ In H H number Optional
← Out q_diss Q_diss number Output

Parameters

Parameters Label Type Default Description
thresholdVoltage Gate Threshold (Vth) number 2 Gate-source threshold voltage at which the MOSFET channel turns on
onResistance On Resistance (Rds_on) number 0.05 Drain-source on-state resistance when fully enhanced
offConductance Off Leakage Conductance number 1e-7 Small residual off-state conductance for numerical stability
transitionWidth Gate Transition Width number 0.2 Smooth transition width around Vth for Newton convergence
bodyDiodeVf Body Diode Vf number 0.7 Forward voltage drop of the intrinsic anti-parallel body diode
gateVoltage Default Gate Voltage number 0 Default V_GS when the Gate input port is unconnected

Usage Examples

PWM Low-Side Motor Switch

Connect a PWMGenerator (highLevel = 10 V) to the in (Gate) port of a MOSFET in series with a DCMotor and Battery to modulate motor speed.

Synchronous Buck Converter

Use two MOSFET blocks driven by complementary PWMGenerator signals (phase = 0° and 180°) feeding an Inductor and Capacitor output filter.

Remarks & Best Practices

  • Body Diode Conduction: When the MOSFET is OFF and Source rises above Drain by more than bodyDiodeVf, reverse current flows naturally through the body diode.
  • Thermal Coupling: Connect port H to a ThermalMass and Convection block to simulate junction temperature rise under load.

Related Components