VariableResistor
Single phase variable resistor
Library
Modelica/Electrical/QuasiStationary/SinglePhase/Basic
Description
The linear resistor connects the voltage v
with the
current i
by i*R = v
.
The resistance R
is given as input signal.
The variable resistor model also has an optional conditional heat port. A linear temperature dependency of the resistance is also taken into account.
Note
A zero crossing of the R signal could cause singularities due to the actual structure of the connected network.
See also
Resistor, Conductor, Capacitor, Inductor, Impedance, Admittance, Variable conductor, Variable capacitor, Variable inductor, Variable impedance, Variable admittance
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
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_abs_v | abs_v | abs_v | Structure | |
mo_abs_v/fixed | fixed | Cell of scalars | true | |
mo_abs_v/start | start | Cell of scalars | ||
mo_arg_v | arg_v | arg_v | Structure | |
mo_arg_v/fixed | fixed | Cell of scalars | true | |
mo_arg_v/start | start | Cell of scalars | ||
mo_abs_i | abs_i | abs_i | Structure | |
mo_abs_i/fixed | fixed | Cell of scalars | true | |
mo_abs_i/start | start | Cell of scalars | ||
mo_arg_i | arg_i | arg_i | Structure | |
mo_arg_i/fixed | fixed | Cell of scalars | true | |
mo_arg_i/start | start | Cell of scalars | ||
mo_P | P | P | Structure | |
mo_P/fixed | fixed | Cell of scalars | true | |
mo_P/start | start | Cell of scalars | ||
mo_Q | Q | Q | Structure | |
mo_Q/fixed | fixed | Cell of scalars | true | |
mo_Q/start | start | Cell of scalars | ||
mo_S | S | S | Structure | |
mo_S/fixed | fixed | Cell of scalars | true | |
mo_S/start | start | Cell of scalars | ||
mo_pf | pf | pf | Structure | |
mo_pf/fixed | fixed | Cell of scalars | true | |
mo_pf/start | start | Cell of scalars | ||
mo_omega | omega | omega | Structure | |
mo_omega/fixed | fixed | Cell of scalars | true | |
mo_omega/start | start | Cell of scalars | ||
mo_LossPower | LossPower | LossPower | Structure | |
mo_LossPower/fixed | fixed | Cell of scalars | true | |
mo_LossPower/start | start | Cell of scalars | ||
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_actual | R_actual | R_actual | Structure | |
mo_R_actual/fixed | fixed | Cell of scalars | true | |
mo_R_actual/start | start | Cell of scalars | ||
mo_R_ref | R_ref | R_ref | Structure | |
mo_R_ref/fixed | fixed | Cell of scalars | true | |
mo_R_ref/start | start | Cell of scalars |
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 |
R_ref | implicit | Variable resistance | input | 2 |
Port 4 | implicit | Conditional heat port | input | mo_useHeatPort |