Appearance
Resistor
Single-phase ideal resistor. Implements Ohm's law v = R i. The most common passive element — use for damping, sensing, and load modelling.
Aliases: SimCompElecResistor, CSim_comp_elec_res
Category: Single-Phase / Passive
Keywords: 1-phase, 1-ph, 1 ph, 1ph, single, single-phase, single phase, phase, ph, R, ohm, Ω, res, passive
Ports
| Name | Direction | Value type | Notes |
|---|---|---|---|
N1 | electrical | double | |
N2 | electrical | double |
Parameters
Config
| Name | Label | Type | Default | Units | Description |
|---|---|---|---|---|---|
resistance | R | double | 1 | Ohms (Ω, kΩ, pu, S) | Resistance value. Pick a unit from the dropdown; pu / Siemens conversions read the bases from the Units tab. |
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. |
Units
| Name | Label | Type | Default | Units | Description |
|---|---|---|---|---|---|
S_base | S_base (MVA) | double | 100 | — | System base apparent power in MVA. Used by `pu` impedance / admittance conversions in this component's `computations` block. |
V_base | V_base (kV) | double | 230 | — | Base RMS line-to-line voltage in kV. Used by `pu` impedance / admittance conversions in this component's `computations` block. |
Observables
| Signal | Type | Default name | Enable | Description |
|---|---|---|---|---|
branchCurrent | signal | from current_name | measure_current | Branch current through the resistor (A). |
Used in samples
- Buck
- Full Bridge Rectifier V2
- Half Bridge Rectifier
- Pwm Power Control
- Pwm Subsystem
- Rc Charge
- Rl Transient
- Rlc Series
- Transmission Line Pi
- Voltage Divider
Implemented in C++ class SimCompElecResistor (components/electrical/sim_comp_elec_resistor/sim_comp_elec_resistor.h).