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
Ports
| Port | Kind | Signal | Notes |
|---|---|---|---|
a | Electrical terminal | — | |
c | Electrical terminal | — |
Parameters
Config
| Parameter | Type | Default | Units | Description | ID |
|---|---|---|---|---|---|
| Vf | Number | 0.7 | — | Forward conduction threshold voltage in volts | v_forward |
| R_on | Number | 0.05 | Ω (also kΩ, MΩ) | Conducting (forward biased) resistance. Pick a unit from the dropdown. | resistance_on |
| R_off | Number | 1000000 | Ω (also kΩ, MΩ) | Blocking (reverse biased) resistance. Pick a unit from the dropdown. | resistance_off |
| Measure current | Choice: Off / On | Off | — | Emit branch current as a simulator observable. | measure_current |
| Positive direction | Choice: +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
| Parameter | Type | Default | Units | Description | ID |
|---|---|---|---|---|---|
| Current name | Text | I | — | Signal name for the measured branch current. Change the default `I` when you have multiple measured components — duplicate ids collide. | current_name |
Observables
| Default name | Kind | Recorded when | Description | ID |
|---|---|---|---|---|
| set by Current name | Signal | Measure current is on | Branch 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 |