Resistor
An ideal resistor between two electrical pins.
- electrical
- Gradara equations
- 2 ports
- 1 parameter
resistorLibraryElectricalDescription
An ideal linear resistor between its two pins: the voltage across it is proportional to the current through it (Ohm’s law).
Example
RC and RL transients A 10 V step charges a capacitor through a resistor, and another builds current in an inductor through a conductor.
Step 10 VR 1 kΩC 100 µFCapacitor voltageGroundStep 10 V (RL)G 0.1 SInductor currentL 1 HGround (RL)
Also in this example:Voltage sensorCurrent sensorGroundCapacitorInductorConductorStep voltage
Ports
Conserving terminals 2
-
+
pPositive pin. Current into p is counted as positive.
-
−
nNegative pin.
Parameters
-
Resistance
R1 Ω≥ 0.000001
Resistance, in ohms. At least 1 µΩ.
Equations
Modelica
v = p.v − n.v i = p.i, p.i + n.i = 0 v = R · i
Assumptions and limitations
- No temperature dependence, noise, or inductance. For heating, use Resistor (thermal).
Used in
These larger examples use it too. Open them from Examples in the app.
- Buck converter · Ideal switches
- 480 VAC → 24 VDC flyback
See also
Select a block in Gradara and press F1 to open its page offline.