10.06.2016 Views

eldo_user

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Eldo Control Language<br />

Simulation Dynamic Control<br />

Simulation Dynamic Control<br />

A callback mechanism is provided to temporarily stop the simulation at specific times to let the<br />

<strong>user</strong> execute some ECL commands to monitor the simulation. The way to get simulation results<br />

inside this callback is different to the simulation function method: you must explicitly use some<br />

predefined functions to obtain the results you want to access.<br />

Callback functions can use and modify variables of the calling task but the syntax may be quite<br />

heavy, especially if there are many variables to manage. This is why some simulation control<br />

functions are also provided to replace the simulation function and work directly in the main<br />

task.<br />

Limitations:<br />

• Dynamic control is only allowed over one simulation at a time.<br />

• Eldo Premier is not compatible with the functionality inside this Simulation Dynamic<br />

Control section. An error message will be output if callbacks or flow-control functions<br />

are used with Eldo Premier.<br />

• Callback functions are restricted to transient analyses.<br />

This section is divided into the following:<br />

• Callback Functions<br />

• Extended Simulation Functions<br />

Callback Functions<br />

A callback function can be defined and associated to a simulation function so that it is executed<br />

at predefined time intervals during a transient analysis.<br />

The callback function is an ECL <strong>user</strong>-defined function (or task). It can be assigned to a<br />

“simulation” function using the “callback” argument or the simulation function. When setting<br />

this argument, another argument is required which defines the condition when this callback will<br />

be called. This argument must be chosen from among the following five arguments:<br />

• progress_period<br />

Its value must be a number and stands for the percentage of simulation that has to be<br />

reached before calling the callback. For example, setting progress_period=20 means to<br />

execute the callback function when 20%, 40%, 60%, 80% and 100% of the simulation<br />

have been computed.<br />

• elapsed_s_period<br />

1014<br />

Eldo® User's Manual, 15.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!