Engee documentation

Software control of modelling

_Create models, add blocks, connect them with signal lines, set parameters and properties, and perform other basic operations using specialised commands built into the Engee software environment.

In this article we will look at software control of modelling in Engee. The Julia language is used to write control commands.

Public methods are used to programmatically manage modelling in Engee. All available public methods can be invoked by using engee. and pressing Tab on the command line:

example prog modeling 2

If you have questions about a particular method, you can change the command line mode from engee to help? and display help for the method of interest. The script editor will not execute engee. to get help, so use the command line.

To get help, type the question mark ? at the command line and use the command engee.method_name (where method_name is the public method of interest) to get help.

Getting Help.

example prog modeling 4

All public programme management methods available in Engee are presented in the article Public methods of programme management.

In Engee the following directions in software control of modelling are implemented:

  • Block and subsystem parameters management (creating a new model, loading a model from a file, opening a previously used model, saving a model, etc.). Read more in the article Software model file management.

  • Create, save, delete model, open from file, add/remove blocks, lines and subsystems. Read more in the article Software model editing.

  • Managing simulation parameters (getting simulation parameters, changing them, updating block parameters and changing model simulation parameters using a structure). Read more in the article Software Simulation Parameters Management.

  • Model simulation management (setting solver parameters, starting, interrupting, stopping simulation, getting results). Read more in the article Software control of simulation.

  • Code generation. Read more in the article Code generator in Engee.

To see an example of a model created using software control methods, see Example of programme control in modelling.