modelPotentiometer
Adjustable resistor
Extends from Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort (Partial model to include a conditional HeatPort in order to describe the power loss via a thermal network).
Information
This models a potentiometer where the sliding contact is placed between pin_n (r = 0) and pin_p (r = 1), dependent on either the parameter rConstant or the signal input r.
The total resistance R is temperature dependent.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Resistance | R | Resistance at temperature T_ref | |
| SI.Temperature | T_ref | 293.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 |
| potentiometer | |||
| Boolean | useRinput | false | Use input for 0<r<1 (else constant) |
| Real | rConstant | 0.5 | Contact between n (r=0) and p (r=1) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort (from ConditionalHeatPort) | Conditional heat port | |
| Modelica.Electrical.Analog.Interfaces.PositivePin | pin_p | ||
| Modelica.Electrical.Analog.Interfaces.PositivePin | contact | ||
| Modelica.Electrical.Analog.Interfaces.NegativePin | pin_n | ||
| Modelica.Blocks.Interfaces.RealInput | r |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Power | LossPower (from ConditionalHeatPort) | Loss power leaving component via heatPort | |
| SI.Temperature | T_heatPort (from ConditionalHeatPort) | Temperature of heatPort | |
| SI.Resistance | Rp | Actual resistance between pin_p and contact | |
| SI.Resistance | Rn | Actual resistance between contact and pin_n |