Since version 2026, Flux 3D and Flux PEEC are no longer available.
Please use SimLab to create a new 3D project or to import an existing Flux 3D project.
Please use SimLab to create a new PEEC project (not possible to import an existing Flux PEEC project).
/!\ Documentation updates are in progress – some mentions of 3D may still appear.
Structure of a command file
Structure
The structure of a command file (*.py) is presented in the example below.
| Part | Description |
|---|---|
| 1 | Header of an executable Flux program |
| 2 | One or more commands in a programming language |
(1) Program header
The Flux program header is compulsory. It specifies which Flux program (2D and/or 3D) will execute the command file and its version*.
* The indicated version can correspond to the current software version or be of a previous version.
(2) Sequence of commands
The sequence of commands can comprise four types of principal instructions: assignment, loops, conditional statements, and statements without condition.
Note: A command file can contain the instructions to open another command file and so on up to 15 levels.