Macros
How to use macro: ControlMeshQuality?
Last update 22/10/2014
Version soft Flux V11.2
Author PL
Reviewer
Introduction This document deals with how to install a macro, and how to use the
ControlMeshQuality macro. It will include the following topics:
• Macro definition: ControlMeshQuality
• Install a macro
Macro definition: ControlMeshQuality
Goal of This macro intends to run a check mesh command in order to be able to extract
the easily the resulting quality percentage, and also the number of nodes, of line
macro elements, face elements and volume elements. The interface is asking a
question. You can enter any character as answer.
Figure 1: interface of the ControlMeshQuality macro
At the end of the macro, the main figures are easily available. For instance, we
have run the following code in 3 projects: 2D, Skew and 3D.
Figure 2: python code to run the macro
1
Macros
Goal of the
macro
(continued)
Figure 3: results in 2D
Figure 4: results in skew
2
Macros
Goal of the
macro
(following)
Figure 5: results in 3D
Note: the commands in the macro also show how to “catch” what is send to
the log file.
3
Macros
Install a macro
Path Macros delivered with Flux are directly installed in folder :
installation C:\Program Files\Altair\2020\flux\Extensions\Macros
(If Flux is installed at the path proposed by default C:\Program Files\Altair)
Calling a macro In order to use a macro, you have to follow the next steps:
Step Actions
1 Open Flux
2 Click on [Extension] [Macros] [Load a macro], and select the
right macro
3 To run a macro, you have to click on [Extension] [Macros] [Run]
Then select the macro you want to run.
4
Macros
Macro description
Folder Macros Description
ControlMeshQuality.PF Check mesh and allow extracting
M percentage of excellent, good,
average and poor quality elements
Input:
• One character
Output:
• Percentages are available in
variables (cf example include in
macro)
• Number of nodes, line elements,
face elements and volume
elements
Fichier Macros Description
ControlMeshQuality.PF Vérifier le maillage et extraire
M pourcentage de qualité des éléments
(excellent, bon, moyen, médiocre)
Entrées:
• Une lettre
Sorties:
• Les pourcentages sont
disponibles dans des variables
• Le nombre de nœuds, d’éléments
linéiques, surfaciques et
volumiques