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

NameDirectionValue typeNotes
aelectricaldouble
celectricaldouble

Parameters

Config

NameLabelTypeDefaultUnitsDescription
v_forwardVfdouble0.7Forward conduction threshold voltage in volts
resistance_onR_ondouble0.05Ohms (Ω, , )Conducting (forward biased) resistance. Pick a unit from the dropdown.
resistance_offR_offdouble1000000Ohms (Ω, , )Blocking (reverse biased) resistance. Pick a unit from the dropdown.
measure_currentMeasure currentenum (Off / On)0Emit branch current as a simulator observable.

Current Monitoring

NameLabelTypeDefaultUnitsDescription
current_nameCurrent namestringISignal name for the measured branch current. Change the default `I` when you have multiple measured components — duplicate ids collide.

Observables

SignalTypeDefault nameEnableDescription
branchCurrentsignalfrom current_namemeasure_currentBranch current through the diode (A, anode → cathode).

Used in samples