Macros
How to use macro : CreateLookUpTableFromTMProject ?
Creation 06/13/2019
Last update 12/14/2020
Version soft Flux 2019.1
Author PL
Reviewers PL
Introduction This document deals with how to install a macro, and how to use the
CreateLookUpTableFromTMProject macro. It will include the following
topics:
• Macro definition: CreateLookUpTableFromTMProject
• Install a macro
1
Macros
Macro definition : CreateLookUpTableFromTMProject
Goal of the This macro intends to create look up table of flux abc and torque versus Id, Iq
macro and rotor position. The goal is for analysis on the system part (like with
Activate for instance). It will create a new Magneto-Static project from the
magnetic transient one. In the Magneto-Static project the current is driven
with Id and Iq allowing to extract easily all the needed tables.
Figure 1 : interface of CreateLookUpTableFromTMProject
The output will be an oml file called name_of_project_MS_table_res.oml.
Figure 2: example of output file
Note that there are some pre-requisite to fulfil:
• The circuit has to have only 3 coil conductors
• No compressible mechanical set
• Delete all results
2
Macros
Install a macro
Installing a Once you have taken a new macro (from a colleague or from Altair web site
macro ([Link] you have to unzip it in the following directory
(for standard installation):
• C:\Program Files\Altair\2019\flux\Extensions\Macros
Note Macro has to be directly in folder:
C:\Program Files\Altair\2019\flux\Extensions\Macros
Calling a macro In order to use a macro, you have to follow the next steps:
Step Actions
1 Open Flux
2 Click on [Project] [Macro] [Load], and select the right macro
3 To run a macro, you have to click on [Project] [Macro] [Run]
Then select the macro you want to run.
3
Macros
Folder Macros Description
Macros CreateLookUpTableFrom Create look up table from TM project of Flux abc and
[Link] torque versus Id, Iq and rotor position.
Input:
• Current in 3 supplies
• Select mobile mechanical set
• Select fixed mechanical set
• Max value for Id
• Number of values for Id (odd)
• Number of poles
• Number of pole pairs represented in geometry (0.5
for one pole)
• Number of stator periodicities
• Number of steps in the electric period
Output:
• Create a result OML file with name created from the
initial file (*_res.oml)
• It will also include more data such as phase
resistance, end winding inductance, electric period
and initial rotor position
Folder Macros Description
Macros CreateLookUpTableFrom Créer des tables depuis un projet transitoire de moteur à
[Link] aimant pour définir le flux abc et couple en fonction de
Id, Iq et de la position du rotor
Entrée:
• Courant dans les 3 sources
• Sélectionner l’ensemble mécanique mobile
• Sélectionner l’ensemble mécanique fixe
• Valeur max pour Id
• Nombre de valeurs pour Id (impair)
• Nombre de pôles
• Nombre de paires de pôles représenté dans la
géométrie
• Nombre de périodicités au stator
• Nombre de pas dans la période électrique
Output:
• Créer un fichier OML à partir du nom initial
(*_res.oml)
• Ces résultats incluent aussi la résistance de phase,
inductance de tête de bobine, période électrique et
position initiale du rotor