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

Keywords: 1-phase, 1-ph, 1 ph, 1ph, single, single-phase, single phase, phase, ph, rectifier, semiconductor, p-n, PN, switching, anode, cathode

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 namestringIObservable id 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


Implemented in C++ class SimCompElecDiode (components/electrical/sim_comp_elec_diode/sim_comp_elec_diode.h).

Released under the MIT License.