modelVariableResistor

Ideal linear electrical resistor with variable resistance

Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n), Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort (Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network).

Information

The linear resistor connects the branch voltage v with the branch current i by
i*R = v
The Resistance R is given as input signal.

Attention!!!
It is recommended that the R signal should not cross the zero value. Otherwise depending on the surrounding circuit the probability of singularities is high.

Parameters

TypeNameDefaultDescription
SI.TemperatureT_ref300.15Reference temperature
SI.LinearTemperatureCoefficientalpha0Temperature coefficient of resistance (R_actual = R*(1 + alpha*(T_heatPort - T_ref)))
BooleanuseHeatPort (from ConditionalHeatPort)false= true, if heatPort is enabled
SI.TemperatureT (from ConditionalHeatPort)293.15Fixed device temperature if useHeatPort = false

Connectors

TypeNameDefaultDescription
PositivePinp (from TwoPin)Positive electrical pin
NegativePinn (from TwoPin)Negative electrical pin
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from ConditionalHeatPort)Conditional heat port
Modelica.Blocks.Interfaces.RealInputR

Components

TypeNameDefaultDescription
SI.Voltagev (from TwoPin)Voltage drop of the two pins (= p.v - n.v)
SI.Currenti (from OnePort)Current flowing from pin p to pin n
SI.PowerLossPower (from ConditionalHeatPort)Loss power leaving component via heatPort
SI.TemperatureT_heatPort (from ConditionalHeatPort)Temperature of heatPort
SI.ResistanceR_actualActual resistance = R*(1 + alpha*(T_heatPort - T_ref))

Revisions

  • August 07, 2009 by Anton Haumer
    temperature dependency of resistance added
  • March 11, 2009 by Christoph Clauss
    conditional heat port added
  • June 7, 2004 by Christoph Clauss
    changed, docu added
  • April 30, 2004 by Anton Haumer
    implemented.