Parametric distribution in Flux
Introduction
- The number of cores (i.e the number of running Flux in parallel);
- Principles;
- How to set up a parametric distribution with Windows OS on a single machine;
- How to set up a parametric distribution with Linux OS on a single machine;
- Define a parametrized scenario in Flux
- Example of application.
Principles
The parametric distribution allows the user to save computation time by parallelizing several independent configurations of a finite element problem with different values of I/O or geometric parameters varying in the scenario instead of running them sequentially. To set-up a distributed computation, a Flux master project is mandatory in order to compute all its sub-projects having an independent configuration.
- They all ran with only one core;
- The amount of memory assigned to the Flux Slaves is set to the same value as the Flux Master, if the memory is setted to Dynamic for the Flux Master, the Flux Slaves will also start with dynamic memory.
How to set up a parametric distribution with Windows OS on a single machine
In Flux 2D and in Flux 3D, the parametric distribution options (number of Flux Slaves in parallel) may be setted in the Supervisor's options or by clicking on the button Distribution manager in the bottom right of the Supervisor. For the Flux Skew module, this feature is not yet available and will run automatically in sequential mode.
In any case, the parametric distribution may be setted as follows:
- The Distribution manager may be started in the Supervisor's options, in the Parallel Computing menu, in the section Distributed Computing and then Parametric Distribution click on the button Set local ressources as shown below;
- An additional window Distribution manager should appears and is asking to allow some resources (Number of Flux Slaves in parallel) for the parametric distribution, click on Allow;
- The Distribution manager then asks for the Number of concurrent
Flux as follows:
Note: This number is directy linked to the number of cores available on the machine, the numbers of varying parameters are automatically distributed over the number of concurrent Flux.
- Finally, click on Use to complete the parametric distribution
How to set up a parametric distribution with Linux OS on a single machine
In Flux 2D and in Flux 3D, the parametric distribution options (number of Flux Slaves in parallel) may be setted in the Supervisor's options or by clicking on the button Distribution manager in the bottom right of the Supervisor. For the Flux Skew module, this feature is not yet available and will run automatically in sequential mode.
In any case, the parametric distribution may be setted as follows:
- The parametric distribution may be started by clicking the button Distribution manager in the bottom right of the Supervisor as shown below.
- An additional window Distribution manager should appears and is asking to allow some resources (Number of Flux Slaves in parallel) for the parametric distribution, click on Allow;
- The Distribution manager then asks for the Number of concurrent
Flux as follows:
Note: This number is directy linked to the number of cores available on the machine, the numbers of varying parameters are automatically distributed over the number of concurrent Flux.
- Finally, click on Use to complete the parametric distribution
- The Distribution manager may also be started in the Supervisor's options, in the Parallel Computing menu, in the section Distributed Computing and then Parametric Distribution click on the button Set local ressources;
Define a parametrized scenario in Flux
- Check the box Parametric distribution in the selected
Scenario.Note: All the varying parameters should be declared as Controlled parameters in the Control parameters tab of the scenario as depicted below in Figure 6.
Example of application
- The speed which is declared as an I/O parameter controlled by the scenario and that is used by the rotating mechanical set
- The shape of the magnet with the magnet outer arc value α setted with a geometrical parameter as depicted below.
Magnet outer arc α (degrees) | Speed (rpm) | |
---|---|---|
Minimum value | 130 | 1300 |
Maximum value | 170 | 1700 |
Step value | 10 | 100 |