Resistor
Ideal linear electrical resistor
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 allowed to be positive, zero, or negative.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_R | R | Resistance at temperature T_ref | Scalar | |
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 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_v | v | v | Structure | |
mo_v/fixed | fixed | Cell of scalars | true | |
mo_v/start | start | Cell of scalars | ||
mo_i | i | i | Structure | |
mo_i/fixed | fixed | Cell of scalars | true | |
mo_i/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 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
p | implicit | Positive electrical pin | input | 1 |
n | implicit | Negative electrical pin | output | 1 |
Port 3 | implicit | Conditional heat port | input | mo_useHeatPort |