Professional Documents
Culture Documents
01 Vol1 Environment Geometry Mesh Import
01 Vol1 Environment Geometry Mesh Import
KF 1 01 - 181 - EN - 01/18
Altair
15 Chemin de Malacher - Inovallée
38246 Meylan Cedex
France
Web: http://www.altair.com
Flux TABLE OF CONTENTS VOLUME 1
TABLE OF CONTENTS
1. Flux documentation
*a tutorial comprises a pdf document and a folder including command files (.py)
enabling to realize the whole scenario of the actions described on the pdf file.
Where can the The documents are available (in pdf format):
documents be • on your working post in the installation folder
found? C:\Program Files\Altair\2018\flux\Flux\DocExamples\...
Structure The general structure of the user guide is presented in the table below.
Why two The two versions of the user guide are not identical:
versions? • The document on paper comprises the necessary information in order to
understand well what can be carried out with Flux (pre-required
knowledge)
• The online help includes the information mentioned above, to which the
necessary information is added in order to make a good use of the
software tools.
In order to For each important description stage of a finite elements project, the
identify information has been therefore split into two:
information
• the ‘theoretical’ aspects (or principles)
easily …
• the ‘practical’ aspects (or implemented at the level of the software)
The two aspects are described in different chapters, as presented in the table
below.
The chapters headed … comprise information as follows …
• general information, reminder on physics
Geometry: principles • modeling principle (with Flux)
Mesh: principles
• software operation (its strengths and limits)
Physics: principles
… • advice in modeling: strategy, choice, …
• general steps, flowcharts
Geometry: software aspects • structure of Flux objects
Mesh: software aspects
Physics: software aspects • handling of Flux objects
… • description of commands for specific actions
Concretely … The contents of the two versions of the user guide are presented in the table
below.
Document on paper Online help
The theoretical aspects: The theoretical aspects:
Chapters headed: Chapters headed:
” …: principles” ” …: principles“
The practical aspects:
Chapters headed:
” …: software aspects”
Definition Tutorials are technical examples with the objective to demonstrate the
features of the software on a realistic device (emphasizing the interesting
results which can thus be obtained). All the technical data are presented in the
document, but the commands are not described in details.
Basic examples The available basic examples for the 2D applications are listed in the table
(2D) below.
Technical The technical examples available for the 2D applications are listed in the table
examples (2D) below.
Definition Tutorials are technical examples with the objective to show the software
features on a realistic device (emphasizing the interesting results which can
thus be obtained). All the technical data are presented in the document, but
the commands are not described in details.
Basic examples The available tutorials for the 3D applications are listed in the table below.
(3D)
Technical The technical papers available for the 3D applications are listed in the table
examples (3D) below.
2. Supervisor
Introduction This section describes the Flux Supervisor, with which you can run Flux
modules and manage your Flux project files and directories.
Access To start the Flux Supervisor from the Windows taskbar, proceed as follows:
• point on Start/ All programs/ Altair (or your installation directory) and
click on Flux
The Supervisor The Flux Supervisor window is divided into several zones. The different
Window zones are identified in the figure below and then detailed in following blocks.
Modules
How to
Proceed?
procéder?
Contexts
Working Customized
directory Zone
Cross-functions
Zones of the The different zones of the Flux Supervisor and their functions are presented in
Supervisor the table below.
Zone Function
The user selects the module in which he wishes to
Dimensions
model his project: 2D, 3D, Skew or PEEC
The user have the choice between several use
contexts of supervisor:
• New project
Contexts • Open un project
• Open example
• Python for Flux
• Batch solve
The user chooses a working directory. The path of
this directory is displayed.
Working directory It is possible to manage folders and files by
Directory selector clicking on button :
New Project This context allows the user to directly open the Flux software with a new
context project in the selected dimension. The project is created in the working
directory selected.
Open project This context allows the user to d’open an existing Flux project.
context The customized zone contains several subzones:
• List of current projects contained in the working directory selected
• List of recently opened projects
• Graphic view: preview of model associated with the *.FLU project selected
• Informations on selected *.FLU project: Application, State, Comment
entered by the user (to enter in this zone), …
Open example This context allows to open one of the proposed example in the same
context required state (model with mesh, with physics, solved, post-processed).
The opened example is automatically saved in the working directory
selected.
La zone personnalisée contient plusieurs sous-zones:
• Example tree with an tree structure with several levels:
Group (basics, technicals, textbook cases)
Studied Tutorial
Example (several examples are available in a same model)
Running state
• Viewing the summary of the selected tutorial
• Search function that allows filtering the examples in the tree structure
It is also possible to open the PDF document of the full tutorial by clicking
on Readme.
Python for Flux This context allows manipulating python scripts contained in the selected
context working directory:
• Create files *.py
• Edit files *.py
• Execute files *.py
Batch Solve This context allows to solve in batch mode (allows for example to reduce the
context computed time for complex models)
It is also possible to plan several resolutions of *.FLU projects( ready to
solve) contained in the selected working directory.
2.2. Options
Introduction The user will find in this section information regarding the options available.
Language The user can choose the interface language (French or English) for Flux and
the supervisor.
Recent files The user can choose the maximal number of files that he wants to display in
the Recent files area of the supervisor. He can also choose the maximal
number of stored files.
When one or various recent files are deleted, the software will display the
following stored files.
File types The user can choose the type of files that he wants to be displayed in the
Current project of Open project context. By default, *.FLU files are
displayed. To add another formats to display in the Current project area, just
add extensions (for example: *.py, *.txt, …).
Shortcuts The user can consult / edit / delete the default shortcuts available in Flux. To
carry on a modification, the user has to select a command in the list.
He has the opportunity to :
• delete a shortcut by clicking on the icon
• modify a shortcut
• by entering the complete shortcut in the field or
• by entering the principal key in the field and selecting the linked modifier
• select one or more linked modifier (Ctrl, Shift, Alt)
• create a shortcut for the selected command (using the same process as for
the modification)
Macros For each of the four applications (2D, 3D, Skew, PEEC) the user can choose
one or more macros loaded by default when creating new projects.
Access to
System options System options are available by clicking on:
Memory The user can modify the memory repartition allocated by default by Flux.
More information about memory is available in 2.3 Memory requirements
management.
Graphic mode The user can choose to start Flux in non optimized mode.
Debug The user can choose among options for an advanced used of Flux.
Access the
access paths Access paths options are available by clicking on:
options
This directory includes the options described in the following blocks.
User version The user has the possibility to use Flux with an user version. This version is
(before V11.2) composed by user Fortran subroutines compiled with an older Flux version
prior to 11.2.
In this option, the user selects the directory path
(example: Name_Directory.f3d_usr) in which is stored the user version (the
corresponding dll) that he wishes to use.
Flux will start taking into account the user version chosen.
Reminder: Since the 11.2 Flux version, it is not necessary to compile in Fortran user
subroutines to create an user version. The subroutines are now written in Groovy
language (java) and used directly in Flux (http://groovy.codehaus.org/).
Coupled The user must identify the access path of the installation path of Matlab
software Simulink.
In order for the Flux coupling component to be loaded into Simulink's library,
the user must start the Matlab Simulink application from the interface of the
supervisor options by clicking on the button .
Materials from Since 11.2 Flux version, the manager of material databases (CSLMAT)
CSLMAT has been replaced by a new tool called Material Manager.
(before V11.2)
The material databases created using the old tool CSLMAT have as
extension: *. DAT.
From 11.2 version for users who have material databases *. DAT, it is
possible to choose material databases *. DAT will be available in Flux to
import materials (old format).
To import a material of material databases *. DAT (old format), firstly the
user must select in the supervisor options the directory of material database
*.DAT that he wants to use.
The user can select material databases in a directory:
• current (working directory)
• AND / OR local (defined by user)
The list of material databases whished is displayed in the options window (under the
select of directories)
Extension The user can determine the access path for the directories containing the
macros and overlays (user context to easily create geometry and mesh for
motors).
To access the
Flux options Flux options are available by clicking on:
Geometric For each of the four modules (2D / 3D / Skew / PEEC), the user can
construction determine relative precision for the distance between two points when
creating a new project.
Mesh For each of the three modules (2D / 3D / Skew), the user can:
generation • determine relative precision for the distance between two points when
creating a new project
• activate or inactivate Aided mesh
These two options are applied when creating new projects.
Solving For each of the three modules (2D / 3D / Skew), the user can determine
precision and maximal number of iterations for Newtown -Raphson algorithm
when creating new projects.
Introduction This section contains the information relating to the memory requirements
and its management.
Non volatile
memory (ROM)
CD-ROM
DVD -ROM
The virtual memory corresponds to the "reunion of the physical memory (RAM) and
the pagination files (SWAP, pagefile.sys)".
Computation
memory GUI memory System memory
Calculus As regards the calculus part (in Fortran), Flux uses a pseudo-dynamic*
memory management tool of the memory. This tool manages a global memory space
comprising two Fortran tables, one for the numeric memory, the other one
for the character memory. The size of each of these tables is controlled by a
Fortran parameter inscribed in the main program.
*
Definitions :
Dynamic allotting: the size of the reserved memory is set by the user (it is therefore
modifiable).
Pseudo-dynamic allotting : Flux utilizes numeric tables and characters allotted in a
dynamic manner in order to emulate a dynamic memory
Numerical Numerical memory is the memory employed for the various modeling
memory: actions. 3D meshing and solving process (in 2D and in 3D) are the processes
put a large demand on the memory size.
The memory size to be allocated is a function of the application type
(real/complex) and of the solving process matrix size.
GUI memory: GUI memory is the memory used for everything concerning the graphical
user interface (graphic display, etc.).
In the graphic window, the flag located bottom left gives an image of the
utilization of the graphic memory. When it is red, you can double-click on it
to force the process to release the memory.
System memory The system memory corresponds to the memory allotted for the good
operation of the system ; it comprises :
• the « executable » memory : memory space for the program Flux (the
executable) : of the order 250 Mo
• the « cache » memory : memory space for the transfers of data between the
calculus component (Fortran) and the component IHM (Java)
This memory is difficult to quantify, it can generate errors during the
recovery of data.
Allocated The allocated memory size is defined for each application (Flux 2D / Flux 3D
memory size / Flux Skew / Flux PEEC).
The values are defined by means of the memory manager.
Access the
memory Memory options are available by clicking on:
manager
Standard values are assigned by default in Flux and depend on a certain number of
criteria (application, computer characteristics, etc.)
This values by default evaluate with each version and technology improvements of
machines.
Quantities and Quantities and units manager, available in Flux supervisor, enables the user
units manager to:
• be able to choose the desired measurement unit for the analysis of his own
Flux project
• be able to add one measurement unit to one of the available default
quantities
• be able to define the personalized user quantities
Open the To open the quantities and units manager , click on:
quantities and
units manager
Reading advice The user will find more information on the quantities and units manager in
the “User guide, Volume 2”.
Tools to To manage the license, two tools are available for the user :
manage the
license
Tool Description
The license The license viewer is used to display the authorized
viewer applications, authorized versions, the expiration date, the
total number of tokens used ...
Le license The License manager is used to configure the license
manager server and connect it Flux to the license system.
Open the
license viewer To open the license viewer, click on:
The possible The license is composed by several applications; the license viewer gives the
states state of each application. The possible states are:
• means that the application is included in the licence file and is valid,
so available..
• means that the application is included in the licence file but not valid,
so not available.
• means that the application is not included in the licence file so not
available.
Reading advice The user will find detailed information about license manager in the
“Installation guide”.
Note: In version Flux 2018, the module PEEC (Legacy InCa3D) has been
integrated in Flux, but the corresponding user guide has not been merged with
the main Flux user Guide. So it exist 2 accesses for each user guides. The
merge will be done with the next version.
Flux Help When the user guide is opened, click on hyperlink to overrun the document.
Reading advice All aspects related to the data organization, manipulation and display are
treated in the chapter “General operation: data management”.
Flux window The general Flux window consists of several zones. These zones are
identified in the figure below.
Role of zones The zones and their principal roles are briefly described below:
Element Function
Title bar General information:
• Software name, version number
• Application (Magneto Static 3D)
• Project name (CASE1.FLU)
Menus bar Access to the different menus:
• Project, Application, Geometry,
Mesh, Physics
• Parameter/Quantity, Solving
process, Post-processing
• Display, View, Select, Tools,
Extensions, Help
Context icons Access to the toolbars corresponding
to the contexts:
• Geometry, Mesh, Physics, Solving
process, Post-processing
Element Function
Menus Toolbars
Project Commands of the Project menu:
• New, Open a project
• Execute a command file, Save,
Close, Exit
Tools Commands of the Tools menu:
Undo, Close all open dialog boxes
Element Function
Contexts toolbars:
Geometry context Commands of the Geometry context:
• Enter on Sketcher context (2D and
Skew) r the Modeler context (3D)
to create the geometry
• Create geometric entities
• Propagate / Extrude
• Build faces / volumes
• Measure
• Check of the geometry, Healing
context of CAD geometry
Element Function
Contexts toolbars:
Mesh context Commands of the Mesh context:
• Create mesh entities
• Mesh domain, lines / faces / volumes,
Generate 2nd order elements
• Delete the mesh
• Assign mesh information
• Structure the mesh
• Check the mesh
Physics context Commands of Physics context:
• Create physical entities
• Create I/O parameters / spatial
quantities
• Import materials, Orient a material,
Assign regions, Import a circuit
• Check physics
Solving process context Commands of Solving process context:
• Create a scenario,
Solving process options
• Check the project
• Solve a scenario,
Continue the solving process
• Delete results
Post-processing context* Commands of Post-processing context:
• Create post-processing entities
• Curves
• Isovalues
• Arrows
• Compute quantities on points /
predefined quantities
• Evaluate sensors
Element Function
Menus Toolbars (in the graphic zone):
View Commands of the View menu:
• Refresh view, Zoom all, Zoom region
• Standard view 1, Standard view 2, X plane
view, Y plane view, Z plane view,
Opposite view, Four-view mode
• View direction,
Save / Restore graphics properties
Display Commands of the Display menu:
• Display geometric entities
• Display point numbers / line numbers
• Display mesh entities
• Display physical entities
• Display post-processing entities
Selection Commands of the Select menu:
• No selection, Free selection
• Select geometric entities
• Select physical entities
• Select solving process entities
Element Function
Data tree Entities tree of the Flux project
Introduction It is possible to modify the look of the Flux window on the screen, i.e.:
• modify the background color
• display / hide certain zones
• resize (reduce / enlarge) zones
In this example to display only the graphic view, the user must minimize :
• the pyFlux command window
• the Output window
In this example to display the three window, the user must resized the minimized windows :
• the pyFlux command window
• the Output window
In this example to display only the graphic view in the full screen, the user must click on
In this example to display the three window, the user must reduce the maximized graphic view
window.
Resizing
handle
Separation of The dialog box returning the error message is composed by:
user / tech info • A Message tab containing the user message part.
message • A Advanced tab containing the technical info.
If the configuration is not managed in the code, in this case there will be no
user error message but only a generic message "Failed execution"
The output In the output window, the same filter was applied. The technical information
window is no longer displayed to note pollute this window intended to inform the user.
Warning messages now appear in orange and are also stacked (see next
block).
Warning The warnings are stored and accessible via the icon (bottom right):
management
Flux3D.log and All operations done in Flux give a result. These results visible in the output
Flux3D.report window are saved in the Flux3D.log file.
files The full details (the contents of the Flux3D.log + the information contained in
the "advanced" tabs of the error / warning messages) are present in the
Flux3D.report file
Best practice:
Usually, the Flux3D.log file is sent to the Support team when the user encounters a
problem. We advice you to send the Flux3D.report to give all details.
Introduction This section concerns the graphic representation of the modeled device.
When referring to the graphic representation of a device, we are interested:
• on one hand, in the different entities and their appearance: points and their
visibility, lines and their color, faces, surface elements….
• on the other hand, in the type of displayed view: side view, top view,
bottom view, global view, … in its position and dimensions in the graphic
display zone.
The first aspect of the graphic representation (called visualization of entities)
is treated in chapter “General operation: data management”.
The second aspect (called graphic view) is treated in this chapter.
This section presents the following:
• concepts of graphic view
• possibilities to modify the view (displacement, rotation, zoom, etc.)
• presentation of predefined views (standard view, base plane views, opposite
view, etc.)
The graphic The graphic zone is a zone where a graphic representation of the modeled
zone device is displayed.
Scale of
transparency
The coordinate system displayed in the left bottom of the zone gives the principal
axes direction to orient the figure.
Concept of view The 2D or 3D view of a device in the graphic zone is called graphic view.
View The graphic view of the device can be displayed with more or less clear faces
transparency and volumes. This functionality controls the level of transparency of faces
and volumes. It gives the possibility to visualize the inside of the device
geometry, without setting faces and volumes invisible.
Scale of The transparency level of faces and volumes can be set using a scale of
transparency transparency located on the right bottom of the graphic zone.
Transparent Opaque
Command Icon
Zoom all Total view
Zoom in - Enlarge the view
Zoom out - Reduce the view
This option enables the user to set with the
Zoom region
mouse the rectangular zone to enlarge.
Options It is possible to choose one (more) view(s) from a list of predefined views:
• standard view 1 and 2
• views on the reference planes X, Y, Z
• opposite view
Standard views The standard views 1 and 2 are presented in the figures below.
Views on the The views on the reference planes X, Y, Z are presented in the figures below.
reference
planes
Y plane view
Command Icon
Standard view 1
Standard view 2
Opposite view
X plane view
Y plane view
Z plane view
Options The views on the reference planes X, Y, Z and also the standard view 1 can
be displayed in four independent windows. Only one window is active
(surrounded by a border of different color).
You can also display two windows from the four proposed.
Swap one view / To swap one-view mode to four-view mode / four-view mode to one-view
four views mode:
• click on Four-view mode in the View menu
or on the icon .
Introduction The user will find in this section the definition of a Flux project, and the
description of commands of project management (New, Open, Save, Close).
Flux project: A Flux project is the data ensemble corresponding to a Flux study.
definition
Storage type From the storage point of view, a Flux project consists in:
• a repertory, which includes the project name completed by the suffix
“.FLU".
• a files ensemble, whose names are fixed and whose content is explained in
the table below.
Solved files For a FLUX study, the repertory corresponding to the project contains also a
file(s) that contains the result(s).
Project Menu Creating, opening and saving projects are carried out by usual commands for
file management. These commands are available by Project menu or by
Project toolbar.
The operation of these commands is briefly pointed out below.
Result: Flux recovers a lot of information from the database model, in order to build
the proper database of the new project. The new project is temporarily named
ANONYMOUS.
Result: When a project built with an old version is opening, Flux performs the update
of the database.
Introduction The user will find in this section the definition of a Flux object, the operation
modes of Flux objects and the use of the importation object command.
Overview Before begin the description of a device, it is possible to appear the following
question:
Portions of this device can be used for the modeling of others devices?
Basic idea If the answer is yes, the geometric building of a device can be considered as a
structure in lego.
Then, the general principle of construction is as follows:
• Description of different pieces of the structure in the independent Flux
projects (base lego or Flux objects).
• Construction of the complete device in a new Flux project, by means of
already built bricks (Flux objects).
Example Geometric construction of a motor performed importing stator and rotor parts
already build.
New object:
motor geometry
(MOTOR.FLU project)
Main interest: This type of construction presents certain constraints, but also offers the
bank of objects possibility to realize a bank of objects that can be used for different studies.
Step Action
1 From the Project menu:
• point on Import and click on Import Flux object
2 In the Import Flux object box:
• choose the file name to import
• choose the filter
The user can save his files in formatted mode or binary mode. The advantages
of the binary save are:
Introduction • Use less memory
• Use less storage space
• Speed up the opening of projects (reading faster Binary files)
From the 12.2 version, projects are saved in binary mode by default.
Binary save To write files in binary mode, please follow these steps:
Step Action
1
Click on
2 Click on [Debug] and not tick the case [Write files in formatted mode]:
3 Click on OK
4 Open a project (or click on Start a new project) and save it.
The project .FLU is saved in binary mode
Here is an example:
Formatted save To write files in formatted mode, please follow these steps:
Step Action
1
Click on
2 Click on [Debug] and tick the case [Write in formatted mode]:
3 Click on OK
4 Open a project (or click on Start a new project) and save it.
The project .FLU is saved in formatted mode
Here is an example:
Introduction A finite element project contains a great volume of data, diverse and
interrelated.
In terms of Flux software, these data (points, lines, …) are called entities and
depend on project context (geometry, mesh, …).
This chapter presents the mode of general operations of Flux software
(independent of context), i.e.:
• the general organization of data (Flux database)
• the data presentation (dialog boxes)
• management of the entities
(handling, information, export and selection of entities)
• the tools of graphic entities visualization
(display and appearance of graphic entities in the graphic zone)
Reading advice This chapter presents the mode of general operation of Flux software
(independently of context). For specific detail of geometry, mesh, physics,
solver and post-processing modules refer to the corresponding chapters.
Introduction This section presents the general information on data structure in the Flux
database.
Data and data The Flux database makes a logical distinction between data structure (or
structure data type) and data themselves (see blocks below).
Definitions The principal terms, used in this document to make a distinction between
data and data structure, are presented in the table below.
Term Definition
Entity-type an entity-type is a logical data structure defined by a name
and a certain number of fields (attributes, relations, cases)
Entity an entity is an object corresponding to an entity-type
characterized by an identifier (number/name) and fields
(attributes, relations, case)
Caution on the vocabulary: the terms “entity” and “occurrence of entity” can be also
used instead of “entity-type” and “entity”.
Introduction This section treats the data and the data presentation, i.e. dialog boxes:
specialized box and data array.
What are the The handled data (entities) depend on the phase of the finite elements project
handled data? description: geometry, mesh, physics.
They are listed in the data tree (figure below) and are detailed in the different
corresponding chapters: Geometry / Mesh / Physics / Solver / Post-
processing.
How are the The interaction with the database is done using specific dialog boxes:
data? specialized box, data array.
This paragraph presents an example of specialized box.
Specialized box In this box the user can enter/check/modify information relating to the data.
A specialized box is presented in the figure below.
Entity-type:
Coordinate system Entity:
[CORE]
Title
bar Name
Tag: Comment
Definition
Type (1)
Type (2)
Characteristics
Buttons
bar
The required fields (necessary and sufficient for the definition of the entity) are
marked by an asterisk *.
General tools The general tools - available to carry out the data entry - are presented in the
table below.
Button Function
allow the direct access to the non-filled required fields
OK validate information and close the dialog box
Apply validate information without closing the dialog box
Cancel close the dialog box
access to the online help concerning the entity
Specific tools The user can create a missing entity using the button in a specialized box.
How are the The interaction with the database is done using dialog boxes: specialized box,
data? data array.
This paragraph presents an example of data array.
Entity-type :
Coord. Syst. Entities :
[CORE], [MAIN]
Title
bar
Name
Comment
Structure
(Database) Type (2)
Characteristics
Type (1)
Buttons
bar
de boutons
Information Information Information
relating to the relating to the relating to the
group of entities entity [CORE] entity [MAIN]
The boxes clear gray are active boxes (data entry fields).
The boxes dark gray are inactive boxes (general information).
General tools The general tools - available to carry out the data entry - are presented in the
table below (idem specialized box).
Button Function
allow the direct access to the non-filled required fields
OK validate information and close the dialog box
Apply validate information without closing the dialog box
Cancel close the dialog box
access to the online help concerning the entity
Specific tools The specific tools, available in a data array are presented in the table below.
Introduction This paragraph presents the commands for manipulation of the entities:
New / Edit / Edit array / Delete / Force delete.
Commands of The basic procedures required to manipulate the entities are the operations of
data creating, editing/modification and deletion of data.
manipulation
These operations are carried out by means of the commands presented in the
table below.
Modes of To build the Flux project, the user must create the entities corresponding to
creating the project data.
Giving consideration to a chronological order of entity creation generally
facilitates the description process: points before lines, materials before
regions … Consequently, if some entities have been ‘forgotten’, it is
beneficial to have the option of creating them a posteriori.
Therefore, there are two modes of creation:
• the direct creation is the « standard » mode of creation (the most natural)
• the indirect creation is a mode of creation a posteriori. This is carried out
in a specialized dialog box by means of a button that facilitates the
creation of a supporting entity.
Modes of To check the data, the user must edit (and modify if necessary) the entities
editing that he has created.
There are two modes of editing:
• editing in a Specialized box (generally), used to modify the characteristics
of one* entity
• editing in a Table of data is used (in general) in order to verify the
characteristics of an array of entities
* it is equally possible to edit several entities in a specialized box (then only
the common characteristics are edited)
Modes of The user may have to delete entities. He can easily destroy an independent
deletion entity. It is often the case that the entity is related to other entities. The
deletion of the original entity can result in the deletion of all related entities.
Therefore, there are two destruction modes:
• the simple deletion:
is carried out on independent entities (not related to other entities)
• the force deletion :
is carried out on an entity and on all other related entities.
These two modes are described in the table below:
Access to the For the command Create, which does not require selection of entities, the
Create access to the command can be carried out:
command • from the menu bar (1)
• from the tool bar (2)
• from the data tree* (3)
The command activations options are presented in the figure below.
* The creation of graphic entities can also be carried out from the graphic
zone. The corresponding selection filter must be activated previous to the
creation command (see § « Entities selection: selection filter »).
Access to other For the commands Edit/Edit array and Delete/Force delete, which require
commands selection of entities, the access to the command can be carried out:
• from the menu bar (1) :
- activation of the command then selection via a drop down menu (1)
• from the data tree * (2 et 2’) :
- activation of the command then selection via a drop down menu(2)
- direct selection then activation of the command (2’)
The command activation options are presented in the figure below .
Selection
via
1 a drop down
menu
2 Selection
via
a drop down
menu
2’
* The editing can equally be carried out from the graphic zone for the graphic
entities. The corresponding selection filter must be activated preceding the
edit (see §Entities selection: selection filter).
Introduction This paragraph presents the different commands that equip the user to display
information regarding the entities: Displaying the PyFlux expression, Listing
and Using by.
Command Function/Use
Display PyFlux This command permits the display of the Pyflux
command expression associated with an entity.
The user can recover it to use in a python sequence.
List This command permits the list of the contents of an
entity type to be displayed.
This command is accessible only starting from the
contextual menu of an entity type.
Entity used by This command permits the user to know all the entities
related to an entity
Access to entity The information commands are accessible starting from the contextual menu
information of each entity or entity-type.
commands
Introduction This paragraph presents different formats for the export of entities.
Interest The export permits the user to extract information related to an entity. This
information is an image of the contents of the database.
Once exported the information may be used outside the FLUX software.
Export The export formats and their applications are presented in the table below:
formats
Format Applications
Export XML
Programming
Export python
Export TXT
Presentation, storage, information,
Export Excel
administration of results
Export Clipboard
Example The results for the export of a point, under two different formats, are
presented in the table below:
Writing mode In the dialog box corresponding to the export of an entity the user can choose
between different modes of writing in a file:
Export to
Writing mode
an existent file a new file
Adding values The values are added
(by default) following the contents
The values are added
The file contents is
Replacing file
replaced
Access to The export commands are accessible from the contextual menu of each entity
export or entity-type.
commands Starting from the contextual menu of an entity type, the user must choose the
entity which he wants to export by means of a dialog box.
Step Action
1 In the data tree, select the entity to be exported and activate the
command Export format XXX in the contextual menu
A dialog box is open.
2 In the box Export format XXX
• Choose the path and the file name for the export
3 Choose one of the following actions:
• If the file is existent:
pass to step 4
• If not:
pass to step 5
4 Choose the writing mode: add value or replace file
5 Validate the export
• Click on OK
The export has been carried out to the specified file.
Introduction The most part of actions for handling the entities require the selection of
entities.
Indeed:
• to modify the coordinates of a point, you should select the corresponding
point
• to add a line (segment), you should define extremity points and then select
starting point and ending point
•…
The different selection circumstances and selection modes are presented in
this paragraph.
Selection Selection of entities can be done before or after the activation of a command;
circumstances: it can also be done, during an operation of creation.
overview
These selection scenarios are presented through examples in the table below.
Activation of a command:
• New
Selection by number
(choice in the list)
or by other mode
Selection Selection of entities could be done with the following different selection
modes: modes:
overview
• graphic selection (directly with the mouse)
- in the data tree for all entities
- in the graphic area for graphic entities
• identifier selection (by name / by number)
• advanced selection* (by criterion / by …choice)
Selection filter: During the selection of entities, only one entity-type is identified as being
definition selectable:
• it is possible
to select the points 1 and 2
or to select the lines 4 and 5
• it is not possible
to select the points 1 and the line 5
A selection filter makes it consistently possible to identify the selectable
entity-type.
For the graphic entities, the selection filter can be activated directly by the
user with the commands in the menu Selection or in the toolbar Selection.
Menu Selection The proposed choices in the menu Selection or in the toolbar Selection, relate
to the graphic entities; they are presented in the figure and the table below.
No Selection
selection Point / Line / Face / Volume
Free Selection
selection Face region / Volume region
Choice Description
No selection nothing selectable
all is selectable
Free selection The first entity which will be selected by the user will
determine the entity-type selectable
Select points the points are selectable
… …
Definition / use One speaks about selection by criterion when the selection is carried out by:
• the intermediary of the existing relations between the various entities
(points belonging to a line...)
• or the intermediary of characteristics common to several entities (faces
with the same color, faces on the same surface...)
•…
Operation The selection by criterion is available to the level of selection boxes and is
mode carried out in three phases as that is presented in the table below (and on the
example presented in the following block).
Stage Description
0 From a selection box …
1 The user :
• open the criteria list (with the button )
• and select a criterion to carry out his selection
The specific selection box (with logical operators) is open
2 Then, he selects the entities which interested him
(He chooses one of the proposed selection modes:
graphic selection, by identifier or criterion)
3 And applies the selection operator to the group of entities
1a. Click on
1b. Click on
Selection by face
3. Click on Union
The stages of selection and management of the entities can be overlapped and
reiterated.
Selection To manage the logical operations on the groups of the selected entities, the
operators user disposes the selection operators introduced in the table below.
Operator Function
Exclude to remove entities from the list
Union to add entities in the list
Intersect to carry out the intersection of two groups of selection
Introduction This section deals with the graphic representation of the modeled device.
When referring to the graphic representation of a device, we are interested:
• in the type of displayed view: side view, top view, bottom view, global
view, … in its position and dimensions in the graphic display zone
• in the different entities and their appearance: points and their visibility, lines
and their color, faces, surface elements….
The first aspect of the graphic representation (called graphic view) is treated
in chapter “Environment and graphic representation”
The second aspect of the graphic representation (called visualization of
entities) is treated in this chapter.
Introduction The graphic representation of different objects is not the same during the
different steps of building the numerical model of the device.
From a step to another, we are interested in one kind of representation, or
another:
• representation of points and lines during the geometry building
• representation of nodes and surface elements during the mesh building, ….
Examples
Possibilities to To control the graphic representation, Flux provides default settings, but the
modify the user has the option to modify this representation.
visualization
User options are:
• option one, use the display filters in order to decide what entity types he
wishes to see in the graphic zone: the assembly of points, or the points and
the lines, or only the faces, … (see §5.4.2 «Visualization of entities:
displaying the entities and displaying filter»)
• option two, modify, in a selective manner, the graphic appearance (namely
the visibility and/or colour) of certain entities (see § 5.4.3 Visualization of
entities: graphic appearance)
Problem How to make the desired image of the device, in terms of displayed entities,
appear in the graphic zone on screen: the assembly of points, or the points and
the lines, or only the faces, …
Displaying
filter
The display filters categorize the entity types displayed in the graphic zone:
the points, or the points and the lines, or only the faces, …
The display filters are accessible by means of the Display menu (or the tools
bar Display)
Displaying The list of the display filters available in the Display menu are presented
menu below. The filters present the working context (geometry, meshing, physical,
exploitation).
Subject How to make appear the desired representation of the device in the graphic
window, in terms of graphic appearance of entities: visibility, color.
Appearance Characteristics
color white, cyan, yellow, magenta, black, red, turquoise and green
visibility visible or invisible
Appearance in The entities in the graphic window are displayed according to their
the specialized appearance characteristics (visibility and color)
box
For each entity, the characteristics are saved in the Appearance tab of the
specialized box.
Remark The function of saving and restoring of the graphic properties exclusively
takes into consideration the display filter.
Consequently, the position of the view and the zoom performed are not taken
into consideration by this function.
Introduction PyFlux is a Flux specific language, which can be defined in the following
manner:
PyFlux =
Python programming language +
Flux command language
PyFlux is therefore an overload of Python to which Flux commands are
inserted.
This section refers to information covering the PyFlux and Python languages,
which should be reviewed before going over the various examples.
PyFlux: what is PyFlux is a Flux specific language, which can be defined in the following
it? manner:
PyFlux =
Python programming language +
Flux command language
PyFlux is therefore an overload of Python into which Flux commands are
added.
Example: Point The structure of the Flux entity in the PyFlux language is presented in the
type example of the Point entity.
uvw point
coordSys transf
Flux entities / Some examples of the Flux type-entity and its corresponding PyFlux type are
PyFlux types presented in the table below.
Other PyFlux The PyFlux types corresponding to the basic data types are presented in the
types table below.
File File
Python: what is “Python is a portable, dynamic, extensible, free language, which allows a
it? modular and object-oriented approach to programming. Python has been
developed since 1989 by Guido van Rossum and several voluntary
contributors” (Gerard Swinnen “Learn to program with Python”, pg. 6,
2005).
All the information about this language is accessible on the Python site:
http://www.python.org.
The Python language is interpreted in Flux by Jython.
Additional information about this interpreter is available on the Jython
website: http://www.jython.org.
Variables and
types Declaration, assignment of variables:
• It is not necessary to declare the variables. A variable is created at its first
assignment by means of = operator
• The type of a variable is not explicitly declared and can change in time. The
type of a variable is the type of the value that is assigned to it.
Comparison The condition after the if statement can contain the following comparison
operators operators:
Element Function
x == y x is equal to y
x != y x is not equal to y
x>y x is greater than y
x<y x is less than y
x >= y x is greater than or equal to y
x <= y x is less than or equal to y
range() fonction The range() function turns out to be very useful to manage iterations in loops.
It generates a list of integers
>>> range(8)
[0, 1, 2, 3, 4, 5, 6, 7]
Example :
Error handling The Python language has built-in system for exception handling. The program
can contain various types of errors: syntax errors, semantic errors (of logic)
and errors of execution (exceptions). When an exception occurs, the program
execution is stopped and the exception is handled.
To handle syntax errors and exceptions, Python uses the following statement:
try :
# instructions to execute (to raise exceptions)
except exception_class :
# instructions to execute if the exception of the above class occurs
else :
# instructions to execute if there is no exception
finally :
# instructions to execute in all the cases
Python enables:
• to catch several types of exceptions in same treatment
• to raise the exceptions with the keyword raise
Different zones The Flux main window consists of several zones (graphic zone, data tree,
etc.). The principal zones are presented in § 3.1 “Working environment: role
of different zones”.
The zones concerning the use of PyFlux in interactive mode are the zones
presented in the figure below.
History zone
Zone Function
History Result of executed PyFlux commands
This area is composed by three parts:
PyFlux • Command prompt
Command • Python Editor
• Echo
« Echo » zone This zone contains two log.py files is available (in read only):
• the “Flux[XX]_log.py” : all commands performed by the user during
a session are recorded in this file.*
• the “Project_PyFlux_log.py”: all commands performed by the user
during the beginning of the project up to the end of the project are
recorded in this file.
«Editor With python editor, user can read, write, run totally or only some selected
python » zone command of the python script.
Notes :
• It is possible to open several py script file (one tab by file)
• This zone allows displaying automatically the groovy file when the user use
subroutine in groovy language
• An editor python similar is available directly on the supervisor (script
python context)
“Command In this zone, the user can launch and test a python command (or more python
prompt” zone commands) directly, without create a new .py file. It’s an operating direct
mode, useful when you need to work quickly or debug your python
command.
Example You can enter a line of PyFlux / Python command directly into the
Command zone, the answer is then displayed in the History zone.
An example of use of the Command zone as calculator is presented below.
Command prompt
History zone Echo zone
zone
Echo of
Python commands
commands Résultats
Drag and drop User can “Drag and drop” between different windows by selecting command
with the mouse. It is equivalent to a copy + paste
Hide/display User can hide or display one of these three zones in the “PyFlux command”
window by clicking on
Introduction To write in PyFlux language, the user needs to know the syntax of the PyFlux
expressions (Flux commands in the PyFlux language).
How to find out There are five methods to find out the syntax of the PyFlux expressions.
the PyFlux These methods are presented in the table below and explained in the
syntax following blocks.
Method Description
1 recover the syntax in a command file
2 recover the syntax in the Echo zone
3 activate the entity command Display PyFlux command
(contextual menu, right click on item in the menu tree)
3’ apply the Python type() method to the entity (Command prompt
zone)
4 apply the Python help() method to the entity (Command
prompt zone)
(1) …in a To recover the PyFlux expression of a Flux command applied during the
command file session:
• use the command file*to save the Flux commands** while the Flux
program is running
Example:
Echo of the command Open project / CASE1.FLU:
loadProject('case1.flu')
(3) Command In order to find out the PyFlux expression of a Flux entity (the type and
Display the attributes):
PyFlux • in the contextual menu of the Flux entity, click on the Display PyFlux
expression command
• recover the syntax within the History zone
Example:
Display of the PyFlux expression of the command Point[1]:
Typing Point[1]
PointCoordinates(color=Color['White'],
visibility=Visibility['VISIBLE'],
coordSys=CoordSys['CENTER'],
uvw=['-60',
'0',
'0'],
nature=Nature['STANDARD'],
mesh=MeshPoint['E_SHAPE'])
End typing Point[1]
(3’) type() In order to find out the PyFlux expression of a Flux entity (the type and
method attributes):
• in the Command zone, apply the Python type() method to the Flux entity
• recover the syntax within the History zone
The Python type() method is equivalent to the Flux command Display
PyFlux command
Example:
Result of the command Point[1].type():
PointCoordinates(color=Color['White'],
visibility=Visibility['VISIBLE'],
coordSys=CoordSys['CENTER'],
uvw=['-60',
'0',
'0'],
nature=Nature['STANDARD'],
mesh=MeshPoint['E_SHAPE'])
(4) help() In order to find out the PyFlux syntax of the complete structure of a Flux
method type-entity (its attributes, sub-types, methods, selection method):
• in the Command zone, apply the Python help() method to the Flux type-
entity (type PyFlux).
• recover the syntax within the History zone
Example:
Result of the command ParameterGeom.help():
ParameterGeom (Entity for parametrizing a geometry) : Type
Entity (read write)
Fields :
- ParameterGeom[id name].expression (Expression for the
parameter) : [1...1] of C80 (read write)
- ParameterGeom[id name].name (Name of Parameter)
: [1...1] of C80 (read write)
- ParameterGeom[id name].value (parameter value)
: [1...1] of R08 (read)
Introduction The user can activate or inactivate the writing of graphic commands. The
commands called ‘graphic’ are associated with various display filters as
described in section: § 5.4.
Writing the Activation of the writing of graphic commands ensures that the graphic
graphic commands corresponding to the graphic operations will be written in the
commands History zone and in the PyFlux command file created automatically.
Transparency Bar
Icon state
activated inactivated
Introduction There are additional commands available to the user that are not accessible by
recopying a sequence of PyFlux.
startMacroTra The description and applications of this command are explained in the table
nsaction()/end below.
MacroTransact
ion()
getProjectNam The description and applications of this command are explained in the table
e() below.
Command getProjectName()
Function Permits the recovery of the name of the project open in Flux
Use Name=getProjectName() permits the storage of the project
name in the ‘Name’ variable
Example : Display of the Flux project name in a file :
PyFlux file = open("Name of project","a")
file.write("Name of project :")
sequence
file.write(getProjectName())
file.flush()
file.close()
[ALL] The description and applications of this command are explained in the table
below.
Command [ALL]
Function Creates a the list of all entities of the same type which
facilitates the storage of this list in a ‘Flux variable’
Use Points = Point[ALL] creates a list of all entities of the point
type and enables the storage of this list in the « Points »
variables.
Reminder / The command List_instance(typeId='Point')* results in the
Comparison display of all entities of the point type displayed in the
History zone.
* syntax equivalent to the command List described under § 5.3.2
Information on the entities: Display Pyflux, list, and entitiy used by.
Example : Display of a detailed list of entities belonging to the same
PyFlux entity type in a file:
sequence file = open("List of entities", "a")
file.write("Detailed list of points")
for I in Point[ALL] :
file.write("\n\nInstance : ")
file.write(repr(I))
for field in Point.__fields.keys() :
file.write("\n")
file.write(field)
file.write(" : ")
file.write(repr(I.__getattr__(field)))
file.flush()
file.close()
Instance : PointCoordinates[1]
visibility : 'VISIBLE'
surface : None
color : 'White'
domain : 'DOMAIN1 : Domain.'
nature : 'STANDARD : Topologie standard'
inAirPointFaceLocation : None
region : None
globalCoordinates : [-0.06, 0.0, -0.05]
ETAT : 0
mesh : 'E_SHAPE : E_SHAPE VOLUMES'
inAirPointVolumeLocation : None
Instance : PointCoordinates[2]
visibility : 'VISIBLE'
surface : None
color : 'White'
domain : 'DOMAIN1 : Domain.'
nature : 'STANDARD : Topologie standard'
inAirPointFaceLocation : None
region : None
globalCoordinates : [-0.04, 0.02, -0.05]
ETAT : 0
mesh : 'E_SHAPE : E_SHAPE VOLUMES'
inAirPointVolumeLocation : None
…
…
getHelp() The description and applications of this command are explained in the table
below.
Command getHelp()
Function Permits to stor the help text dealing with an entity type in a
« Flux variable ».
Use Point = Point.getHelp() retrieves the syntax describing the
« Point » entity type in order to support storage in the
« Point » variable.
Reminder / The command Point.help() permits the display of the support
Comparison storage of the Point entity in the history zone.
Example : Display of support related to an entity type in a file:
PyFlux file = open("Aid PyFlux","a")
file.write("Aid on the point :")
sequence file.write(Point.getHelp())
file.flush()
file.close()
Example : File created comprising all of the supporting Pyflux
result command syntax associated with the « Point. » entity type.
getPyFluxCom The description and applications of this command are explained in the table
mand() below.
Command getPyFluxCommand()
Function Permits the storage of ann entity in a « Flux variable ».
Use P1=Point[1].getPyFluxCommand() permits the storage of
the Point[1] entity in the « P1 » variable
Reminder / The command Point[1].type() permits the display of the
Comparison entity Point[1] in the history zone
Example : Display of an entity in a file:
PyFlux file = open("Entities of the Flux project ","a")
file.write("Point P1 :")
sequence file.write(Point[1].getPyFluxCommand())
file.flush()
file.close()
Example : Content of created file:
result Point P1:PointCoordinates(color=Color['White'],
visibility=Visibility['VISIBLE'],
coordSys=CoordSys['CENTER'],
uvw=['-60',
'0',
'0'],
nature=Nature['STANDARD'],
mesh=MeshPoint['E_SHAPE'])
Introduction The command files, also called command programs or scripts, make possible
the automation of a certain number of specific actions.
Instead of manually executing a series of actions within Flux, you can save
the sequences of commands, which you can later replay.
The saved sequences can be improved due to the Python language which
authorizes the utilization of variables, the implementation of loops,
conditional or unconditional connections, …
A command file is therefore of interest as it can:
• accelerate the most frequent operations
• automate a series of complex tasks
Example The command files for the tutorials papers are provided on the DVD with the
software. By executing these command files, the user can quickly build the
Flux projects described in the tutorials.
For example, the command file GeoMeshPhys.py builds the whole geometry,
generates the mesh of the computation domain and describes the physical
properties for the technical example “Rotating Motion”.
6.2.1. Overview
Definition A Flux command file is a text file, which contains one or more commands in
the PyFlux language. It uses the filename extension *.py.
General The more general operating mode is presented in the table below.
operation
Location The command files can be stored in any directory chosen by the user. The
default command file created when the Flux program running (see § 6.2.3) is
stored in the directory of current project.
Structure The structure of a command file (*.py) is presented in the example below.
Part Description
1 Header of an executable Flux program
2 One or more commands in a programming language
(1) Program The Flux program header is compulsory. It specifies which Flux program (2D
header and/or 3D) will execute the command file and its version*.
(2) Sequence of The sequence of commands can comprise four types of principal instructions:
commands assignment, loops, conditional statements, and statements without condition.
Note: A command file can contain the instructions to open another command file and
so on up to 15 levels.
User The user can manage command files by means of the Flux commands from
management the Project \ Command file menu.
Flux command Function
New creation / opening of a file
Interrupt break of the sequence saving
Resume resumption of the sequence saving
Close end of the sequence saving / closing the file
Note: It is unable to open two command files at the same time for a Flux session.
Modes of There are two modes to execute a command file. These two modes are
execution presented in the table below.
Mode Description
direct mode with graphic refreshment
batch mode without graphic refreshment (faster execution)
Execute a To execute a command file, you can use one of the two following methods.
command file
Method 1: from the supervisor (only batch mode):
• double-click on the file name
Method 2: from the Flux window (batch mode or direct mode):
• in the Project menu, point on Command file and click on Execute in
batch mode or Execute in direct mode
• in the dialog box, enter the file name
• in the python editor, open the file and execute it (direct mode)
All the PyFlux instructions from the command file are executed.
Warning: For a correct process of operations, it is necessary to execute the command
file in the appropriate context (expected by the command file).
Objective The objective is to show, in a simple example, how to write a command file
to automatically create a series of mesh lines.
Example The command file allows the creation of eight Mesh lines A1, …, A8 of the
description arithmetic type with 1, …, 8 elements for different Flux projects (2D / 3D).
• click on OK
• in the new dialog box, click on Cancel
3 Save and close the command file:
• in the Project menu, point on Command file and click on Close
Stage 1: file The command file CreateMeshLine.py containing the saved sequence is
explanation presented as follows:
Element Function
#! Preflu3D 9.33 indication on the executable program (the #! symbol)
this file was saved by
MeshLineArithmetic creation of a Mesh Line with the following
(name=A1,
color=Color['White'],
characteristics of the Flux command:
number=1) • name = A1;
• color = white;
• number = 1
Stage 2 To modify the previous command file using the PyFlux syntax:
Step Action
1 Rewrite the command file CreateMeshLine.py by using a for
loop and a variable
2 Save the file
Stage 2: file The command file CreateMeshLine.py containing the new instructions is
explanation presented as follows:
Element Function
#! Preflu2D 10.3 indication of the two programs in which the file
#! Flux3D 10.3
can be executed
(the Preflu2D program is added in order to use
this command file in Flux 2D)
for i in range(8) : carrying out a for loop to reiterate on the values
of the sequence [0, …, 7]
name = 'A' + str(i+1) creation of a variable name which takes for
successive values the strings:
A1, A2, …, A8
(the method str() converts the numerical type in
string)
MeshLineArithmetic creation of a series of Mesh lines with the
(name=name,
following characteristics:
color=Color[i+1],
number=i+1) • name = A1; A2; A3; A4; A5; A6; A7; A8
• color = black; white; yellow; blue; turquoise;
magenta; red; green
• number = 1; 2; 3; 4; 5; 6; 7; 8
Stage 3: final After executing the command file, the user will have 8 mesh line entities
result available in the current Flux project: A1 = 1, A2 = 2, …, A8 = 8
Example The studied device is a simple geometrical figure (quadrilateral) defined using
description 6 parameters: X1, Y1, X2, Y2, X3, Y3.
This command file could be used to create different Flux projects in 2D.
Stage 1 To build the basic geometrical figure on which the modifications will be
carried out, follow the following procedure:
Step Action
1 Open a new Flux project
2 Build the geometry:
• create the following 6 geometric parameters:
X1 = 20, Y1 = 0, X2 = 0, Y2 = 10, X3 = 20, Y3 = 10
• create the following 4 points:
(0, 0); (X1, Y1); (X2, Y2); (X3, Y3);
• create the 4 lines to close a rectangle with these 4 points
• build the faces
3 Mesh the device:
• modify the value of the MEDIUM Mesh line (value: 1 mm)
• assign the MEDIUM Mesh line to the 4 points
• mesh the faces
4 Save the project under the name BASE.FLU
Step Action
1 Create a command file ModifParam.py
2 Carry out the modification actions:
• delete the mesh (to enable the geometrical modification)
• modify the value of a geometric parameter
• mesh the faces
• save the project under another name
3 Close the command file
Stage 2: final The command file ModifParam.py containing the saved sequence is
result presented as follows:
Stage 3 To modify the previous command file using the PyFlux syntax:
Step Action
1 Write a function in the PyFlux language, which enables the
automatic creation of a Flux project (corresponding to a set of
parameters) starting from a base project BASE.FLU.
2 Write the calls of the previous function to create the 3 desired
cases
3 Save the command file
Stage 3: file The command file ModifParam.py containing the modify() function and the
explanation calls of this function is presented as follows:
Element Function
#! Preflu2D 9.33 indication on the executable program
def modify(VX1,VY1,VX2,VY2, definition of the modify() function having as
VX3,VY3,case) :
input 7 parameters
(6 numerical values to define the geometric
parameters X1, Y1, X2, Y2, X3, Y3 and 1
string to define the name of the project)
deleteMesh() deletion of the mesh
ParameterGeom['X1'].expression=str(VX1) modification of geometric parameter
…
(X1 takes the value VX1, converted into
string by the method str(),
…)
meshFaces() meshing faces
saveProjectAs(case) saving the project under the name defined by
the input parameter case
modify(10,0,0,10,20,10,"Case1") call of the function to build the first case,
…
…
Stage 4: final After executing the command file, the user has in his/her working directory 4
result Flux projects, whose characteristics are given in the table below.
BASE.FLU CASE1.FLU CASE2.FLU CASE3.FLU
P3 P4
2
P1 P2
P1: ( 0, 0) P1: ( 0, 0) P1: ( 0, 0) P1: ( 0, 0)
P2: (20, 0) P2: (10, 0) P2: (10, 0) P2: (10, 0)
P3: ( 0, 10) P3: ( 0, 10) P3: (10, 10) P3: ( 0, 10)
P4: (20, 10) P4: (20, 10) P4: (20, 10) P4: (15, 5)
6.3. Macros
Introduction The macros enable the user to regroup the frequently used commands in an
extension integrated into the software.
You can build up a macro instead of manually executing a series of repetitive
actions in Flux, which you will then be able to call regularly.
A macro is interesting because it can encapsulate within a new command a
series of repetitive operations and thus improve the quality and efficiency of
the user-software interaction.
List of The list of macros available (after having installed Flux) is available at the
delivered following path:
macros C:\Program Files\Altair\2018\flux\Extensions\Macros\macros_list_EN.pdf
6.3.1. Overview
Use A macro improves the quality and efficiency of the user-software interaction
due to:
• the regrouping of the repetitive commands
• its dialog box especially designed for the entrance of the parameters
General The operation mode of the most general type is presented in the table below.
operation
Some rules Within the storage on the disk, a macro corresponds to a directory which
includes:
• a file of the macro
• a file of the associated icon (optional)
The directory, the file of macro and the icon must be named after the macro-
function.
Example:
• Name of the function: Polypoint3D
• Name of the directory of macro: Polypoint3D.PFM
• Name of the file of macro: Polypoint3D.py
• Name of the file of the associated icon: Polypoint3D.gif
Location The macros can be stored in any directory chosen by the user. The macros
provided by Flux are stored within the specific directory extensions.
Structure The structure of a file defining the macro (*.py) is presented in the example
below.
1
Part Description
1 Header of an executable Flux program
2 Description of input parameters of the macro
3 Definition of a parameterized function in the PyFlux language
(1) Program The Flux program header is compulsory. It specifies which Flux program (2D
header and/or 3D) will execute the macro and its version*.
* The indicated version can correspond to the current software version or be of a
previous version.
(2) Description This second part deals with the description of the input parameters of the
of parameters macro.
For each parameter it is necessary to define:
• a parameter name
• a PyFlux type (see § 6.1.1)
• minimal and maximal cardinalities (numbers of minimal and maximal
values corresponding to the data structure)
• a default value or a keyword None
• a label associated to the parameter
(this label appears in the dialogue box for the running macro, see § 6.3.3)
(3) This second part deals with the description of the parameterized function.
Parameterized
function For this function it is necessary to define:
• a function name (= name of the macro)
• input parameters of the de function
• a body of the function (PyFlux instructions)
Management of The user can load or unload macros within the project. The macro can be
macros reloaded into the project, if the file of the macro loaded into the project has
been modified for example.
The Flux commands for the management of macros are located:
• Either directly in one of the menus Geometry, Mesh, Physics and
Advanced
• Or indirectly in the menu Extensions
Integration All the macros loaded into the Flux project appear:
within Flux • in the Extensions/ Macros node of the data tree
• in the toolbar (icons)
The loaded macros are saved with the project.
Run a macro The user can run a macro by using the Run command from the macro
contextual menu or by clicking on the corresponding icon. The dialog box
associated to the types of parameters is then displayed.
Direct access by With the aim to highlight and facilitate access to the macros provided with
menu Flux, a menu Load and run macro is implemented in each menu Geometry,
Mesh, Physics and Advanced.
The user has the possibility via this menu to :
• load and execute a macro
• consult the PDF documentation
• point and click on a macro in the menu, then click on the button “I”
• or point on the macro in the menu and CTRL+ right click on the macro
* In the next versions, new macros will be added to enrich to the current list.
Objective The objective is to show on a simple example how to write and use a macro.
This macro makes the repetitive tasks to enter the coordinates during the
creation of points easier.
* The definition of macro requires good knowledge of the Flux database structure
and concepts of programming.
Step Action
1 Type a header of executable Flux program
2 Describe input parameters of the macro
3 Define the Polypoint3D parameterized function in the PyFlux
language
4 Save the file of the macro under the name Polypoint3D.py in the
Polypoint3D.PFM directory.
Element Function
#! Preflu3D 9.33 indication on the executable program
@param parameter statement using the keyword @param
filename parameter names: filename, coordSys
coordSys
File PyFlux types: File, CoordSys
CoordSys
1 1 minimal and maximal cardinalities
points.txt default value points.txt
None
keyword None
File of points coordinates labels of parameters
Coordinate system for definition
def Polypoint3D(filename,coordSys) : definition of the Polypoint3D function with 2
parameters
(parameters to define the file name and the
coordinate system)
f = file(filename) creation of a variable f which takes for values
the data of the filename file
for line in f : realization of a for loop to reiterate on the file
lines
coords = line.split() creation of a variable coords which takes for
values the list of strings for each file line
PointCoordinates creation of the points with the following
(color=Color['White'],
characteristics:
visibility=Visibility['VISIBLE'],
coordSys=coordSys, • color = white
uvw=coords, • visibility = visible
nature=Nature['STANDARD']) • coordinates = (0, 0, 0); (3, 0, 0); (3, 2, 0);
(2, 2, 0); (2, 1, 0); (1, 1, 0); (1, 2, 0); (0, 2, 0)
• nature = standard
Stage 4: final After running the Polypoint3D macro, the user has the following 8 points in
result his Flux project:
(0, 0, 0), (3, 0, 0), (3, 2, 0), (2, 2, 0), (2, 1, 0), (1, 1, 0), (1, 2, 0), (0, 2, 0).
7.1. Formulas
Introduction This section presents the formula concept in Flux, as well as the distinction
between different formula types.
Formula Generally speaking, a formula is an expression that allows handling the data
concept using mathematical functions.
Data There are different types of parameters to handle, depending on the working
context: geometric parameters, input/output parameters, space quantities.
Consequently, there are different formula types: formulas with geometric
parameters, formulas with input/output parameters, and formulas with spatial
quantities.
The different formula types and their use are specified in the following sections.
Example The example below shows the use of a formula in the geometry context
The circumference of a circle is equal with 2**R, where R is the radius of
the circle.
The geometric parameter CIRC can be written as function of another
geometric parameter (RADIUS) by using the following formula (or
expression):
CIRC = 2*PI*RADIUS
Formula and The use of these formulas in different working contexts is explained in the
context table below.
In the context
the formulas are used to define …
of …
• geometric parameters
• coordinate systems
Geometry
• transformations
• points
• mesh points
• mesh line of type:
Mesh
• Length of line elements at extreme points
• Geometric with minimum distance
• coordinate systems for anisotropic materials, non-meshed
Physics coils, field sources
• non-meshed coils
Definition A formula with I/O parameters is an expression that allows handling I/O
parameters in different contexts – physics, kinematics, circuit, results post-
processing.
Example The example below shows the use of a formula in the physical context for a
magnetic application.
The value of the current in a coil is given by I = I0 sin ( t)
The I/O parameter CURRENT_VAL can be expressed as function of other
I/O parameters (I0, FREQ, TIME) by using the following formula:
CURRENT_VAL=I0*(2*PI*FREQ*TIME)
Evaluation A formula with spatial quantities is evaluated during the application using the
space quantity.
Example The example below shows the use of a formula in the context of results post-
processing for a magnetic application.
In a Magneto
Static
application
the flux density is a vector quantity:
B Bx i By j Bz k ,
where Bx, By, Bz are the three components of B on the axis i , j and k .
In this example we are interested in the By component of flux density
The spatial quantity (BY) can be expressed as function of other spatial
quantities (B) by using the following formula:
BY = Comp(2,B)
The function Comp(i,V) returns the i component of the vector V.
Formula editor Throughout the construction of a Flux project, numerous information items
can be entered as formulas: expression of a geometric parameter, current
value in one coil, etc.
To facilitate the user’s work, a new interactive formula entering tool is
provided with Flux version 10: the formula editor. This tool is accessible by
means of button: .
Examples:
Data The data are functions of the working context. They can be constants,
geometric parameters, I/O parameters, spatial quantities, etc. as presented in
the tables below.
Geometric parameters
New features New data are available for the formula editor. They are the following
constants:
• : mathematical constant (Pi)
• 0: permeability of vacuum; 0= 4 10-7 [H/m]
• 0: reluctivity of vacuum; 0 = 1/0 = 1/(4 10-7) [m/H]
• 0: permittivity of vacuum; 0 = 1/(3610-9) [F/m]
Caution: these constants are considered as functions and presented in form Pi(),
Mu0(), Nu0(), Eps0() within the PyFlux language.
Introduction This section presents the functions available in Flux for writing the formulas.
Reading advice This section deals with the list of the available functions and with their
syntax.
For the “simple” functions do not exist specific difficulties; for the “more
complex” functions, detailed information are contained in the following
sections “Functions for handling complex quantities”, “Specific functions
Modulo, Valid, Trapez, Trapezper and a function of substitution”.
7.2.1. Functions
Operator Description
+ add two values
- subtract two values
* multiply two values
/ divide two values
raise the left operand to the power specified by the right hand
** or ^
operand
Mathematical The usual mathematical functions are gathered in the tables below.
functions
Other functions
Int(x) Integral part of the expression x
Modulo(x,x1) Remainder of the division of x by x1
Min(x1,x2) Minimum of the expressions x1 and x2
Max(x1,x2) Maximum of the expressions x1 and x2
Sign of the expression x:
Sign(x)
Sign(x)=+1 if x>0; = -1 if x<0; = 0 if x=0
Trigonometry The usual trigonometric functions are gathered in the tables below.
Trigonometric functions
Sin(x) Sine of the angle x expressed in radians
Cos(x) Cosine of the angle x expressed in radians
Tan(x) Tangent of the angle x expressed in radians
Asin(x) Arcsine in radians of the expression x; x [-1,1]
Acos(x) Arccosine in radians of the expression x; x [-1,1]
Atan2(x,y) Arctangent in radians of the expression (x/y)
Sind(x) Sine of the angle x expressed in degrees
Cosd(x) Cosine of the angle x expressed in degrees
Tand(x) Tangent of the angle x expressed in degrees
Asind(x) Arcsine in degrees of the expression x; x [-1,1]
Acosd(x) Arccosine in degrees of the expression x; x [-1,1]
Atan2d(x,y) Arctangent in degrees of the expression (x/y)
Sinh(x) Hyperbolic sine of the expression x
Cosh(x) Hyperbolic cosine of the expression x
Tanh(x) Hyperbolic tangent of the expression x
Asinh(x) Arcsine hyperbolic of the expression x; x [-1,[
Acosh(x) Arccosine hyperbolic of the expression x; x ]-,[
Atan2h (x,y) Arctangent hyperbolic of the expression (x/y); x [-1,1]
Treatment of The functions for treatment of the complex quantities are gathered in the table
complex below.
quantities
Vector The functions for treatment of the vectors are gathered in the table below.
treatment
Modification of The modification of a coordinate system is obtained with the functions in the
the coordinate table below.
system
Other functions The other functions (or specific functions) are gathered in the table below.
Other functions
if x1x<x2: Valid(x,x1,x2)= 1
Valid(x,x1,x2)
else: Valid(x,x1,x2)= 0
if x1xx1+x2: Trapez(x,x1,x2,x3)= 1
Trapez(x,x1,x2,x3)
if x<0 or x>x1+x2+x3: Trapez(x,x1,x2,x3)= 0
Periodic trapezoidal function
Trapezper(x,x1,x2,x3,x4,x5,x6,x7)
see § 7.4.4 “Trapezper function”
Introduction This section recalls the concept of scalar field and vector field.
It contains the functions for handling complex quantities that are used in the
steady state AC applications (Steady state AC Magnetic, Steady state AC
Electric or Magneto Thermal).
Field concept In mathematics, a field is an item used to model the phenomena concerning
the "extended" objects. In a simplified meaning, a field is the association of a
value of parameter to every point in the space. In the largest sense, the term
"value of the parameter" represents a tensor.
Quantities The quantities handled by Flux are scalar quantities and vector quantities.
handled by Depending on physical application, these quantities can be expressed by real
Flux or complex numbers.
Functions The functions available in Flux allow the handling of the scalar and vector
handled by quantities expressed by real or complex numbers. These functions are
Flux generally described in the previous section.
The functions for handling quantities expressed by complex numbers are
described in the following section.
Definition In Flux 3D, a complex scalar or vector quantity is defined by its real part and
its imaginary part.
Use The functions for handling the complex quantities can be used in the formulas
with I/O parameters and in the formulas with spatial quantities.
Principal The functions of treatment of the complex quantities are gathered in the table
functions below.
Other functions Two other functions of Flux 3D applied to complex quantities are described
in the following paragraph. These are the vector modulus (ModV) and the
general modulus (Mod) functions.
Before starting The modulus functions, i.e. the vector modulus, the complex modulus and the
general modulus, allow the computing of the modulus of scalar and vector
quantities, expressed by real or complex numbers
Before describing the modulus functions, a recall of the notations is described
in the following blocks.
Scalar To define the modulus functions of the scalar quantities expressed by real and
quantities: complex numbers, we use the following notations:
notations • for a real scalar: A
• for a complex scalar: I
expressed by I = Ir + j Ii
Vector To define the modulus functions of the vector quantities expressed by real and
quantities: complex numbers, we use the following notations:
notations • for a real vector: V
expressed by V Vx u Vx v Vx w
Vector The ModV(X) function returns the vector modulus of the X vector, which
modulus: can be a real vector or a scalar vector.
ModV function
• If V is a real vector, ModV(V) is a real scalar expressed by
Complex The ModC(X) function returns the complex modulus of the complex
modulus: argument X, which can be a complex scalar or a complex vector.
ModC function
• If I is a complex scalar, ModC(I) is a real scalar expressed by:
ModC( I) I mod I 2r I i2 I I *
M odC( Vc ) M odC( Vcy ) Vyr2 Vyi2
M odC( V ) 2
cz V
zr
2
Vzi
General The Mod(X) function returns the general modulus of the argument X.
modulus: Mod Whatever is type of the argument X (scalar or vector, real or complex), the
function result Mod(X) is a real scalar.
• If I is a complex scalar, Mod(I) is a real scalar expressed by:
Overview The results of the modulus functions (ModV, ModC and Mod) are described
in the tables below.
vector
M odC( Vyc ) Vyr Vyi
2 2
Vxr2 Vyr2 Vzr2 Vxr2 Vxi2 Vyr2
Vc = Vr + j Vi M odC( V )
2
zc
V 2
V
j Vxi2 Vyi2 Vzi2
zr zi
...Vyi2 Vzr2 Vzi2
Introduction In the Steady state AC Magnetic applications the flux density (B) is a
complex vector.
Physical To compare the Flux results with the measurement results, we can use one of
meanings of the following methods:
modulus
functions 1st possibility:
The measurement of flux density is carried out in three main directions X, Y,
Z. The result is a vector, defined by the three components: Bx, By, Bz
• The ModC(B) formula of Flux returns a real vector as result whose
components are Bx, By, Bz.
• The formula ModV(ModC(B)) returns a real scalar as result; this is the
modulus of the previously result, i.e. the peak value of the flux density.
2nd possibility:
The measurement of the flux density is carried out along a given direction.
The Flux formulas Mod(B*Vec3(i, j, k)) and ModC(B*Vec3(i, j, k)) return as
result a real scalar that is the peak value of flux density.
(Vec3(i,j,k is the unit vector that provide the measurement direction)
Example:
Introduction This section describes the functions Modulo, Valid, Trapez, Trapezper and a
function of substitution.
These functions are used in formulas with I/O parameters (for the transient
applications or parameterized analysis). These functions can be also used in
other formulas (arithmetic expression in the geometry context, …)
In case of transient applications, these functions allow to define signals with
various form: periodic, pulse, trapezoidal, ...
Operation mode: 1
Create an I/O parameter:
PE = Modulo(TIME, TP) ,
where:
• TIME is the time parameter
• TP is the period value
0 Tp 2Tp T
Notes:
• The arguments X1 or X2 can be omitted.
In this case, X1 is replaced by - and X2 by +.
• The arguments X and X1 and X2 can be formulas.
Operation mode:
Create an I/O parameter: 1
RP(t) = t*Valid(t,10,20)
10 20 t
Operation mode:
Create an I/O parameter:
PE = Trapez(TIME, T1, T2, T3) 1
where:
• TIME is the time parameter
• T1 is the time interval of linear
increase of the function
• T2 is the time interval of constant
T1 T2 T3 T
value of the function
• T3 is the time interval of linear
decrease of the function
2 5 t
Note: The arguments X, X1, X2, X3, X4, X5, X6 and X7 can be formulas.
Operation mode:
Create an I/O parameter:
PE = Trapezper(TIME, A, B, Tp, T1, T2, T3, Td)
Tp
B
Td T
T1 T2 T3
where:
• TIME is the time parameter
• A is the minimal value
• B is the maximal value
• Tp is the period
• T1 is the time interval of linear increase of the function
• T2 is the time interval of constant value of the function
• T3 is the time interval of linear decrease of the function
• Td is the value of initial time delay
0
1 t
2 3 2
T1 T2 T3 T
PEs = PEi[TIME=TIME-Td]
where:
• TIME is the time parameter
• Td is the value of time delay 0 Td T
Initial function:
Fi(t) 2
Fi(t) = Trapez(t,2,0,0)
1
2 t
2 t
4 t
8. Geometry: principles
Introduction This chapter gives the necessary knowledge to describe the geometry: study
domain definition and symmetry or periodicity use, Flux geometry building
module, geometry building tools …
This chapter also presents the general principles of geometry building and
some considerations on the modeling strategy.
2D plane study: It is possible to carry out a 2D plane study if the device is supposed infinitely
characteristics long in one direction.
The geometric representation of the device is carried out in a cross section
plane (normal to this direction).
The device depth is taken into account (at physical level) to compute the
global quantities (force, energy, …)
Example
y
y
x
x
z
real object 2D plane geometry
Example: 2D Two devices are represented in the figure below. These two devices are built
plane study or on the same support (from the geometric point of view), but they do not
3D study? function in the same way (from physical point of view).
3D study In this type of study any geometry can be represented, but within the software
possibilities limits.
Example
y
Z
x
R
z
Choice of The choice of the application (2D or 3D) is carried out at supervisor level
the application (Flux 2D or Flux 3D tabs).
Realized study The study proposed in the Geometry and mesh tutorial is the study of a
variable reluctance speed sensor. Only the geometry model and mesh of the
device are studied in this tutorial.
Studied device The variable reluctance speed sensor consists of a cogged wheel, a magnet
and a coil connected to a measuring resistance.
Functionality The rotation of the target wheel near the tip of the sensor changes the
magnetic flux, creating an analog voltage signal that can be recovered in
probes.
COIL 1+
MAGNET 1 PROBE 1
WHEEL
COIL 1-
COIL 2+
MAGNET 2 PROBE 2
COIL 2-
Realized study The study proposed in the 3D Generic Tutorial of Geometry and Mesh is the
study of a variable reluctance speed sensor. Only the geometry model and
mesh of the device are studied in this tutorial.
Studied device The variable reluctance speed sensor consists of a cogged wheel, a magnet
and a coil connected to a measuring resistance.
Functionality The rotation of the target wheel near the tip of the sensor changes the
magnetic flux, creating an analog voltage signal that can be recovered in
probes.
WHEEL
COIL 1
PROBE 1
MAGNET 1
COIL 2
PROBE 2
MAGNET 2
Introduction This section refers to the definition of the study domain, i.e.:
• the definition of the study domain limits (device model)
• the possibilities of reduction the study domain with respect to the real
device by taking into account the repetitive patterns like periodicities and/or
symmetry planes of the studied device.
Finite element The finite element method is based on the subdivision of the entire study
method domain in a finite number of sub domains of finite size.
Thus, to solve a problem with the finite element method, it is necessary to:
• set limits on the device model, i.e. to define the limits or boundaries of the
domain,
• impose boundary conditions on the edges, i.e., to define the values of the
state variable (potential, temperature) on the boundaries of the domain.
Apparent The finite element method requires limits on the problem region, while the
contradiction electromagnetic phenomena are unlimited.
In other words, open domains cannot be modeled by the finite element
method, because it is impossible to subdivide an infinite domain into a finite
number of finite sub-domains.
Study domain The truncation method consists of closing the study domain with an outer
limits: boundary sufficiently far away from the device so as not to interfere with
truncation the results.
method
The device is placed inside an air–filled box, and infinity is approximated by
a closed and remote truncation boundary. The size of the air-filled box is
adjusted so that the effects of the truncation boundary approximation can be
neglected.
The user must determine the quantity of air to model around the device, i.e.,
he or she must evaluate the distance at which the computed fields become
negligible.
m ( x, y, z ) M ( X, Y, Z )
Eext
Eext_image
Eint
Eint
Use of a To take into account the transformations in the equations, we suppose that :
transformation,
• the finite elements formulations are not modified (the state variable of the
principle
(continued)
initial domain and the state variable of the image domain are equal)
• new types of finite elements (transformed finite elements) are able to model
infinity.
Illustration Transformation
T
M ( X, Y, Z )
Representation m ( x, y, z )
of the exterior
domain
y Inverse Y
transformation
T -1
M (x, y) M (X, Y)
x X
Choice of the Theoretically several space transformations can be used. The transformation
transformation of the real space into an image space must be bijective. It must also have
properties of continuity and derivability on and between the elements, etc.
In practice, the transformations used in the software take into account various
efficiency criteria: quality of the solution obtained for a number of elements
or unknown factors, simplicity of implementation and so on.
Introduction The truncation method consists of closing the study domain with an outer
boundary sufficiently far away from the device so as not to interfere with
the most important results.
At what To evaluate at what distance one should place the boundary, it is necessary to
distance should take into account the studied phenomena.
be placed the Generally we can say that:
border ?
• when the field is strongly confined within the structure (flux directed by
flux concentrators, Faraday cages, capacitor, etc.), a small quantity of air is
sufficient. The boundary can be placed directly on the device outline or near
it.
• when the field spreads strongly outside the structure (EMC, etc.), a large
quantity of air is necessary. The difficulty consists in the estimation of this
quantity.
Example Some rules for the positioning of the boundary for an open boundary
magnetic problem (device surrounded by air) are as follows:
• for a 2D plane study or a 3D study:
the boundary should be placed at a distance ranging between 5 to 10 times
the longest dimension of the device.
• for a 2D axi-symmetric study:
in the direction normal to the revolution axis, the boundary should be
placed at a distance ranging between 10 to 20 times the longest dimension
of the device, the variable r*AZ decreasing slowly in this direction.
Boundary The user must impose boundary conditions on the external boundaries of the
conditions study domain.
Infinite box: In the terminology of the software, using a transformation to model an infinite
definition domain is called the infinite box technique or method.
The exterior domain (infinite) is linked to an image domain (called the
infinite box) through a space transformation.
The use of the infinite box implicitly assumes a null field at infinity.
Infinite box, The transformation used in Flux 3D, said to be in a parallelipipedic layer (not
Flux 3D a skewed surface), is described by two superimposed parallelepipeds or
cylinders. The faces of the exterior parallelepiped or cylinder are the image of
the infinite, where the potential and field are equal to zero.
Infinite box, For Flux 2D, the infinite box is described by two superimposed discs (crown
Flux 2D shaped). The external circle is the image of the infinite.
How to The dimensions of the infinite box are defined by the user. This requires a
choose the certain experience because there is no general rule.
dimensions ?
We can, however, give some advice:
• the distance between the device and the interior surface of the infinite box is
at least equal to the dimension of the device in this direction
• the dimensions of the infinite box are related to the mesh. In Flux 3D, the
number of elements on the thickness of the box must be roughly equal (at
least) to two (second-order elements) or to three (first-order elements).
The mesh and the size of the infinite box must take into account the
phenomena studied, and the computations to be performed as follows:
• if one is interested in computing a global or a local quantity inside the
device, it is unnecessary to refine the mesh of the infinite box;
• if on the contrary, one is interested in computing the field created outside
the device, one should define a box of more significant size and refine the
mesh inside.
The main ideas: In most cases, a preliminary analysis of the device highlights the presence of
decrease the repetitive patterns (periodicities) or symmetry planes.
study domain
Under these conditions, it is possible to reduce the study domain as follows:
• representation of a fraction of the device
• assignment of appropriate boundary conditions on the model boundaries
that reflect the periodicity property or symmetry conditions.
Reduction of It is possible to simplify the device model if it has geometrical and physical
study domain periodicities and/or symmetries at the same time.
and boundary
conditions In other words, it is possible to simplify the device model, when specific
conditions applied on the state variable (potential) allow the representation of
a fraction of the device.
The boundary conditions are physical concepts. These concepts are briefly
illustrated through a magnetic example (magneto-static, transient magnetic or
magneto-harmonic application).
Example: The authorized subdivisions of the model depend on the various types of
different boundary conditions set on the model boundaries.
models
The various possible models are shown in the figures below. The boundary
conditions set on the boundaries in these different configurations are
explained in the following paragraphs.
Periodicity When a device has repetitive patterns, it is possible to model a fraction of the
device (the basic pattern), and to impose appropriate periodicity conditions on
the periodicity planes.
From a physical point of view, periodicity boundary conditions are set via the
state variable (potential).
Introduction This section deals with the operation of the geometry building module:
principle of construction algorithms, authorized shapes, difficulties that may
occur during the construction of geometry, ...
NEW TOOLS: Starting from Flux 12 version, to CAD tools have been added to facilitate the
Sketcher / geometry description, the Sketcher 2D and the Modeler 3D. To consult the
Modeler functionalities of these tools, please consult chapter in the online help
accessible directly from Flux software in the menu Help Help (HTML
Documentation)
Introduction The geometry building module of Flux is of boundary type, which means
that a volume is described by the bordering faces and a face is described by
the bordering lines and a line is described by points.
Outline of the The geometry is created in ascending way: first the points, then the lines, and
different steps finally the faces and the volumes.
The table below gives a first outline of the description mode of the device
geometry.
Step Description
1 Creation of points Manually by the user
2 Creation of lines Manually by the user
3 Identification/construction
Automatically by the software
of faces
4 Identification/construction
Automatically by the software
of volumes
Creation of The points and lines are defined manually (input of point coordinates,
points and lines selection of the ends of the lines, …).
Construction of The faces and the volumes are automatically identified and created
faces and (algorithms of automatic construction).
volumes
(new Principle of automatic construction of faces:
algorithms) • Flux computes all the existing surfaces and it determines to which surfaces
belong the points and the lines (A surface contains faces but it is not limited
and it is defined by three points linked by two lines).
• The automatic creation of faces is then realized with the aid of a technique
of identification of closed outlines.
The principle of the construction of volumes is similar, but more complex,
due to the 3D effect.
Construction of In case of difficulties at automatic construction of faces and volumes, the old
faces and algorithms of automatic construction are available.
volumes
(old algorithms) With the old algorithm, each surface is automatically meshed with very loose
meshes. By grouping the topological surface elements, the software identifies
the faces inside each surface.
The principle of the construction of volumes is similar, but more complex,
due to the 3D effect.
Lines created The shape of line depends on the tool used by Flux to build the geometry. The
by Flux lines created by Flux are as follows:
Lines imported Within the CAD file importation into Flux project, the lines of an unspecified
in Flux shape can be imported.
Faces built by The shape of face depends on the tool used by Flux to build the geometry.
Flux The faces built by Flux are as follows:
Faces imported Within the CAD file importation into Flux project, the faces of an unspecified
in Flux shape can be imported.
Intersections The bordering property of the geometry building module entails the
and interdiction of the intersections of lines, of faces and of lines with faces.
superpositions
The superpositions of line/face type, i.e. lines belonging to a face, or face/face
type, i.e. faces belonging to a face, are authorized.
These different cases are presented below.
Intersections, The intersections and partial or total superpositions of the lines presented in
superpositions the figure below are not authorized and in this case the construction of faces
of lines is not possible.
Lines belonging The lines belonging to faces are authorized. An example is presented in the
to faces next figure.
L2 L6
F2 L10 L4
L8
L9 L5
L3
Intersections of The intersections of line/face type are not authorized, but they do not block
line/face type the construction of faces and volumes.
Faces belonging Faces belonging to faces are authorized. An example is presented in the figure
to faces below.
FACE 1 described by 8 lines
Intersections of The intersections of faces are not authorized and thus the construction of
faces volumes is blocked. An example is presented in the figure below.
Intersections of To avoid the previous problem, it is possible to ignore some faces in the
faces: to avoid moment of volumes building.
problems This method is presented in paragraph 8.3.5 “Another functionality: nature of
points, lines and faces”.
Available Flux owns tools to correct the intersections and superposed entities in
corrections automatic or manual manner, presented in section 9.2 “Geometry importation
(IGES, STEP, DXF, STL, FBD, INTER formats)”
Introduction The algorithms of automatic construction of faces and volumes are powerful,
but difficulties can however arise, being determined:
• either by a «bad» geometrical description: problems of intersection or
superposition of entities, …
• or by numerical problems, ….
Numerical Numerical problems of recognition of faces or volumes can also occur in the
problems of presence of faces characterized by too important numerical waves.
recognition of
faces or What is the problem ?
volumes The algorithm of automatic construction of faces identifies in the first step all
the existing surfaces, then, it determines to which surfaces belong the points
and the lines. A surface is defined by four coefficients computed from the
coordinates of three points. The test of association of points to surfaces is
defined with an error criterion (epsilon tolerance criterion) and it may occur
that the points and lines that the user consider in the same surface will not be
considered in the same surface by the software. In this case, we speak about
significant numerical waves.
This kind of situation may occur when the points are described by a "cascade"
of parameters, of local coordinate systems and of transformations. When the
point coordinates are evaluated in a global coordinate system, there is an
accumulation of numerical errors and the tolerance is then exceeded.
In spite of a very particular care taken for solving these numerical problems,
it may occur, in case of complex geometries, that the automatic construction
of faces or volumes raises difficulties.
Problems There is a certain number of situations where the user may want to modify the
consideration of the entities (points, lines, faces) during the automatic
construction of the faces and/or volumes.
Two examples are given hereafter to illustrate this type of situation.
Example 1 The first example reconsider the problem of intersection between faces
(blocking for building the volumes). This example has already been
presented.
In this example (figure to the right) the
constitutive faces of the internal
parallelepiped intersect the internal circular
face of the torus. The volume of the bar
inside the torus cannot be built.
To avoid this difficulty, it is necessary to
ignore the two circular faces during the
automatic construction of volumes.
Example 2 The second example consists in the numerical modeling of a ship (“La
Fayette” frigate of the French Marine represented in the figure below).
The ship structure is only made up of bars, which are represented and
modeled via the lines (line regions). For this type of structure that is relatively
complex, the use of the algorithm of faces and volumes construction is
expensive, it often takes a long time and it generates many useless faces and
volumes.
To avoid this difficulty, we should place the lines within an air volume
without building the group of faces and volumes that will not be used.
Solution: the To allow the user to modify the consideration of entities when building the
nature attribute faces and volumes, a specific feature (called nature) is attached to the points,
lines and faces.
Return to To ignore the annoying circular faces, the user should modify the nature of
example 1 these faces (“ignored”) and restart the automatic building of volumes. These
faces are then ignored at the geometry level (and also at the mesh level).
Note: These faces are not destroyed. They still exist and are visible on the
screen (in the visibility conditions that allow their visualization).
Return to To avoid the building of faces and volumes of the ship, the user should
example 2 modify the nature of the points and lines of the ship (“in air”) and then start
the construction of faces and volumes. Thus, a single group of faces
(boundaries of the study domain) and one volume (air volume that includes
the group of lines and faces) will be built.
The points and the lines:
• are not taken into account during the construction of faces and volumes
• are taken into account during the mesh building and assignment of line
regions
The simplified geometry in a wire-mesh shape of the “La Fayette” frigate
consists of about 3 300 points and 8 556 lines on which the (“in air”) nature
has been imposed. These points and lines are placed within an air volume
surrounded by the infinite box (24 faces and 7 volumes).
Introduction This section deals with the assisting tools for geometry building: parameter
setting, tools for rapid construction of particular patterns, ...
8.4.1. Parameterization
Introduction The parameterization of the geometry is one of the strong points of the
geometry building module.
It is possible to parameterize:
• dimensions of workpieces
• relative displacements of pieces (variable air-gap, …).
Example The example refers to the study of a contactor, concerning the force acting
on the moving part for various values of the air-gap.
The fixed part is defined in a local coordinate system REP1 of center (0, 0,
0), and the moving part in a local coordinate system REP2 of center (0, 0,
AIR-GAP). AIR-GAP is a parameter whose value is equal to the air-gap
thickness.
To study various positions of the moving part, and thus various values of
the air-gap, it is enough to modify the value of the corresponding parameter
(AIR-GAP) and to treat the corresponding case.
Principle and Each time that a geometrical entity is modified, all the entities depending on
limits this geometrical entity are automatically reevaluated through the database
tools.
Modifying a parameter or a coordinate system entails the modification of the
points, then of the lines, and then of the faces and volumes that are attached to
this parameter.
Important: the coherence of the topology (intersection, superposition, …)
is not verified by the software. This verification is a user task.
In the previous example, a null value of the AIR-GAP parameter leads to a
modification of the geometry topology that can not be realized due to
superposed points and lines. This limit case cannot be treated by
parameterization.
Advice Defining local coordinate systems using a first coordinate system allows the
user to define a "father coordinate system", to which is attached a series of
"children coordinate systems". By modifying the "father coordinate system"
the user will modify the series of "children coordinate systems" attached to
this first coordinate system and thus, the group of points, lines, …attached to
it.
The user can also define a coordinate system in another coordinate system,
and the latter defined in a third coordinate system, ... This description of
intermediary coordinate systems “in cascade” can be useful, especially in case
of multiple rotations. However, in this case, the risk of numerical problems
for the algorithms of identification and construction of faces is more
important.
Propagation, The basic idea is to automatically generate new objects, based on the objects
extrusion: already created (points, lines, faces) by using transformations; transformations
definition are geometrical functions of translation, rotation, or affinity type.
At the vocabulary level, we speak about propagation when the created objects
(images) are not connected to the basic objects (sources) and about extrusion
when these objects are connected among them by connection elements. The
connection elements can be of rectilinear or curvilinear type (straight segments
or circle arcs).
These concepts are illustrated in the example below.
Example In the figure below, the basic face, a rectangle, is propagated/extruded using a
transformation of vectorial translation type.
• The propagation automatically generates 2 new rectangles (4 points and 4
lines).
• The rectilinear extrusion automatically generates 2 new rectangles (4 points
and 4 lines) as well as 8 connection elements (8 straight lines).
Introduction This section presents the general steps for building the device geometry
Outline An outline of the geometry building process is presented in the table below.
The different steps are detailed in the following blocks.
Step Description
1 Device analysis
2 Definition of the study domain
3 Preparation of the geometric construction tools
4 Ascending construction of the geometry
5 Regrouping in regions
Device analysis The first step of the geometry building process is the device analysis:
(1)
• to define the study domain, and
• to prepare the geometric description
The questions that could arise at this level, before starting the description
itself, are grouped in the tables below (non exhaustive list).
Next steps The other steps of the geometry building process are described in the table
(2, 3, 4, 5) below.
9. Mesh: principles
Introduction This chapter presents necessary information for mesh construction using
Flux: presentation and definition of the meshing process, different mesh
generators and different setting tools …
It also presents general operations of the mesh construction (choice of mesh
generator, mesh adjustment …) and examines specific mesh utilization (skin
effect, mechanical sets …).
Reading advice The user who wishes to read targeted information on automatic mesh can
consult section « 9.3.6 Aided mesh».
Introduction This section contains the definition of a mesh and basic rules to apply in order
to carry out an optimal mesh.
Definition The meshing process consists of dividing the study domain into mesh
elements.
The summit of a mesh element is called a node.
Mesh or elements are called:
• volume elements, for a volume domain
• surface elements, for a surface domain
• line elements, for a line domain
Meshing and The meshing process is a key step in the finite element method The finite
finite elements element method calculates and gives an approximation of the state variables
on each node of the mesh, (scalar or vector potentials, temperature,…) and of
the fields which are derived from (magnetic field and induction, electric field,
flux thermal density,…)
Mesh and The mesh is an important factor of the result quality. Thus, the quality of the
results solution depends on:
• the number and the dimensions of the finite elements,
• the interpolation functions in each element, which can be 1st or 2nd order
polynomial functions,
• the continuity conditions imposed on the sub-domain boundaries.
Mesh elements The different forms of the mesh elements are presented in the table below.
form
Tetrahedron
Triangle
Pentahedron
Hexahedron
Rectangle
Pyramid
face
Elements of 1st Different types of finite elements are available to the user: these are called 1st
and 2nd order order elements or 2nd order elements.
Specific information about these elements is presented in the following table.
Field Using 1st order elements: the potentials are approximated linearly and the
calculation: 1st fields derived from the potentials are constant.
and 2nd order Using 2nd order elements: the potentials are approximated quadratically and
approach the fields are approximated linearly.
Note: more memory is needed to solve a problem meshed with second order
elements but the quality of the results is more precise.
Triangle
> 15°
Quadrangle
L / l < 5 ; > 20°
• The mesh should not be unnecessarily fine. A fine mesh requires a longer
computation time. One may need to find a compromise between an
accurate geometrical representation of the study domain and a
reasonable computation time.
• Mesh elements located close to the study domain limits (i.e. close to the
Infinite box) can be more relaxed.
• To mesh a complex shaped domain is an iterative process. One should try to
utilize the available mesh tools in order to obtain a satisfying result.
Mesh and the It is necessary to adapt the mesh to the physics of the problem, as much as
physics of the possible. The mesh refinement depends on the geometrical constraints, e.g.,
problem the mesh of a very thin region, but also on the physical constraints of the
problem, such as a high variation in the permeability within an element, skin
depth, etc.
As a general rule, a strong variation of the state variable requires the use
of smaller elements.
When one has some idea about the final result, he can decide on a relaxed
mesh in certain regions and a fine mesh in others. Analysis of the
computation results may lead one to restart the computation with a new and
better-adapted mesh.
Thus, one should always consider the mesh while the geometry is being
constructed.
Examples of Different physics criteria may be used to validate a mesh. One can verify the
criteria to following points:
validate a mesh • Once solved, if the field lines form cracks in the same region, the
neighboring elements are too large.
• On a rotating machine, if the reaction force is different from the action
force, the mesh on the air-gap region should be refined for more accurate
precision.
• With circuit equations, if the current through a coil computed by several
methods differs significantly, the mesh on the coil region should be
refined.
• The mesh of a solid conductor must contain at least two element in the skin
depth (cf. § 9.5.5. Mesh of solid conductor with skin effect).
Introduction This section presents the different mesh generators available in Flux and their
use.
A mesh generator is a tool that subdivides the geometry into finite elements.
A mesh generator permits the user to define the shape of the elements used
to mesh the different sub-domains of the project.
Definition This mesh generator, based on the Delaunay method, is the basic mesh
generator in Flux.
It permits the meshing :
• in triangles, of any face, starting from the meshed lines of the face contour
• in tetrahedrons, of any volume, starting from the meshed faces of the
volume.
The mesh refinement is controlled by the node distribution on the boundary
contours.
Use This mesh can be used in all situations (complex shapes, etc.). It is robust,
simple and fast to use. It ensures low distortion of triangles and tetrahedrons.
Limitation This mesh generator generates more elements than a mapped mesh generator.
Triangle Tetrahedron
Illustration The meshing of a face and of a volume by means of a mapped mesh generator
is illustrated in the figure below.
Example
Rectangle, “Brick”
Quadrangle Hexahedron
Note: it is possible to use a mapped mesh generator on a face with more than four
lines. It is necessary to define the structural boundary of the face by identifying the
four principal points of the face.
P1
P2
P4 P3
Use This mesh generator is particularly useful to mesh thin regions (air gaps, thin
laminations, skin depth).
It permits the reduction of mesh disturbance effects (noise) on results by
using the symmetries of the device.
It is economic (reduction of the number of nodes).
Limitation This mesh generator takes longer and more difficult to implement than the
automatic mesh generator.
3D specificity The mapped mesh generator for volumes is less powerful than the mapped
mesh generator for faces. The geometry of the volume to be meshed must be
close to the geometry of a cube in order that the mesh quality is good.
Note that a degradation of the mesh can be observed in cylindrical volumes.
The mapped mesh generator does not accept volumes having cylindrical faces
of 180 degrees or more. If the elements are too fine, the mesh may become
unusable for the computational process..
2D Examples Examples of faces meshed with the mapped mesh generator are presented
below.
3D example Some examples of volumes meshed with the mapped mesh generator are
presented below.
Definition The linked mesh generator allows the user to impose the same meshing on all
the linked faces by means of a geometric transformation. This means that the
meshing of the base face is copied on the linked faces.
Illustration The meshing of three faces by means of a linked mesh generator is illustrated
in the figure below.
Definition The extrusive mesh generator permits the meshing in regular layers of the
faces or of the volumes obtained by extrusion.
A base meshed line is « shifted » along a meshed path, following a simple
motion of translation or rotation. Thus, a meshed face in quadrangles is
generated. The same method is used for the extrusive meshing of volumes. In
this case, a base meshed surface is « shifted ».
The obtained elements of the extrusive mesh are :
• Quadrangles, on faces
• prisms or hexahedrons on volumes, following the type of meshing of the
base faces (triangles or rectangles)
Quadrilateral
rectangle
The mesh is potentially anisotropic and the volume elements are prisms or
hexahedrons, depending on the mesh elements of the original face (triangles or
rectangles)
Application The mesh generator is particularly interesting when meshing thin regions (air
gaps, thin laminations, skin depth).
It reduces the mesh disturbance effect (noise) on results using the symmetries
of the device.
It has an economic effect by reducing the number of nodes necessary to
construct the mesh.
Restriction This mesh generator takes longer and is more difficult to implement than the
automatic mesh generator.
2D specificity Originally developed to mesh volumes, the extrusive mesh generator can also
be assigned to faces.
To obtain an extrusive mesh on faces, a prerequisite is that the face be
obtained by extrusion with an existing transformation (rectilinear extrusion by
translation, positive ratio affinity, or curvilinear extrusion by rotation)
Extrusive mesh of a
quarter circle. Extrusion
from the base line by a
rotation of 90°.
Example Let us consider device below which consists of eight volumes, meshed by
extrusion (extrusion by translation for the first four volumes and extrusion by
rotation for the other four volumes).
Two different extrusive meshes have
been carried out, one with a triangular
base, the other with a rectangular
base.
On these meshes, one can notice :
• the capacity to mesh while forming
a cycle.
• an extrusive mesh in rotation with
specific elements near the axis
(prisms, tetrahedrons, pyramids).
• the direction of extrusion of low
importance
Definition The user can choose this mesh generator (absence of meshing), if they wish
not to mesh an internal zone in the geometry.
Example: simulate a conductor with constant value in an electrostatic field.
Example In the example below, a NO_MESH mesh generator type is allotted to face 5.
Use This mesh generator allows the user to reduce the number of nodes.
This choice is made from case to case, and it depends on the constraints
connected to the modelled device.
Managing the The meshing operation must observe a certain number of constraints
constraints connected with the modeled device.
Automatic For an automatic mesh, the software completely ensures that the geometrical
mesh interfaces are respected.
To accomplish this, the algorithm of the automatic mesh generator inserts
additional nodes on the faces or inside the volumes, so as to respect the node
density information assigned to the points and lines.
Mixed mesh With a mixed mesh, the user has more options to adapt the mesh to the
physics of the problem.
On the other hand, they can face certain limitations of the software (in 3D) ;
the conformity of the meshing at the level of the geometric interfaces can
sometimes be difficult to carry out by the software.
Mixed mesh: When modeling electro technical devices, mesh the air and volumes with
examples of use complex topology with the automatic mesh generator, while the more
sensitive parts (magnetic circuit, air-gap, skin depth, etc.) are generally
meshed with the mapped or the extrusive mesh generator.
When modeling rotating machines, it is advisable to generate an identical
mesh on the faces (slots of machines, etc.), with the linked mesh generator.
Constraint of The mesh must conform, i.e. there must be a “continuity” or matching of
mesh elements on the interfaces between different domains.
conformity
If it is common to mix triangular and rectangular elements in 2D, mixing
hexahedral and tetrahedral elements in 3D can pose certain problems.
In 3D, the conformity with the interface between the meshed domains with
hexahedrons or prisms, and the meshed domains with tetrahedrons is ensured
by the automatic insertion of pyramid elements.
An example is represented in the figure below.
This situation appears when a mapped meshed volume is in contact with a linked
meshed volume. The non conformity is forbidden in Flux
Algorithm for To ensure conformity of the mesh, Flux uses an algorithm to repair non-
repairs of non- conformities between hexahedrons and tetrahedrons (or between rectangular
conformities faces, prism faces and tetrahedrons) by inserting pyramids.
In the presence of triangular and rectangular surface elements, Flux generates
pyramids, starting with two triangular elements.
Two cases may occur:
• The two tetrahedrons attached to the two triangular surface elements have
the same vertex node. In this case, the tetrahedrons can be connected to
create a pyramid.
• If the two tetrahedrons do not have the same vertex node, Flux will insert a
new node in an appropriate position.
Nouveau noeud
The insertion of pyramids is not always possible, and there are a certain
number of limitations to the algorithm when repairing non-conformities.
First limitation If the rectangular mesh is very distorted, the triangular elements belonging to
tetrahedrons may cut the rectangular elements. This case is illustrated in the
figure below.
Second The second limitation is less clear. To ensure the conformity of the mesh by
limitation inserting pyramids, Flux adds a certain number of nodes. However, this
algorithm does not work properly in the presence of sharp angles. This
limitation is illustrated by the example below.
A simple device consisting of 3 hexahedral volumes is shown in the following
figure:
• two external volumes are meshed using the mapped mesh generator
• the inner volume is meshed using the automatic mesh generator
In some cases, the volume meshing based on the advancing front method can be a
solution in order to favor the creation of nodes and to permit the insertion of
pyramids, (see Algorithms of volume meshing).
Introduction The definition of the mesh elements shape is only one part of the necessary
information needed to generate the mesh. It is also necessary to determine the
mesh elements size, also called the weight of nodes. There is a weight
associated to each mesh node. This weight determines the distance between
two neighboring elements.
The object of this section is to provide to the user the tools for adjusting the
mesh size of the device.
The user will also find information on Aided mesh which permits
to use these tools in a global manner over the assembly of a project.
These various tools interact, and the user will also find certain priority rules
between the different adjustments in this section.
Reading advice The user wishing to obtain a satisfactory and time efficient automatic mesh
technique can consult part « 9.3.6 Aided mesh ».
Introduction To adjust the mesh, the user can set the node density in the neighborhood of
the points.
Information related to the node density next to selected points is assigned to
the points; we use the phrase “mesh adjustment via the points” or
intermediate of mesh points.
Principle of The principle of “mesh adjustment via the points” is illustrated in the example
adjustment “via below.
the points”
1 mm 5 mm
Principle To adjust the mesh, the user can set the number and the distribution of the
nodes on the lines.
The information regarding the number and the distribution of the nodes on
the lines is carried by the lines, this is called meshing adjustment
« via the lines » or by means of linear discretizations.
• the user imposes a number of elements and distribution on the line: 10 line
elements, equidistant nodes.
• the program divides the line according to this information.
Types of linear The different types of linear discretization are explained in the table below:
discretization
Introduction Adjustment of the deflection permits cutting the meshing elements of the
curved objects in a project :
• cones, cylinders, distorted faces … (for the faces in 3D)
• arcs of circle, left lines (for the lines)
Principle The division is illustrated in the figure below. The arc of circle is cut into a
limit set by the user.
Definition For a line element, the criterion of deflection corresponds to the distance d
measured between the centre of the line element and its projection on to the
curved line.
Cutting by Schematically, on a curve line, for each linear element it should be checked
deflection that the deflection should be inferior to the maximal value of deflection
defined during the adjustment by the user. If this condition is not checked, our
arc is cut into two and so on, up to the attainment of the maximal deflection
distance.
d (1)
d d (2)
Types of The meshing by deflection can be applied to lines and to faces. The value of
deflection the deflection can be relative or absolute. The different types of deflection in
function of their assignment are presented in the following table:
Aided mesh For each project, the software creates an AIDED_MESHLINE instance (for the
deflection on non flat lines) and an AIDED MESHGENERATOR (for the
deflection on non flat faces in 3D) dedicated to the Aided mesh.
Principle Relaxation permits to create the biggest possible good quality elements in
function of the size of the geometric entities (lines, faces or volumes).
The mesh will be dense for smaller size entities and more relaxed for bigger
size entities.
Repartition by To carry out the mesh relaxation, Flux modifies the weight of each
relaxation consecutive mesh node to progressively pass from a small element to a larger
one.
In the figure below, the weights on line (1) are smaller and influence the
weight on line (2).
The stronger the relaxation is, the faster the weights of line (2) will grow.
Operation On a first step, larger weights are attributed to each node of the mesh. A
relaxation algorithm facilitates the distribution of the node weights according
to the geometry configuration.
The smaller weights influence the bigger weights.
The stronger the relaxation is, the more important the difference is between
the biggest and the smallest weight . The mesh is then strongly relaxed in the
larger zones.
Aided mesh For each project, the software creates an AIDED_RELAXLINE instance (for the
relaxation on the lines), an AIDED RELAXFACE (for the relaxation on the
faces) and an AIDED RELAXVOLUME (for the relaxation on the volumes in 3D)
dedicated to the Aided mesh.
Principle Shading permits the user to take into account the proximity between two
geometric objects to define the mesh.
Note on When two geometric objects (generally two non-adjoining volumes), are
shading close to one another, shading will influence the size of the nodes in function
at the proximity of the two entities.
Example In the example below, volumes (2) and (3) are very close to volume (1) but
they do not touch. The zones where the volumes are almost in contact will be
meshed in a denser manner.
Aided mesh For each 3D project, the software creates an AIDED_SHADOWFACE instance
dedicated to the Aided mesh.
Definition The Aided mesh means the use of the previously described adjusting tools, in a
global manner over the assembly of a project.
Indeed, the adjustment of the mesh size can be done :
• either locally :
adjustment information is created by the user and then allotted manually on
the geometric entities of the project (points, lines, faces,)
• or globally :
dynamic* adjustment information is created and automatically carried by the
assembly of the geometric entities of the project (points, lines, faces, …)
* dynamic means here that the information for adjustment is directly linked to the
dimensions of the entities on which they depend.
Description When the Aided mesh is activated, the software carries out the process
presented in the table below.
Stage Description
1 Control of points :
• allotting the entity AIDED_MESHPOINT at all the free points of
the project. By default this discretization is of the dynamic
type (a type specific to the Aided mesh).
2 Control of deflection on the curve lines and faces :
• allotting the entity AIDED_MESH GENERATOR
on all the free curve faces (3D)
• allotting the entity AIDED_MESHLINE
on all the free curve lines
3 Control of relaxation :
• allotting the entity AIDED_RELAXLINE
on all the free lines
• allotting the entity AIDED_RELAXFACE
on all the free lines
• allotting the entity AIDED_RELAXVOLUME
on all the free volumes (3D)
4 Control of shading on the volumes (3D) :
• allotting the entity AIDED_SHADOWFACE
on all the free faces (3D)
Global The Aided mesh must permit to rapidly obtain an automatic meshing of
adjustment satisfactory quality that respects the geometry of the device.
The various tools are « preadjusted » with by default values. After a first
meshing, the user can « play » with the various parameters up to the moment
they obtain the desired result.
Use The Aided mesh is advised for meshing of all the projects in 2D.
It is particularly convenient :
• for the applications of electrostatic type (many distorted faces, and
proximity of elements having linear physical properties)
• for the mesh of a motor in 2D (one mesh element in the airgap with regular
elements, regular mesh for curves, …)
Limitations • The Aided mesh combines the various adjustment tools (deflection,
relaxation, shading) on the entities of the project. It is yet possible to have
an overmeshing in certain zones of the domain.
• The Aided mesh respects the constraints connected to the geometry of the
device without taking into consideration the physical properties of the
studied device. The user must control the constraints connected to the
physical aspect and adapt their adjustments to the studied physical
phenomena (thin air gap, thickness of skin, …)
Reading advice The meshing procedure with the Aided mesh is described to the user in
module 9.4.1 The mesh process (Aided mesh).
Introduction The adjustment tools complete each other and interact. With a view to avoid
the conflicts between the various adjustments or to limit the meshing
overcharges, certain priority rules are established in the software.
Interaction The table below describes the order of the operations made by Flux during the
between meshing stages carried out by the user (mesh lines mesh faces mesh
adjustments volumes) :
Stage Description
1 Mesh lines :
1a The mesh points and mesh lines impose the density of the mesh on
the points and lines.
1b The line relaxations impose a relaxation of the meshing of the
lines. This relaxation is applied at the interior of the domain as far
as possible: If a line carries a discretization line or if it carries a
distribution of nodes that cannot leave space to a relaxation, then
there is no relaxation.
2 Mesh face :
2a The mesh generators impose the meshing on the faces.
2b The surface relaxation imposes a relaxation on the face meshing.
This relaxation is applied at the interior of the domain as far as
possible: if a face carries a mesh generator different from the
Automatic type mesh generator, then there is no relaxation.
2c Shadowing overmeshes the close faces if necessary.
Remark: the surface meshing can impact on the linear meshing.
3 Mesh volume :
3a The mesh generator imposes the meshing in the volumes.
3b The volume relaxations impose a relaxation of the meshing of
volumes. This relaxation is applied at the interior of the domain as
far as possible: if a volume carries an extruded meshing, then there
is no relaxation.
Priorities of When mesh information is assigned to both lines and points, mesh lines have
lines over priority over mesh points.
points
Example
• Points P1, P2, P3 and P4: length of line P4
elements next to points: 2 mm
• Line Lz: geometric progression of the line
elements on the line:
Lz Ly P3
• minimum distance: 1 mm
• ratio : 1.5
• Result:
• on line Lx and Ly: division based on P1,
P1
P2 and P3 points information
• on line Lz: division base on the line
Lx
information
P2
Priority of local The adjustment instances created and assigned locally by the user have
adjustment priority over the instances controlled by the Aided mesh. The assistance does
over global not act on the instances assigned by the user, it acts only over
adjustment « free » entities.
Introduction The mesh strategy is carried out in function of problem. This section proposes
two approaches to the meshing of a project.
The user who wishes a rapid meshing by taking into consideration of the
geometric constraints can consult the first section: § The meshing process
(Aided mesh).
The user who wishes to control and to personalize the meshing more by
means of different cutting and adjusting tools can consult the second section:
The process of meshing (advanced user).
Introduction The user can carry out a rapid and good quality meshing taking into account
the geometric constraints with the Aided mesh.
Aided mesh The Aided mesh permits the user to adjust the assembly of a project with the
taking into consideration of certain geometric constraints (lines, non flat
faces, narrow faces, or proximal, but not belonging to the same geometry) by
means of deflection, relaxation and shading tools (see also « 9.3.6 Aided
mesh »).
The table below illustrates possible mesh strategies the user may select to
mesh a project.
Stage Description
1 Mesh
The result of meshing appears on screen
2 If the meshing is not satisfactory, edit the Aided mesh and modify
the values
3 Return to stage 1
4 • If the mesh is not satisfactory after several repetitions, add
information locally to the mesh by means of the adjustment tools
5 Mesh
6 If necessary, return to stage 4
Meshing The table below illustrates possible mesh strategies the user may select in
order to mesh a project using various tools (mesh generators and adjustments)
available in Flux.
Stage Description
1 Preliminary consideration: choose a mesh type
• automatic mesh (single mesh generator)
• mixed mesh (multiple mesh generators)
2 If mixed mesh
Then define different areas
• with the use of generic mesh generator
• or creation of user mesh generator
for different areas
3 Preadjustment of meshing
Reflection on the adjustment mode
• global with the Aided mesh (9.3.6 Aided mesh)
• and/or local (user adjustments)
4 Mesh construction (creation of line, surface, volume elements)
5 If necessary, readjustment of various adjustments and return to
stage 4
6 Choice of the type of elements: 1st order or 2nd order
Mesh strategy Phases 1 and 3 of the meshing process are consideration phases on the choice
(1 and 3) of mesh generators and the adjustment mode. For assistance making this
choice, see the sections on mesh generators (see 9.2.6 Fully automatic
meshing or mixed meshing: comparison) and the adjustment tools (see 9.3
Adjustments (mesh size).
Creation, mesh This stage concerns the possible creation of user mesh generators and
generator assignment of mesh generators to the different areas.
assignment (2)
In the case of mixed mesh, the user can:
• use the « generic mesh generators » :
automatic (with or without deflection control), adjusted or without
meshing
• or use his own mesh generators (linked or extrusion mesh generators)
Important:
In the geometry context, if the building options “with mesh” are activated during the
propagation and/or extrusion phases, linked and/or extrusive mesh generators are
automatically created.
Adjustment of
meshing
Meshing of lines
Meshing of faces
Meshing of volumes
Choice of the This last phase of mesh process is specific to volume mesh. For 2D mesh,
type of elements created are automatically 2nd order elements.
elements (6) In general, generating second order element is a better strategy, however it
could be useful, in certain configuration to solve a problem with first order
element (computation time, memory size problem,…).
Mesh and The user generally proceeds with successive steps and it is possible to repeat
geometry several building geometry processes and several mesh construction processes.
Thereby going back and forth between geometry and mesh contexts (see
examples hereafter). For instance,
• When modeling a motor, the user can create the geometry of a slot, assign
mesh information, and propagate the slot with mesh information already
defined.
• The mesh of an air gap can be facilitated by adding points and lines that are
useless to the build regions.
This is illustrated in the figure below.
geometric
distribution
of nodes
Remark :in order not to be constrained to create supplementary points and lines, the
user can resort to Aided mesh (see 9.3.6 Aided mesh). Consideration of the
geometry will refine the mesh in the neighborhood of the rectangle, and the
relaxation will lighten up the mesh as one moves away from the rectangle.
Introduction Various parameters for automatic mesh are used by Flux. The aim of this
section is to give the user the methods that can help them make choices as to
the modify the options of the automatic mesh generator.
The default options are adapted to most situations. The modification of these options
is considered an advanced user utilization of Flux.
Goal The mesh quality partly depends on regular repartitions of the mesh elements.
The bubble movement technique (bubble packing) permits the regularization
on face mesh with the automatic mesh generator.
Bubble packing With this method, the triangles or tetrahedrons tops are adjusted by certain
method charged particles, which are interacting by means of attractive and repulsive
forces. The balanced position of these particles forms an optimal mesh
configuration.
Transformation of mesh
Initial mesh
into bubbles
Transformation of
Final mesh
bubbles into mesh
Use The bubble packing method is applied only on faces meshed with an
automatic mesh generator in 2D and 3D.
Advantages / The bubble packing method applied to the face mesh (2D/3D) has the
disadvantages following advantages and disadvantages:
• advantages:
• automatic improvement of the mesh regularity on the faces
• shortcomings:
• more mesh
• longer meshing time
Introduction Flux provides three generators for automatic meshing of volumes: the Delaunay
mesher, the Netgen mesher and the MeshGems mesher.
The three meshers are presented in the blocks below.
Delaunay The mesh generation by the Delaunay mesher is carried out in two phases, as
mesher: process presented in the table and figure below.
Stage Description
1 Generation of a boundary mesh
2 Insertion of internal nodes into border mesh elements
Delaunay MeshGems
Characteristics • This mesher is the historical mesher • Respects the surface mesh (not node
of Flux insertion)
• Potentially it rebuild the surface • Robust mesher=> tested by other
mesh to construct a mesh of volume simulation tools
Advantages / • Relaxation may be important =>Less • Low relaxation => Increase the
disadvantages nodes and less mesh elements number of nodes and the number of
• More time to mesh the device mesh elements
• Difficulty with the extrusive mesh • Low time to mesh the device with
good quality of the mesh compared to
Delaunay
• Suitable for mixed mesh
Netgen mesher: The mesh generation by the Netgen mesher is an iterative process that is carried
process out in several phases, as presented in the table and figure below.
Stage Description
1 Initialization of front on the domain boundary
2 The front becomes the border between the meshed region and the
non-meshed region
3 At each iteration:
• covering of the domain by the front (creation of one layer of
elements)
• actualization of the domain front
4 Stop the process when the domain is entirely meshed
Meshing Independent of the choice of mesher, Flux also provides an algorithm for the
optimization optimization of the automatic volume meshing.
The optimization enables the user to:
• improve the mesh quality
• reduce the number of elements
Optimization of The mesh optimization is an iterative process of partition and/or fusion of the
the mesh volume elements in function by certain predefined criteria. The overall goal is the
process improvement of mesh quality and the reduction of the number of elements.
The number of iterations influences. the quality of the result and the process time:
• Optimization of an average quality and rapid time: one iteration
• Optimization of a good quality and slow time: five iterations.
The default number of iterations is set to 3, a value permitting a good quality/time
ratio.
Introduction To generate a « good » meshing, there are meshing tricks and rules that
facilitate the meshing of special geometries.
Fixed set
Sliding Sliding
surface surface
Non-conformity To permit sliding, the mechanical sets (mobile or fixed) are separated by
of meshing means of a « duplication» of the geometric and meshing entities.
Moreover, there is no remeshing of the fixed and mobile mechanical sets
from one position to another.
Consequently, when the part moves, the nodes of the meshing elements
located on one side and on the other side of the sliding surface are no longer
necessarily face to face. This is called non-conformity of the mesh. This is
illustrated in the figure below.
Example : non-conformity of meshing over the sliding surface for a rotation motion
Position 0°: The mesh nodes of the fixed Position 35°: The mesh nodes of the fixed
and moving mechanical sets are face to and moving mechanical sets are not face
face at the level of the sliding surface. to face at the level of the sliding surface.
“Mesh The technique used in order to « connect the meshing » on one side and on
connection” the other of the sliding surface consists in an interpolation of the node values
technique of the face to face surface elements by a linear combination with a view to
ensure the continuity of the state variable.
Acceptable It is therefore important that the size of the surface elements that are face to
mesh face should be approximately the same, irrespective of the amplitude of the
displacement. This is illustrated in the figures below.
Recommended
mesh
Non-
recommended
mesh(inhomogene
ous density of
nodes along the
two
circumferences)
Mesh of skin To obtain accurate results in skin effect problems (eddy currents, etc.), at
depth: rules to least two elements should be used on the skin depth.
follow
The state variable actually has an exponential variation on the skin depth, but
within an element, Flux 2D uses a parabolic approximation. Thus, the size of
elements should be small enough that the arc of parabola can be assimilated
to an exponential arc.
Computation of In magneto-harmonic problems with linear materials, the skin depth for eddy
skin depth: currents can be expressed as follows:
recall
f
where f is the frequency, the resistivity and the magnetic permeability.
Choosing the To mesh the skin depth, elements of rectangular or hexahedral type are
mesh generator recommended, that is:
• the mapped mesh generator (2D, 3D)
• an extruded mesh generator with a mapped base (3D)
The rest of the study domain is meshed using the automatic mesh generator.
2D Example A 2D example of mesh on the skin depth is shown in the figure below.
magnetic circuit
inductor
= skin depth
3D Example A 3D example of mesh on the skin depth is shown in the figure below.
The most critical volumes (the volumes corresponding to the skin depth of the
bar) are meshed using the extrusive mesh generator. The rest of the study
domain is meshed using the automatic mesh generator (inside the bar and the
surrounding air).
Introduction FLUX software has the ability to communicate with other software packages
and to carry out the transfer of data from CAD tools to the Finite Element
(FE) analysis tools.
This chapter presents the available choices for the different processes of
importation with Flux:
• import of geometry starting from geometric files
• import of geometry starting from mesh files
• import “Advanced Mode”
• in addition, the associated tools for simplification and repair of imported
data are described
Item of Note The import of a CAD geometry file into FLUX takes into account projects
(reminder) possessing complex geometries (e.g. presenting twisted surfaces). These
types of surfaces cannot be generated directly using the available tools in
FLUX.
Introduction This section presents a general point of view concerning the authorized
formats for importation and the principle of conversion.
Mesh Import Mesh import consists of importing the mesh which results in the creation of
geometry in the FLUX environment.
Import formats The following table summarizes the different file formats accepted in Flux,
associated with the type of import.
Supported The following table summurize the versions supported by ACIS R22 version
versions (geometry kernel) for different import formats.
Type of For importation Flux accepts only files in text format. The binary files are not
accepted file accepted.
Attention: It is not possible to import an assembly file consisting of several IGS files
(*_ASM.IGS).
Multiple Multiple importations are available. Flux is able to import the files with
importation different formats (DXF, STL, etc) in the same project.
Introduction This section deals with the importation of geometry starting from geometry
files.
The import of a CAD geometry in an FE (finite elements) project is an
operation consisting of turning the data from the CAD type (in a specified
format) into data of the FE type.
Note: the import selection ,“advanced mode,” integrates a certain number of repairs
before the conversion of data (see § Import of geometry called « advanced
mode »
Formats
The following formats enable geometry import :
Question It is important to note that in Flux, the user should build the geometry without
defects. A defect, in the Flux sense, is an error of the geometrical construction
of intersection of lines type, of superposition of points type, etc.
If there are geometric defects in the origin file (intersection of lines,
superimposed points, etc.), these can hinder and also block the process of
geometry building: impossibility of building faces and/or volumes.
So, after the geometry importation, it is necessary that complementary actions
should be taken in order to search (identify) and correct the geometric
defects.
Importation The process of importation is a process involving the three stages briefly
process describing in the table below and detailed in the following paragraphs.
Stage Description
1 Conversion with options
2 Geometry checking / search geometric defects
3 Correction of geometric defects
and/or
geometry simplification
Introduction The first stage of importation is the stage of conversion of the imported
geometry into the Flux format.
Operation The principle of operation of the importation is as follows: all the geometric
principle entities of the initial file (specific to the standard and proper formats) are
converted into the Flux format (geometric entities of type Point, Line, Face
and Volume...) in the final file.
Conversion of The entities of the initial file are read and converted into the Flux entities. The
entities summary table is presented below.
Conversion of
entities
(continued)
Options for To perform the data conversion, different options are available to the user.
conversion
There are two types of options:
• general options, available for all formats
• choice of a coordinate system: locates the imported geometry in the Flux
project
• choice of the unit: chooses the units of the device dimensions
• choice of precision: defines the minimal distance that enables the
distinction of two points
• particular options, specific to the format
Only the general options are described in this section.
Introduction The second stage is geometry checking. This stage is the stage of research
(identification) of the geometric defects; correction will be carried out in the
following stage (stage 3).
Before describing the modes of defects search, the different defect types are
described in the following blocks.
Geometric The geometric defects can hinder or block the geometry building process.
defects
The following can be therefore discerned:
• blocking defects (intersections and superimposed entities):
these defects must be identified and corrected before building the geometry
in Flux.
• non-blocking defects (very small lines and faces, wires not closed, …):
these defects do not impede the geometry building in Flux, but they can
influence, in a negative manner, the quality of the geometry building and/or
the meshing
The geometric defects are presented in the table below.
*In the next figure, the faces building after the importation of
the geometry will generate the intersection of the faces. This
type of defect is not identified by Flux in the Geometric defect
P1
entity, but it is blocking for the further volumes building. The P2
connecting the points P1 and P2 by a new line before the faces
building enables to avoid the intersection of the faces.
Defects The research of the geometric defects can be carried out in two ways:
research modes • for the assembly of types of defects (described as global checking of the
geometry)
• by type of defect (described as research by type)
Research result Whatever the research mode, the result is the following:
• Flux creates a geometric entity of the Geometric defect type for each
defect found (this entity contains the information about the defect
localization: number of concerned points, lines or faces)
• Flux highlights this entity in a graphic window (specific display)
Introduction The third stage is the stage of correction of geometric defects and/or
geometry simplification.
Correction The principle of correction proposed by Flux for the various types of
principle geometric defects is presented in the tables below.
Arc of circle having the same Removal of the lines L2 and L3 and
curve angle suppression of the points P2 and P3
by fusion of the lines L1, L2 and L3
Note: These algorithms are planned especially for the 2D geometry, the result in 3D
is not guaranteed.
Manual To correct the other defects the user must carry out a manual correction with
correction the tools presented in the table below. The use of these various commands is
detailed in section “Correction of geometric defects” of chapter “Geometry /
mesh importation: software aspects”.
Introduction Although it is possible and necessary to correct the geometric defects after
importation, it is preferable to prepare the initial file so that the operations of
correction in Flux are minima.
The checking of the geometry and the correction of possible geometric
defects are essential.
Introduction This section refers to the import of geometry starting from geometric files in
« advanced mode».
The import of CAD geometry into an FE (finite elements) project is an
operation which consists of the conversion of the CAD data (in a specified
format) into FE type data.
The advanced mode is a method that permits a CAD geometry transfer to the
FE software in a more efficient manner while integrating repairs before the
conversion of data. These repairs simplify the work of geometry
checking/correction.
Format The formats which permit the import of geometry are as follows:
PARASOLID *.PRT
Interest The user can import a geometry in advanced import mode thereby eliminating
the need for the geometric correction phase to follow in FLUX.
Context In general, the CAD files used for the execution/ visualisation of a prototype
or device are not always adapted to finite element modelling. It is often
necessary « to facilitate» the transfer of data from the CAD format to the
finite elements analysis software format.
The advanced mode is an « optimised » mode, which, due to integrated
supplementary functions, facilitates the work of data transfer.
face/face
line/line
intersection
intersection
CAD FE
Model NOT SUITABLE
for FE computation
Solution To solve the problem of adjoining geometries (parts in contact, see figure), a
number of integrated repair tools are included in the import selection called
« advanced mode ». This consists of the appropriate construction of the
interfaces (minus the intersections), respective to the contact faces between
the parts. This must be designated before carrying out the proper operation of
conversion.
Import The import is carried out in two phases, as described in the table below and
process illustrated by the following figure.
Phase Description
1 Repair:
• Detection of parts in contact
• Construction of the contact faces
• Union of solids in contact
2 Conversion:
• Choice of elements of the CAD file to convert
• Conversion of elements:
CAD type geometry -> Geometry of Finite Elements type
3 Result: the results are displayed in an import report in the History
zone.
Conversion The CAD entities of the initial file are read and converted into FLUX entities
of the type:
• points defined by parametric coordinates
• lines of type :
• segment defined by extremity points
• arch defined by the origin, intermediate and extremity points
• curve (for any kind of lines)
• volumes
Introduction This section refers to the import of a geometry and its mesh, from a mesh file.
Introduction
Mesh import enables the import of the geometry and mesh. The geometry
created is based on the imported mesh.
This approach enables the introduction in Flux projects of uneven surfaces in
the form of “cut surfaces”, but has the disadvantage of generating an
important number of geometric entities (volumes, faces, lines). As
consequence, the result of the mesh file conversion is not always compatible
with the requirements of Flux analysis (for example, the use of sliding
cylinder …).
At the moment of mesh importation (or right afterwards) additional
operations are necessary, in order to simplify and adjust the imported data.
Importation The mesh import process involves three stages, briefly described in the table
process below and detailed in the next paragraphs.
Stage Description
1 Conversion with options
2 Fusion of the multiples faces and lines coming from the mesh
importation (facets and edges)
3 Positioning of the faces on a reference plan / cylinder
Introduction The first stage is a stage of conversion of the mesh entities into geometric
entities.
Principle of The principle of conversion shown in the scheme below is the following: all
operation the vertexes, edges and facets of volume elements of initial file are converted
into points, lines and faces in the final file.
Importation in Flux
Conversion of The entities of the initial file are read and converted into Flux entities, as
entities presented in the table below.
The file in
CAD entities contained
the format Converted into Flux entities …
…
…
nodes points defined by parameterized
coordinate position
nodes
NASTRAN line elements lines of edges list type
/ PATRAN line elements
/ UNV/
face elements faces of facets list type
MED
face elements
groups: volumes
component or material
Structure of In Flux, the geometric entities resulting from the mesh importation differ
data from “standard” geometric entities:
• the faces resulting from mesh importation are faces of facets list type
• the lines resulting from mesh importation are lines of edges list type
Option To perform the data conversion, different options are available to the user.
selections for
conversion These options are of two types:
• general options, available for all formats
• choice of a coordinate system: to place the imported geometry in the Flux
project
• choice of the unit: to choose the units of the device dimensions
• choice of precision: to define the minimal distance enabling to distinguish
two points
• particular options, specific to the format
Only the general options are described in this section.
Introduction Following the importation, the geometry of the imported device has multiple
lines and faces deriving from multiple facets and edges of the initial file.
The second stage is the stage of fusion (regrouping of the entities), which
enables the reduction of number of lines and faces, and facilitates their
handling, as well as the visualization of the device.
Fusion of faces: Although strongly advised, the fusion of faces / lines is optional. This
use operation becomes compulsory for the faces in the cases presented below.
If … The fusion …
kinematic coupling of dissociation faces (sliding cylinder, boundary of
mobile mechanical set and compressible
mechanical set)
symmetry and/or
of faces located on these planes
periodicity planes
… is compulsory
Principle of The principle of fusion of faces is shown on the scheme below. During fusion
fusion of faces all faces belonging to the same surface are regrouped in one face.
and data
structure
The faces resulting from mesh importation are faces defined by a list of
facets.
• Before the fusion of faces:
every face (of facets list type) contains a single facet
• After the fusion of faces:
every face (of facets list type) contains many facets
Regrouping The surface of regrouping is defined by the user, using an angle named angle of
surface and fusion. All adjacent faces whose angle is less than the fusion angle are regrouped in
angle of fusion a single face (See figure of example below).
Example:
Three adjacent faces are
regrouped in a single face with
a fusion angle
Precaution So that the simplified geometry approaches with more real geometry, it is
necessary to take some care as for the choices of an angle of fusion, the risk
being to gather faces, which should remain separate.
In general, it is advised to comply with the following rule:
• start with an angle that is inferior or equal to 1° - to identify the plane faces
• gradually increase the value of the angle - to identify the others faces
Attention The fusion process does not create even surfaces. The regrouping surface is
an uneven surface, (although this surface looks like an even one).
And for the The principle of lines fusion is the same with the one of faces fusion. It is
lines … illustrated in figure below.
Rules of fusion Two faces (lines) can be regrouped if they belong to same volumes (faces).
The mesh importation of a quarter cylinder before and after the fusion of
faces and lines is shown in figure below.
Introduction After importation of mesh and simplification of geometry, the quality of the
faces obtained starting from mesh data can be unsatisfactory for the Flux
further operations (see examples below). In this case, it is necessary to adjust
the geometry.
Examples:
• If we want to impose the condition of periodicity on two faces which
theoretically form an angle of 60°, but in reality the imported faces form an
angle of 59.9999°, it is necessary to adjust the geometry in such way that
the real angle between the two faces to be 60°.
• If we want to use the sliding cylinder entity and if the face corresponding to
the surface of dissociation not be really carried by a cylindrical surface, it
will then be necessary to adapt the consequently geometry.
Positioning of The positioning of the faces is optional but becomes compulsory for the faces
faces: use in the following cases:
If … the positioning …
kinematics coupling of dissociation faces (sliding cylinder, boundary of
mobile mechanical set and of compressible
mechanical set)
Symmetry and/or
of faces located on these planes
periodicity planes
… is compulsory
Strategies of Previous to mesh data importation is important to choose a strategy for the
mesh importation. It is possible:
importation • to import a complete geometry of the device, i.e. all its components, the
including box and the complete mesh of the study domain
• to import the geometry and the mesh of a only one component or of a part
of the device and to complete the description of geometry and mesh in Flux.
The further steps of the project depend on the chosen strategy.
Strategy 1 The first strategy consists in importing the whole study domain. The process
of importation can be presented as follows:
Stage Description
1 Preparation of initial file in the origin software:
• full description of the device geometry
• addition of an air region or of a box including the device
• meshing of study domain
2 Data importation into Flux by using the option:
• with mesh (mesh data importation)
3 Simplification of file:
• fusion of faces / lines
4 Direct passage to physics
Strategy 2 The second strategy consists in importing a specific meshed part of the
device. The process of importation can be presented as follows:
Stage Description
1 Preparation of initial file in the origin software CAD (ex. rotor):
• description of the geometry of the device part
• mesh of this part
2 Data importation into Flux by using the option
• without mesh
3 Simplification and adjustment of file:
• fusion of faces / lines
• positioning of faces
4 Building in Flux of the rest of the device geometry (ex. stator) :
• geometrical construction of other device parts
• construction of faces and volumes
• mesh of the whole computation domain
5 Direct passage to physics
Important: The device parts, added by Flux, do not have to touch the imported
geometry (imported parts).
Attention: A non-conform mesh in the initial file may generate intersections that
cannot be removed.