Engee documentation

EULER Cosimulation

Transferring data to EULER and obtaining simulation results from EULER. Before starting the exchange, the block establishes a connection between Engee And EULER.

blockType: EngeeFunction

Path in the library:

/Interfaces/EULER/EULER Cosimulation

Description

To work with the block, install/update the support package. equipment.

Block EULER Cosimulation it is intended for the organization of cosimulation between Engee And EULER. At each step of the simulation, the unit transmits input signals from Engee in EULER and receives calculated output values from EULER, which are fed to the output of the block.

Cosimulation configuration

The parameters of the block are the main source of the cosimulation configuration from the side Engee: composition and names of signals, address and port EULER, timeouts, calculation step, etc. These values are used Engee directly when exchanging signals with EULER.

To make the same settings available to EULER, use the command Сгенерировать конфигурационный файл by clicking the button in the block: Engee extracts block parameters and generates a file settings.cfg in the folder specified in the parameter Путь к Эйлер:.

Block settings in Engee and the contents of the file settings.cfg They must be coordinated among themselves. If you can’t generate the block again after changing the parameters settings.cfg EULER will work with obsolete signal names, ports, or timeouts, and the simulation may fail.

Ports

Input

# In — input signals of the type BusSignal, transmitted from Engee in EULER
vector

Details
Data types

Float64

Complex numbers support

No

Output

# Out — output signals of the type BusSignal returned by EULER in Engee
vector

Details
Data types

Float64

Complex numbers support

No

Parameters

Свойства расчёта

# Тип расчёта: — description missing
ЭЙЛЕР на ПК | ЭЙЛЕР в Engee

Details

description missing

Values

ЭЙЛЕР на ПК | ЭЙЛЕР в Engee

Default value

ЭЙЛЕР на ПК

Program usage name

m_solve_type

Tunable

No

Evaluatable

Yes

Parameters

# Имена входных сигналов: — the names of the signals in the input bus

Details

The names of the block’s input signals, that is, the signals transmitted from Engee to EULER. Are set as NamedTuple.

Default value

(:pos_cmd,)

Program usage name

m_input_signal_names

Tunable

No

Evaluatable

Yes

# Имена выходных сигналов: — names of the signals in the output bus

Details

The names of the block’s output signals, that is, the signals returned by EULER in Engee. The recording format is similar to the names of the input signals.

Default value

(:Sensor_F_frict, :V_G, :V_M, :Pos_G,)

Program usage name

m_output_signal_names

Tunable

No

Evaluatable

Yes

# Имя входного списка сигналов: — description missing

Details

description missing

Default value

L_in

Program usage name

m_euler_in_list

Tunable

No

Evaluatable

Yes

# Имя выходного списка сигналов: — description missing

Details

description missing

Default value

L_out

Program usage name

m_euler_out_list

Tunable

No

Evaluatable

Yes

# Команда запуска симуляции ЭЙЛЕР: — description missing

Details

description missing

Default value

command1

Program usage name

m_run_cmd

Tunable

No

Evaluatable

Yes

# Время моделирования ЭЙЛЕР, с: — description missing

Details

description missing

Default value

5.0

Program usage name

m_euler_end_time

Tunable

No

Evaluatable

Yes

# Путь к проекту ЭЙЛЕР на машине: — description missing

Details

description missing

Default value

C:\path\to\.elr

Program usage name

m_host_euler_project_path

Tunable

No

Evaluatable

Yes

# Путь к проекту ЭЙЛЕР в Engee: — description missing

Details

description missing

Default value

/path/to/.elr

Program usage name

m_engee_euler_project_path

Tunable

No

Evaluatable

Yes

# Держать окно ЭЙЛЕР открытым в конце расчёта: — description missing

Details

description missing

Default value

true (switched on)

Program usage name

m_keep_window_open

Tunable

No

Evaluatable

Yes

# Перечитывать файл проекта ЭЙЛЕР между перезапусками: — description missing

Details

description missing

Default value

true (switched on)

Program usage name

m_reread_project

Tunable

No

Evaluatable

Yes

# Шаг расчёта, с: — block calculation step

Details

The block calculation step in seconds. Must match the parameter FixedStep models Engee. Inconsistency of values leads to an error «Invalid setting for fixed-step size» when starting the calculation. Can’t take the value −1 (Inherited).

Default value

0.001

Program usage name

m_sample_time

Tunable

No

Evaluatable

Yes

Example

An example of the minimum settings.cfg for a couple Engee ↔ EULER. The full set of fields is described in the article EULER Support Package.

MODEL_NAME multicosim_parent
INPUT_SIGNAL_COUNT 1
INPUT_SIGNAL_NAMES e_out
INPUT_MEASURE_UNITS [m/s]
OUTPUT_SIGNAL_COUNT 1
OUTPUT_SIGNAL_NAMES e_in
OUTPUT_MEASURE_UNITS [N]
IP 127.0.0.1
RCV_PORT 7479
SND_PORT 7959
MAX_RCV_BUFFER_SIZE 4096
MAX_SND_BUFFER_SIZE 4096
SRVCIO_TIMEOUT 200000.0
HANDSHAKE_TIMEOUT 120000.0
SAMPLE_TIME 0.001
DIAGNOSTIC 0

Names in INPUT_SIGNAL_NAMES / OUTPUT_SIGNAL_NAMES interpreted from the EULER side: e_out — this is the output of EULER (EULER gives it to Engee), e_in — input EULER (EULER accepts from Engee). In the file settings.cfg this substitution has already been taken into account.