Skip to content

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

NameDirectionValue typeNotes
N1electricaldouble
N2electricaldouble

Parameters

Config

NameLabelTypeDefaultUnitsDescription
resistanceRdouble1Ohms (Ω, , pu, S)Resistance value. Pick a unit from the dropdown; pu / Siemens conversions read the bases from the Units tab.
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.

Units

NameLabelTypeDefaultUnitsDescription
S_baseS_base (MVA)double100System base apparent power in MVA. Used by `pu` impedance / admittance conversions in this component's `computations` block.
V_baseV_base (kV)double230Base RMS line-to-line voltage in kV. Used by `pu` impedance / admittance conversions in this component's `computations` block.

Observables

SignalTypeDefault nameEnableDescription
branchCurrentsignalfrom current_namemeasure_currentBranch current through the resistor (A).

Used in samples


Implemented in C++ class SimCompElecResistor (components/electrical/sim_comp_elec_resistor/sim_comp_elec_resistor.h).

Released under the MIT License.