Diode
Physical Networks
Live-Beispiel starten
Kostenlos · ohne Anmeldung · läuft im Browser
Nonlinear electrical diode for rectification, clamping, and inductive flyback protection in acausal MNA circuits. Supports both a numerically smooth piecewise-linear model (piecewise) and the physical exponential Shockley junction model (shockley).
Mathematisches Modell
Let be the anode-to-cathode voltage and the current flowing from anode (p) to cathode (n):
Power dissipated as heat is , exported on q_diss and the optional H thermal conserving port.
Ein- & Ausgänge
| Direction | ID | Label | Typ | Status |
|---|---|---|---|---|
| → In | p |
+ | number | Required |
| → In | n |
- | number | Required |
| → In | H |
H | number | Optional |
| ← Out | q_diss |
Q_diss | number | Output |
Parameter
| Parameter | Label | Typ | Standardwert | Beschreibung |
|---|---|---|---|---|
model |
Diode Model | select | piecewise |
Piecewise linear is fast and numerically well-conditioned; Shockley models the physical exponential junction |
forwardVoltage |
Forward Voltage (Vf) | number | 0.7 |
Forward voltage drop threshold for the piecewise model |
onResistance |
On Resistance (Ron) | number | 0.05 |
Forward-biased dynamic resistance in the piecewise model |
offConductance |
Off Conductance (Goff) | number | 0.000001 |
Reverse-bias leakage conductance (1 / Roff) |
saturationCurrent |
Saturation Current (Is) | number | 1e-12 |
Reverse saturation current for the Shockley model |
idealityFactor |
Ideality Factor (n) | number | 1 |
Emission coefficient / ideality factor (typically 1.0 to 2.0) |
seriesResistance |
Series Resistance (Rs) | number | 0.05 |
Ohmic bulk/contact resistance in the Shockley model |
thermalVoltage |
Thermal Voltage (Vt) | number | 0.02585 |
Thermal voltage kT/q (~25.85 mV at 300 K) |
Anwendungsbeispiele
Example 1: Half-Wave Rectifier
Connect an AC VoltageSource through a Diode to a Resistor and Ground to rectify positive half-cycles.
Example 2: Flyback Protection
Place a Diode anti-parallel across a DCMotor or Inductor to clamp inductive voltage spikes.
Hinweise & Best Practices
- Smooth Transition: The piecewise model uses a smooth knee transition so Newton-Raphson converges reliably without chattering.
- Thermal Coupling: Connect the optional
Hport to aThermalMassto simulate diode self-heating.
Verwandte Blöcke
- Resistor/docs.md" class="bw-link">Resistor
- ControlledSwitch/docs.md" class="bw-link">ControlledSwitch
- VoltageSource/docs.md" class="bw-link">VoltageSource