Skip to content

Diode ​

Single-phase semiconductor diode. Conducts when forward-biased (low on-state resistance plus a forward-voltage drop) and blocks reverse current (very high off-state resistance). Switches automatically — no control port.

Category: Single-Phase / Switching

Ports ​

PortKindSignalNotes
aElectrical terminal—
cElectrical terminal—

Parameters ​

Config ​

ParameterTypeDefaultUnitsDescriptionID
VfNumber0.7—Forward conduction threshold voltage in voltsv_forward
R_onNumber0.05Ω (also kΩ, MΩ)Conducting (forward biased) resistance. Pick a unit from the dropdown.resistance_on
R_offNumber1000000Ω (also kΩ, MΩ)Blocking (reverse biased) resistance. Pick a unit from the dropdown.resistance_off
Measure currentChoice: Off / OnOff—Emit branch current as a simulator observable.measure_current
Positive directionChoice: +ve in / +ve out+ve in—Sign convention for this current. '+ve in' (default) is positive when current flows into the anode, toward the cathode. '+ve out' flips the sign.current_dir

Current Monitoring ​

ParameterTypeDefaultUnitsDescriptionID
Current nameTextI—Signal name for the measured branch current. Change the default `I` when you have multiple measured components — duplicate ids collide.current_name

Observables ​

Default nameKindRecorded whenDescriptionID
set by Current nameSignalMeasure current is onBranch current through the diode (A, anode → cathode). Positive into the anode, toward the cathode for '+ve in' (default); the other direction flips the sign.branchCurrent

Used in samples ​