Engee documentation

Switch

A key controlled by an external signal.

blockType: AcausalFoundation.Electrical.Elements.ControlledSwitch

Path in the library:

/Physical Modeling/Fundamental/Electrical/Elements/Switch

Description

Block Switch It is a key controlled by an external signal. If the external signal is greater than the value specified in the parameter Threshold, then the key is closed, otherwise the key is open.

Electric wrenches add circuit breaks to the model, so the choice of solver can affect the behavior of the model.

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

# p — electrical terminal
electricity

Details

The electrical port, which is one of the terminals of the key. The block has no direction.

Program usage name

p

# n — electrical terminal
electricity

Details

The electrical port, which is one of the terminals of the key. The block has no direction.

Program usage name

n

Input

# IN_1 — control signal, dimensionless
scalar

Details

An input signal that controls the state of the key (on or off).

Data types

Float64

Complex numbers support

I don’t

Parameters

Parameters

# Closed resistance — closed-key resistance
Ohm | mOhm | kOhm | MOhm | GOhm

Details

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

Units

Ohm | mOhm | kOhm | MOhm | GOhm

Default value

0.01 Ohm

Program usage name

R_closed

Evaluatable

Yes

# Open conductance — open key conductivity
S | nS | uS | mS | 1/Ohm

Details

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

Units

S | nS | uS | mS | 1/Ohm

Default value

1e-08 1/Ohm

Program usage name

G_open

Evaluatable

Yes

# Threshold — threshold value for opening and closing the key

Details

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.

Default value

0.5

Program usage name

threshold

Evaluatable

Yes