modelResistor
Ideal linear electrical resistor
Extends from Modelica.Electrical.Analog.Interfaces.OnePort (Component with two electrical pins p and n and current i from p to n), Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort (Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network).
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))) |
| Boolean | useHeatPort (from ConditionalHeatPort) | false | = true, if heatPort is enabled |
| SI.Temperature | T (from ConditionalHeatPort) | 293.15 | Fixed device temperature if useHeatPort = false |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PositivePin | p (from TwoPin) | Positive electrical pin | |
| NegativePin | n (from TwoPin) | Negative electrical pin | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from ConditionalHeatPort) | Conditional heat port |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Voltage | v (from TwoPin) | Voltage drop of the two pins (= p.v - n.v) | |
| SI.Current | i (from OnePort) | Current flowing from pin p to pin n | |
| SI.Power | LossPower (from ConditionalHeatPort) | Loss power leaving component via heatPort | |
| SI.Temperature | T_heatPort (from ConditionalHeatPort) | Temperature of heatPort | |
| SI.Resistance | R_actual | Actual resistance = R*(1 + alpha*(T_heatPort - T_ref)) |
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