Appearance
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
| Name | Direction | Value type | Notes |
|---|---|---|---|
a | electrical | double | |
c | electrical | double |
Parameters
Config
| Name | Label | Type | Default | Units | Description |
|---|---|---|---|---|---|
v_forward | Vf | double | 0.7 | — | Forward conduction threshold voltage in volts |
resistance_on | R_on | double | 0.05 | Ohms (Ω, kΩ, MΩ) | Conducting (forward biased) resistance. Pick a unit from the dropdown. |
resistance_off | R_off | double | 1000000 | Ohms (Ω, kΩ, MΩ) | Blocking (reverse biased) resistance. Pick a unit from the dropdown. |
measure_current | Measure current | enum (Off / On) | 0 | — | Emit branch current as a simulator observable. |
Current Monitoring
| Name | Label | Type | Default | Units | Description |
|---|---|---|---|---|---|
current_name | Current name | string | I | — | Observable id for the measured branch current. Change the default `I` when you have multiple measured components — duplicate ids collide. |
Observables
| Signal | Type | Default name | Enable | Description |
|---|---|---|---|---|
branchCurrent | signal | from current_name | measure_current | Branch 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).