Potentiometer

Adjustable resistor

    Potentiometer

Library

Modelica/Electrical/Analog/Basic

Description

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

Potentiometer_0

NameLabelDescriptionData TypeValid 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
1

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
false

mo_T_heatPort/start

start

Cell of scalars

mo_useRinput

useRinput

use input for 0<r<1 (else constant)

Number

0
1

mo_rConstant

rConstant

Contact between n (r=0) and p (r=1)

Scalar

Potentiometer_1

NameLabelDescriptionData TypeValid 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

'LossPower'
'Rp'
'Rn'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

pin_p

implicit

input

1

contact

implicit

input

2

pin_n

implicit

output

1

Port 4

implicit

Conditional heat port

input

mo_useHeatPort

Port 5

implicit

input

mo_useRinput