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_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_LossPower

LossPower

LossPower

Structure

mo_LossPower/fixed

fixed

Cell of scalars

true
false

mo_LossPower/start

start

Cell of scalars

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_Rp

Rp

Rp

Structure

mo_Rp/fixed

fixed

Cell of scalars

true
false

mo_Rp/start

start

Cell of scalars

mo_Rn

Rn

Rn

Structure

mo_Rn/fixed

fixed

Cell of scalars

true
false

mo_Rn/start

start

Cell of scalars

mo_r

r

r

Structure

mo_r/fixed

fixed

Cell of scalars

true
false

mo_r/start

start

Cell of scalars

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