modelResistor
Ideal linear electrical resistor
Extends from Buildings.Electrical.Interfaces.ResistiveLoad (Partial model of a resistive load), Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort (Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network).
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 |
|---|---|---|---|
| Boolean | useHeatPort (from ConditionalHeatPort) | false | = true, if heatPort is enabled |
| SI.Temperature | T (from ConditionalHeatPort) | 293.15 | Fixed device temperature if useHeatPort = false |
| 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)) |
| Modeling assumption | |||
| Boolean | linearized (from Load) | false | If true, the load model is linearized |
| Buildings.Electrical.Types.Load | mode (from Load) | Buildings.Electrical.Types.Load.FixedZ_steady_state | Type of load model (e.g., steady state, dynamic, prescribed power consumption, etc.) |
| Nominal conditions | |||
| Modelica.Units.SI.Power | P_nominal (from Load) | 0 | Nominal power (negative if consumed, positive if generated). Used if mode <> Buildings.Electrical.Types.Load.VariableZ_P_input |
| Modelica.Units.SI.Voltage | V_nominal (from Load) | Nominal voltage (V_nominal >= 0) | |
| Initialization | |||
| Buildings.Electrical.Types.InitMode | initMode (from Load) | Buildings.Electrical.Types.InitMode.linearized | Initialization mode for homotopy operator |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | y (from Load) | Fraction of the nominal power consumed | |
| Modelica.Blocks.Interfaces.RealInput | Pow (from Load) | Power consumed | |
| Buildings.Electrical.Interfaces.Terminal | terminal (from Load) | Generalized electric terminal | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from ConditionalHeatPort) | Conditional heat port |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Voltage[:] | v (from Load) | terminal.v | Voltage vector |
| Modelica.Units.SI.Current[:] | i (from Load) | terminal.i | Current vector |
| Modelica.Units.SI.Power[PhaseSystem.n] | S (from Load) | PhaseSystem.phasePowers_vi(v, -i) | Phase powers |
| Modelica.Units.SI.Power | P (from Load) | Power of the load (negative if consumed, positive if fed into the electrical grid) | |
| SI.Power | LossPower (from ConditionalHeatPort) | Loss power leaving component via heatPort | |
| SI.Temperature | T_heatPort (from ConditionalHeatPort) | Temperature of heatPort | |
| 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.