modelResistor

Single-phase linear resistor

Extends from Interfaces.OnePort (Two pins, current through), 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 complex voltage v with the complex current i by i*R = v. The resistance R is allowed to be positive, zero, or negative.

The resistor model also has an optional conditional heat port. A linear temperature dependency of the resistance is also taken into account.

See also

Conductor, Capacitor, Inductor, Impedance, Admittance, Variable resistor, Variable conductor, Variable capacitor, Variable inductor, Variable impedance, Variable admittance

Parameters

TypeNameDefaultDescription
SI.ResistanceR_refReference resistance at T_ref
SI.TemperatureT_ref293.15Reference temperature
SI.LinearTemperatureCoefficientalpha_ref0Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))
BooleanuseHeatPort (from ConditionalHeatPort)false= true, if heatPort is enabled
SI.TemperatureT (from ConditionalHeatPort)293.15Fixed device temperature if useHeatPort = false

Connectors

TypeNameDefaultDescription
PositivePinpin_p (from TwoPinElementary)Positive quasi-static single-phase pin
NegativePinpin_n (from TwoPinElementary)Negative quasi-static single-phase pin
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from ConditionalHeatPort)Conditional heat port

Components

TypeNameDefaultDescription
SI.AngularVelocityomega (from TwoPinElementary)Angular velocity of reference frame
SI.ComplexVoltagev (from TwoPin)Complex voltage
SI.Voltageabs_v (from TwoPin)Modelica.ComplexMath.abs(v)Magnitude of complex voltage
SI.Anglearg_v (from TwoPin)Modelica.ComplexMath.arg(v)Argument of complex voltage
SI.ComplexCurrenti (from TwoPin)Complex current
SI.Currentabs_i (from TwoPin)Modelica.ComplexMath.abs(i)Magnitude of complex current
SI.Anglearg_i (from TwoPin)Modelica.ComplexMath.arg(i)Argument of complex current
SI.ActivePowerP (from TwoPin)Modelica.ComplexMath.real(v*Modelica.ComplexMath.conj(i))Active power
SI.ReactivePowerQ (from TwoPin)Modelica.ComplexMath.imag(v*Modelica.ComplexMath.conj(i))Reactive power
SI.ApparentPowerS (from TwoPin)Modelica.ComplexMath.abs(v*Modelica.ComplexMath.conj(i))Magnitude of complex apparent power
Realpf (from TwoPin)cos(Modelica.ComplexMath.arg(Complex(P, Q)))Power factor
SI.PowerLossPower (from ConditionalHeatPort)Loss power leaving component via heatPort
SI.TemperatureT_heatPort (from ConditionalHeatPort)Temperature of heatPort
SI.ResistanceR_actualResistance = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))