Resistor
Single phase linear 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
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_T_heatPort | T_heatPort | T_heatPort | Structure | |
mo_T_heatPort/fixed | fixed | Cell of scalars | true | |
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 |
mo_T | T | Fixed device temperature if useHeatPort = false | Scalar |
Name | Label | Description | Data Type | Valid 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' | |
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
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 |