modelResistor
AD version of Modelica.Electrical.Analog.Basic.Resistor
Extends from ADMSL.T1.Electrical.Analog.Interfaces.OnePort (AD version of Modelica.Electrical.Analog.Interfaces.OnePort), ADMSL.T1.Electrical.Analog.Interfaces.ConditionalHeatPort (AD version of Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort with useHeatPort=false).
Information
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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Resistance | R | Resistance at temperature T_ref | |
| SI.Temperature | T_ref | 300.15 | Reference temperature |
| SI.LinearTemperatureCoefficient | alpha | 0 | Temperature coefficient of resistance (R_actual = R*(1 + alpha*(T_heatPort - T_ref)) |
| Integer | NG (from GradientInfo) | 0 | |
| Boolean | useHeatPort (from ConditionalHeatPort) | false | =true, if heatPort is enabled |
| SI.Temperature | T (from ConditionalHeatPort) | 293.15 | Fixed device temperature if useHeatPort = false |
| Real[NG] | g_T (from ConditionalHeatPort) | zeros(NG) | The gradient of the fixed temperature |
| Real[NG] | g_R | zeros(NG) | The gradient of resistance |
| Real[NG] | g_T_ref | zeros(NG) | The gradient of reference temperature |
| Real[NG] | g_alpha | zeros(NG) | The gradient of temperature coefficients |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| ADMSL.T1.Electrical.Analog.Interfaces.PositivePin | p (from OnePort) | Positive pin (potential p.v > n.v for positive voltage drop v) | |
| ADMSL.T1.Electrical.Analog.Interfaces.NegativePin | n (from OnePort) | Negative pin | |
| ADMSL.T1.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from ConditionalHeatPort) | Conditional heat port |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | v (from OnePort) | Voltage drop between the two pins (= p.v - n.v) | |
| SI.Current | i (from OnePort) | Current flowing from pin p to pin n | |
| Real[NG] | g_v (from OnePort) | ||
| Real[NG] | g_i (from OnePort) | ||
| SI.Power | LossPower (from ConditionalHeatPort) | Loss power leaving component via heatPort | |
| SI.Temperature | T_heatPort (from ConditionalHeatPort) | Temperature of heatPort | |
| Real[NG] | g_LossPower (from ConditionalHeatPort) | ||
| Real[NG] | g_T_heatPort (from ConditionalHeatPort) | ||
| SI.Resistance | R_actual | Actual resistance = R*(1 + alpha*(T_heatPort - T_ref)) | |
| Real[NG] | g_R_actual |
Revisions
- August 07, 2009
by Anton Haumer
temperature dependency of resistance added
- March 11, 2009
by Christoph Clauss
conditional heat port added
- 1998
by Christoph Clauss
initially implemented