Model for Flux 2D

1. Overview

The aim of this export is to provide a python file which allows to get a full parametrized model ready to be used in Altair® Flux® 2D environment.

In the current version, models can be exported for static application or transient application in Flux® 2D environment.

Three models can be exported to Flux® 2D environment:

Application Model family Package Convention Model / Test
STATIC Without solving scenario Current source Motor & Generator Basic model
TRANSIENT Characterization Open circuit Motor & Generator Back-EMF
Working point Sine wave Motor I-Ψ-N
Working point Sine wave Motor I-Ψ-N (Hairpin)
Note: These models are considered for inner rotor machines and outer rotor machines and for 3-Phase and polyphase machines as well, excepting the last one (performance mapping) which is only implemented for inner rotor 3-Phase machines only.

2. Area to build and to export a model to Flux® 2D environment



Motor Factory – EXPORT AREA – Export model for Flux® 2D environment
1 Selection of the EXPORT area of Motor Factory.
2 Access the area in which a model for Flux® 2D environment can be made
3 Zone to visualize the overview of the selected model to be exported
4 Click on the tab to select the application (STATIC or TRANSIENT)
5 3 steps to build the model to be exported for Flux® 2D environment
6 Button to validate inputs and export the python file for building the model in Flux® 2D environment.
7 Export the python file for building the model in Flux® 2D environment or launch the project directly in Flux® 2D.

3. Steps to build and export a model to Flux® 2D environment

In EXPORT / ADVANCED TOOLS / FLUX2D area, one must indicate that on which application of Flux 2D environment, the models must be built: static application or transient application.

Then, the 3 next steps are:

  1. Define the type of scenario one wants to get in Flux® 2D environment (Test selection).

    This means the simulation, that one wants to perform in Flux® 2D environment for evaluating the electromagnetic behavior of the considered machine.

  2. Define the test configuration. This is to give an initial value for the user inputs, which will be set in the scenario of the simulation available in the Flux® 2D model.
    Note: For each Flux® 2D model available in the current version, a short description of the user inputs is done in the following sections.
  3. Define the export information

    The resulting models are fully parameterized, and these are built Flux® 2D environment for static or transient applications.



Motor Factory – EXPORT AREA – Export model for Flux® 2D environment
1 Select application (STATIC or TRANSIENT) in which the model must be built in Flux® 2D
2 Choose one scenario (or test) to be provided
3 Define the initial conditions for the simulation process in Flux® 2D environment
4 Define export information

4. Test selection

After selecting an application type (STATIC or TRANSIENT), the corresponding test inputs (settings and user inputs) must be defined. This allows to define the initial conditions for testing.



Motor Factory – EXPORT AREA – Export a model for Flux® 2D – Test selection
1 Selection of application (STATIC or TRANSIENT) in which the model must be built for Flux® 2D
2 Tab to choose one scenario (or test) to be provided
3 Selection of the scenario (or test) to be provided
4 Button to validate the previous choices
Note: The user help information about the test parameters is defined in the user help guide of the corresponding test. Please refer to the corresponding section.

5. Test configuration

After selecting an application type (STATIC or TRANSIENT), the corresponding scenario (or test) inputs (settings and user inputs) must be defined. This allows to define the initial conditions for the simulation process in Flux® 2D environment.



Motor Factory – EXPORT AREA – Export a model for Flux® 2D -
1 Tab to define the initial conditions for the simulation process in Flux® 2D environment
2 Settings like thermal conditions can be defined
3 User inputs dealing with the considered test can be defined
4 The tab corresponding to advanced parameters can be expanded.Advanced parameters can also be defined if needed.
5 Button to validate the previous choices

6. Export information

The last step for building a model for Flux® 2D is to define the export information.

There are three data to be defined:

  • The name of the python file which will build the model in Flux® 2D environment.
  • The folder in which the provided file must be stored
  • The last answer “Full geometry “ allows the user to get a full geometry in the provided model, even if it is possible to work with a reduced model considering the number of poles and the number of slots.


Motor Factory – EXPORT AREA – Export model for Flux® 2D – Export information
1 Tab to be expanded to define export information for Flux® 2D
2 Area in which the export parameters to be defined are listed
3 Button to validate the previous choices
4 Button to finalize the export of the model. When one clicks on this button, the folder gets opened the folder where the python file to build the model is stored.
Note: When data is missing in the third table; “Export information” for instance, an error message is displayed in the red colered font which indicates what data is missing. If all the needed information is missing, exporting a model is not allowed.


Motor Factory – EXPORT AREA – Export model for Flux® 2D – Error message
1 Error message displayed in red colored font
2 The button to export the model is not active if all the needed data are missing
Note: Exporting a model to Flux® 2D (i.e. provide the python file to build the model) can take a few seconds. This is since parameters like initial position of the rotor must be computed first by using internal processes, and then the simulation scenario must be considered.