Engee documentation

Switch

A key controlled by an external signal.

switch

Description

The Switch block represents a key controlled by an external signal. If the external signal is greater than the value specified in the Threshold parameter, the key is closed, otherwise the key is open.

Electrical keys add circuit breaks to the model, so the choice of solver may affect the behaviour of the model.

Ports

Input

Signal - control signal, dimensionless
scalar

Input signal controlling the state of the key (on or off).

Non-directional

p - electrical terminal
electricity

An electrical port representing one of the key terminals. The unit is not directional.

n is an electrical terminal
electricity

An electrical port representing one of the key terminals. The unit is not directional.

Parameters

Parameters

Closed resistance - resistance of the closed key
0.01 ohm (by default) | positive scalar

Resistance of the key in closed state. The parameter value must be greater than zero.

Open conductance - conductance of the open key
1e-8 1/ohm (by default) | positive scalar.

The conductance of the key in the open state. The parameter value must be greater than zero.

Threshold - threshold value for opening and closing the key
0.5 (by default) | dimensional scalar.

The threshold value for opening and closing the key. If the external signal is greater than this value, the key is closed, otherwise it is open.

Initial Targets

Current - initial current value
0 A (By default) | scalar

Initial current value.

Voltage - initial value of voltage
0 V (by default) | scalar

Initial voltage value.