Resistor

Single phase linear resistor

    Resistor

Library

Modelica/Electrical/QuasiStationary/SinglePhase/Basic

Description

The linear resistor connects the complex voltage v with the complexcurrent i by i*R = v.The resistance R is allowed to be positive, zero, or negative.

The resistor model also has an optionalconditional 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

Resistor_0

NameLabelDescriptionData TypeValid Values

mo_T_heatPort

T_heatPort

T_heatPort

Structure

mo_T_heatPort/fixed

fixed

Cell of scalars

true
false

mo_T_heatPort/start

start

Cell of scalars

mo_R_ref

R_ref

Reference resistance at T_ref

Scalar

mo_T_ref

T_ref

Reference temperature

Scalar

mo_alpha_ref

alpha_ref

Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))

Scalar

mo_useHeatPort

useHeatPort

=true, if heatPort is enabled

Number

0
1

mo_T

T

Fixed device temperature if useHeatPort = false

Scalar

Resistor_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

'abs_v'
'arg_v'
'abs_i'
'arg_i'
'P'
'Q'
'S'
'pf'
'omega'
'LossPower'
'R_actual'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

pin_p

implicit

Positive quasi-static single-phase pin

input

1

pin_n

implicit

Negative quasi-static single-phase pin

output

1

Port 3

implicit

Conditional heat port

input

mo_useHeatPort