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

TypeNameDefaultDescription
Modelica.Units.SI.ResistanceRResistance at temperature T_ref
Modelica.Units.SI.TemperatureT_ref300.15Reference temperature
Modelica.Units.SI.LinearTemperatureCoefficientalpha0Temperature coefficient of resistance (R_actual = R*(1 + alpha*(T_heatPort - T_ref))

Components

TypeNameDefaultDescription
Modelica.Units.SI.ResistanceR_actualActual 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 for P_nominal to 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.