modelResistor
Ideal linear electrical resistor
Extends from Buildings.Electrical.Interfaces.ResistiveLoad, Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort.
Information
Model of a linear DC resistor that can vary with respect to temperature.
The model implements the Ohm's law
V = R(T) i.
The resistance R(T) varies depending on the temperature T as
R(T) = R (1 + α (T - Tref)),
where the resistance R is the reference value of the resistance, α is the
linear temperature coefficient, and Tref is the reference temperature.
The temperature T is the temperature of the heat port if useHeatPort = true.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Resistance | R | Resistance at temperature T_ref | |
| Modelica.Units.SI.Temperature | T_ref | 300.15 | Reference temperature |
| Modelica.Units.SI.LinearTemperatureCoefficient | alpha | 0 | Temperature coefficient of resistance (R_actual = R*(1 + alpha*(T_heatPort - T_ref)) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Resistance | R_actual | Actual resistance = R*(1 + alpha*(T_heatPort - T_ref)) |
Revisions
- November 2, 2024, by Michael Wetter:
Changed guarding against division by zero.
This is for Buildings #4032. - November 3, 2015, by Michael Wetter:
Set default value forP_nominalto avoid an error when translating the model in Dymola's pedantic mode. - May 14, 2015, by Marco Bonvini:
Changed parent class to Buildings.Electrical.Interfaces.ResistiveLoad in order to help openmodelica parsing the model. This fixes issue #415. -
February 1, 2013, by Thierry S. Nouidui:
First implementation. -
May 28, 2014, by Marco Bonvini:
Revised model and documentation.