VariableResistor
Ideal linear electrical resistor with variable resistance
Library
Modelica/Electrical/Analog/Basic
Description
The linear resistor connects the branch voltage v with the branch current i by
i*R = v
The Resistance R is given as input signal.
Attention!!!
It is recommended that the R signal should not cross the zero value. Otherwise depending on the surrounding circuit the probability of singularities is high.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_T_ref | T_ref | Reference temperature | Scalar | |
mo_alpha | alpha | Temperature coefficient of resistance (R_actual = R*(1 + alpha*(T_heatPort - T_ref)) | Scalar | |
mo_useHeatPort | useHeatPort | =true, if heatPort is enabled | Number | 0 |
mo_T | T | Fixed device temperature if useHeatPort = false | Scalar | |
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 |
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 | 'v' | |
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
p | implicit | Positive electrical pin | input | 1 |
n | implicit | Negative electrical pin | output | 1 |
R | implicit | input | 2 | |
Port 4 | implicit | Conditional heat port | input | mo_useHeatPort |