Engee documentation

Variable Resistor

Linear variable resistor.

blockType: AcausalFoundation.Electrical.Elements.VariableResistor

Path in the library:

/Physical Modeling/Fundamental/Electrical/Elements/Variable Resistor

Description

Block Variable Resistor simulates a linear variable resistor described by the following equation:

where

  • — tension;

  • — current;

  • — resistance, that is, the value of the signal on the control port R.

The + and connections are electrical ports corresponding to the positive and negative terminals of the resistor, respectively. Port R is the input port of the scalar signal, which sets the resistance value. The current is positive if it flows from the positive terminal to the negative one, and the voltage across the resistor is equal to the potential difference between the positive and negative terminals. .

The additional thermal port H allows you to connect the resistor to the heating network. To open the thermal port, check the box Enable thermal port and specify the heat capacity of the resistor using the parameter Thermal mass. You can also specify the initial value of a variable. Temperature. The block does not simulate other effects, such as resistance variation depending on temperature.

Variables

Use the parameter group Initial Targets to set the priority and initial target values for the block parameter variables before modeling. For more information, see Configuring physical blocks using target values.

Ports

Conserving

# + — positive terminal
electricity

Details

The electrical port, which is the positive terminal of the resistor.

Program usage name

p

# — negative terminal
electricity

Details

The electrical port, which is the negative terminal of the resistor.

Program usage name

n

# H — thermal port
heat

Details

Thermal port that determines the temperature of the resistor.

Dependencies

To enable this port, check the box Enable thermal port.

Program usage name

thermal_port

Input

# R — resistance value signal
scalar

Details

The input port that determines the resistance value.

Data types

Float64

Complex numbers support

I don’t

Parameters

Parameters

# Minimum resistance R>=0 — minimum allowable resistance
Ohm | mOhm | kOhm | MOhm | GOhm

Details

The minimum resistance value. If the input signal drops below this level (for example, it becomes negative), then this minimum value is used. The parameter value must be non-negative.

Units

Ohm | mOhm | kOhm | MOhm | GOhm

Default value

0 Ohm

Program usage name

R_min

Evaluatable

Yes

# Enable thermal port — turning on the heat port

Details

When this checkbox is selected, the thermal port H is displayed, which allows you to connect the resistor to the heating network. Checking this box also enables the option Thermal mass and adds a variable Temperature to the section Initial Targets.

Default value

false (switched off)

Program usage name

has_thermal_port

Evaluatable

No

# Thermal mass — heat capacity of the resistor
J/K | kJ/K

Details

The heat capacity of the resistor.

Dependencies

To enable this option, check the box Enable thermal port.

Units

J/K | kJ/K

Default value

1.0 J/K

Program usage name

thermal_mass

Evaluatable

Yes