0% found this document useful (0 votes)
4 views

CreateLookUpTableFromTMProjectDQLight

This document provides instructions on how to install and use the CreateLookUpTableFromTMProjectDQLight macro in Flux software. The macro aims to create a lookup table for flux_dq, Ld, Lq, and torque based on Id, Iq, and rotor position, generating an output OML file. It also outlines prerequisites for the circuit setup and detailed steps for macro installation and execution.

Uploaded by

Cầu Cao
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

CreateLookUpTableFromTMProjectDQLight

This document provides instructions on how to install and use the CreateLookUpTableFromTMProjectDQLight macro in Flux software. The macro aims to create a lookup table for flux_dq, Ld, Lq, and torque based on Id, Iq, and rotor position, generating an output OML file. It also outlines prerequisites for the circuit setup and detailed steps for macro installation and execution.

Uploaded by

Cầu Cao
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

FLUX Macros

How to use macro :


CreateLookUpTableFromTMProjectDQLight ?

Creation 03/03/2022
Last update 03/03/2022
Version soft Flux 2021.2
Author PL
Reviewers

Introduction This document deals with how to install a macro, and how to use the
CreateLookUpTableFromTMProjectDQLight macro. It will include the
following topics:
• Macro definition: CreateLookUpTableFromTMProjectDQLight
• Install a macro

1
FLUX Macros

Macro definition : CreateLookUpTableFromTMProjectDQLight

Goal of the This macro intends to create look up table of flux_dq, Ld, Lq and torque
macro versus Id, Iq and rotor position. Dynamic inductances are also computed
including cross components, with the derivative of flux_dq versus 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. At the end of the oml file in
comment there is the possibility to display Ld, Lq and torque versus Id and Iq
with Altair Compose.

Figure 1 : interface of CreateLookUpTableFromTMProjectDQLight

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
FLUX Macros

Install a macro

Installing a Once you have taken a new macro (from a colleague or from Altair web site
macro (https://community.altair.com/community), you have to unzip it in the
following directory (for standard installation):
• C:\Program Files\Altair\2021\flux\Extensions\Macros

Note Macro has to be directly in folder:


C:\Program Files\Altair\2021\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
FLUX Macros

Folder Macros Description


Macros CreateLookUpTable Create look up table from TM project of Flux dq, Ld, Lq
FromTMProjectDQ and torque versus Id, Iq and rotor position.
Light.PFM
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 one third of the electric period
• Period for rotation (in degrees)
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 plus possibility to display values in
Compose

4
FLUX Macros

Répertoire Macros Description


Macros CreateLookUpTable Créer des tables depuis un projet transitoire de moteur à
FromTMProjectDQ aimant pour définir le flux dq, Ld, Lq et couple en
Light.PFM 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 1/3 de la période électrique
• Période électrique (en degrés)
Output:
• Créer un fichier OML à partir du nom initial
(*_res.oml)
• Ces résultats incluent aussi la résistance de phase,
l’inductance de tête de bobine, période électrique et
position initiale du rotor plus le script pour afficher les
tables dans Compose

You might also like