modelResistor

Polyphase linear resistor

Extends from Interfaces.TwoPlug (Two plugs with pin-adapter, reference connection and declaration of voltage and current), Modelica.Electrical.Polyphase.Interfaces.ConditionalHeatPort (Partial model to include conditional HeatPorts in order to describe the power loss via a thermal network).

Information

The linear resistor connects the complex voltages v with the complex currents i by i*R = v, using m single-phase Resistors.

The resistor model also has m optional conditional heat ports. A linear temperature dependency of the resistances for enabled heat ports is also taken into account.

See also

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

Parameters

TypeNameDefaultDescription
Integerm (from TwoPlugElementary)3Number of phases
SI.Resistance[m]R_refReference resistances at T_ref
SI.Temperature[m]T_reffill(293.15, m)Reference temperatures
SI.LinearTemperatureCoefficient[m]alpha_refzeros(m)Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))
Integermh (from ConditionalHeatPort)3Number of heatPorts=number of phases
BooleanuseHeatPort (from ConditionalHeatPort)false= true, if all heat ports are enabled
SI.Temperature[mh]T (from ConditionalHeatPort)fill(293.15, mh)Fixed device temperatures if useHeatPort = false

Connectors

TypeNameDefaultDescription
PositivePlugplug_p (from TwoPlugElementary)Positive quasi-static polyphase plug
NegativePlugplug_n (from TwoPlugElementary)Negative quasi-static polyphase plug
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[mh]heatPort (from ConditionalHeatPort)Conditional heat ports

Components

TypeNameDefaultDescription
SI.AngularVelocityomega (from TwoPlugElementary)Angular velocity of reference frame
Basic.PlugToPins_pplugToPins_p (from TwoPlugElementary)
Basic.PlugToPins_nplugToPins_n (from TwoPlugElementary)
SI.ComplexVoltage[m]v (from TwoPlug)Complex voltage
SI.Voltage[m]abs_v (from TwoPlug)Modelica.ComplexMath.abs(v)Magnitude of complex voltage
SI.Angle[m]arg_v (from TwoPlug)Modelica.ComplexMath.arg(v)Argument of complex voltage
SI.ComplexCurrent[m]i (from TwoPlug)Complex current
SI.Current[m]abs_i (from TwoPlug)Modelica.ComplexMath.abs(i)Magnitude of complex current
SI.Angle[m]arg_i (from TwoPlug)Modelica.ComplexMath.arg(i)Argument of complex current
SI.ActivePower[m]P (from TwoPlug){Modelica.ComplexMath.real(v[k]*Modelica.ComplexMath.conj(i[k])) for k in 1:m}Active power
SI.ActivePowerP_total (from TwoPlug)sum(P)Total active power
SI.ReactivePower[m]Q (from TwoPlug){Modelica.ComplexMath.imag(v[k]*Modelica.ComplexMath.conj(i[k])) for k in 1:m}Reactive power
SI.ReactivePowerQ_total (from TwoPlug)sum(Q)Total reactive power
SI.ApparentPower[m]S (from TwoPlug){Modelica.ComplexMath.abs(v[k]*Modelica.ComplexMath.conj(i[k])) for k in 1:m}Magnitude of complex apparent power
SI.ApparentPowerS_total (from TwoPlug)sqrt(P_total^2 + Q_total^2)Magnitude of total complex apparent power
Real[m]pf (from TwoPlug){cos(Modelica.ComplexMath.arg(Complex(P[k], Q[k]))) for k in 1:m}Power factor
QuasiStatic.SinglePhase.Basic.Resistor[m]resistor