Professional Documents
Culture Documents
FLUX® 9.10
User’s guide
volume 1
General tools
Geometry and mesh
Ref. :
K101-910-EN-03/05
CEDRAT
15, Chemin de Malacher - Zirst
38246 MEYLAN Cedex
France
Email : cedrat@cedrat.com
Web : http://www.cedrat.com
FLUX® 9.10 TABLE OF CONTENTS VOLUME 1
TABLE OF CONTENTS
FLUX 2D application
Volume 4 : Solving and results post-processing
FLUX 3D application
Volume 4 : General tools (3D environment)
Solving and results post-processing
Volume 5 : Physical applications
(complements for advanced user)
1. Supervisor .................................................................................................................. 1
1.1. General presentation .................................................................................................3
1.2. The FLUX modules ..................................................................................................11
1.3. Standard or user version .........................................................................................25
1.4. File compression and archive management............................................................37
1.5. Additional tools and options .....................................................................................43
2. Environment and graphic representation.................................................................. 49
2.1. Working environment: role of different zones ..........................................................51
2.2. Graphic representation: a matter of viewpoint.........................................................57
3. FLUX project and FLUX object management........................................................... 65
3.1. FLUX Project............................................................................................................67
3.2. FLUX Object ............................................................................................................71
4. General operation: data management...................................................................... 75
4.1. Concepts of entity and manipulation of entities .......................................................77
4.2. Selection of entities..................................................................................................83
4.3. Data handling...........................................................................................................93
4.4. Visualization of entities ............................................................................................99
5. Command file, Python language ............................................................................ 103
5.1. To begin .................................................................................................................105
5.2. FLUX and Python language...................................................................................109
5.3. Examples of command files ...................................................................................115
1. Supervisor
Introduction This section describes the FLUX Supervisor, with which you can run FLUX
modules and manage your FLUX project files and directories.
Start the FLUX To start the FLUX supervisor from the Windows taskbar, proceed as follows:
supervisor
Step Action
1 Click Start > Programs > Cedrat (or your installation directory) >
FLUX_9.10
The Supervisor The FLUX Supervisor window is divided into several areas. These different
Window areas are identified in the following figure, and then detailed in the following
blocks.
Menu bar
Tool bar
Project
files
Directory
Program manager
manager
Flux view
(2D only)
My programs
Parts of the The different parts of the FLUX Supervisor and their functions are presented
Supervisor in the table below.
Part Function
Menu bar Windows commands for FLUX
• File
• Display
• Versions
• Tools
• Help
Tool bar Icons for common tasks in FLUX
• User version
• Compress/Decompress a project
• Options (memory, license, etc.)
• Help (link to online Users Guide for FLUX)
Program manager Displays the FLUX modules
Part Function
Directory manager Displays the computer’s directory.
Introduction You can change the appearance of the FLUX Supervisor screen, e.g.:
• show or hide parts of the FLUX Supervisor
• resize or move parts of the FLUX Supervisor
Displaying The following figure illustrates the parts of the FLUX Supervisor window
different parts that are affected by the Display commands:
of the FLUX • the Tool bar
supervisor
• the Program manager
• the Geometry view (for FLUX2D)
Tool bar
Program
manager
Geometry
view
Effect on the The following figure shows the Supervisor when Display geometry is not
supervisor: selected:
example
1.1.3. My programs
Principle In the My programs area, you will find links to two programs:
• Windows Explorer
• DOS window
Add a program To add a program, use the context menu (right click in the concerned zone)
Step Action
1 Click Add a program ...
2 Select the program to add
Remove a To remove a program, use the context menu (right click in the concerned
program zone)
Step Action
1 Select the program to delete
2 Click Delete …
Introduction This section describes the FLUX (2D, 3D or Skewed) module area, which
contains links/commands to run FLUX (2D, 3D or Skewed) modules.
Contents of the The program manager area of the FLUX Supervisor contains folders (in the
program form of a tree structure) in which you can find each of the main modules of
manager area FLUX (2D, 3D or Skewed).
FLUX3D and The FLUX3D and FLUXSkewed module folders are described below:
FLUXSkewed
module folders
Part Function
Construction • Create a geometric model, mesh, electrical circuit, and
materials
• Assign material and source properties to different
components and boundary conditions, link an external
circuit, etc.
Solving process, • Solve a problem (direct or batch mode)
Analysis • Compute various quantities, create displays and
animations of results
Compatibility Settings for use with modules from previous FLUX
versions
Contents of the When you expand the folders, you will see icons and labels representing the
module folders FLUX modules (2D, 3D or Skewed) contained in the folder.
Part Function
Geometry & • Construct a geometric model and mesh
Physics • Create and assign physical and material properties to
components of a modeled device
Circuit Draw and define electric circuits
Materials database Add material models to the database
Solving process The Solving process folder comprises the following modules:
Part Function
Direct Solve a model (perform the FEM calculations) in
interactive mode (the user can see the progress of the
calculation on screen and if necessary, stop the
calculation)
Batch Solve a model in batch mode (e.g., to reduce
computation time for complex models)
Transient start-up Solve a model beginning with results from a previous
solution (e.g., with a modified time step)
Stop solve Stop a calculation before it is completed
Delete results Delete results from a previous calculation
Convert results Convert results from versions older than 7.50
Metal 7 Start Metal 7 (metallurgical calculations)
Part Function
Results Display results, create animations, etc.
Coupling Create new FLUX2D problems from extracted values
(e.g., create a thermal problem from a magnetic
application using the power density as thermal source)
Part Function
Geometry Construct a geometric model and mesh with Preflu_2D (the
with pre-processor from FLUX2D Version 7.6).
Preflu_2D
Geometry Construct a geometric model and mesh with Preflu
with Preflu (the original pre-processor from FLUX2D).
SPEED Convert a geometry created with SPEED software into a
converter *.FLU file.
Iges with Open the INTER program, a geometric file-conversion utility.
Inter For example, Inter will convert AutoCAD files into FLUX
geometry files (and vice versa).
Flux3D Convert the files preceding the 8.10 version
Convertor
Part Function
Create Create and assign physical and material properties to
components of a modelled device
Modify Modify physical properties, e.g., to create multiple cases using
the same geometry and mesh but with varying physical
properties
Copy Copy physical properties, e.g., to create multiple cases using
the same physical properties but with different geometry or
mesh models
Circuit Draw and define electric circuits with Cirflu
with Cirflu (circuit tool from previous FLUX versions)
Part Function
Solve Solve a model in interactive mode with Resgen
with Resgen (the original solver from FLUX2D).
Result Analyse results with Expgen
with Expgen (the original Postprocessor from FLUX2D).
Draw Open the drawing and plotting utility from previous FLUX
versions.
Solve with Solve a problem with the 2D solver of FLUX3D
FLUX3D_2D
Part Function
Geometry & • Construct a geometric model and mesh
Physics • Create and assign physical and material properties to
components of a modeled device
Circuit Draw and define electric circuits
Materials database Add material models to the database
Physical, The Physical, Solving process, Analysis folder comprises the following
Solving process, modules:
Analysis
Part Function
FLUX3D Work with FLUX3D
Solve in batch Solve a model in batch mode (e.g., to reduce computation
time for complex models)
Stop the Stop a calculation before it is completed
solving
process
Part Function
Circuit Draw and define electric circuits with Cirflu
with Cirflu (circuit tool from previous FLUX versions)
Iges with Inter Open the INTER program, a geometric file-conversion
utility. For example, Inter will convert AutoCAD files into
FLUX geometry files (and vice versa).
Draw Open the drawing and plotting utility from previous FLUX
versions.
Flux3D Convert the files preceding the 8.10 version
Convertor
Part Function
Geometry & • Construct a geometric model and mesh
Physics • Create and assign physical and material properties to
components of a modeled device
Circuit Draw and define electric circuits
Materials database Add material models to the database
Physical, The Physical, Solving process, Analysis folder comprises the following
Solving process, modules:
Analysis
Part Function
FLUXSkewed Work with FLUXSkewed
Solve in batch Solve a model in batch mode (e.g., to reduce computation
time for complex models)
Stop the Stop a calculation before it is completed
solving
process
Part Function
Circuit Draw and define electric circuits with Cirflu
with Cirflu (circuit tool from previous FLUX versions)
Iges with Inter Open the INTER program, a geometric file-conversion
utility. For example, Inter will convert AutoCAD files into
FLUX geometry files (and vice versa).
Draw Open the drawing and plotting utility from previous FLUX
versions.
Flux3D Convert the files preceding the 8.10 version
Convertor
Key When you click the Key authorization button in the Protection tool dialog,
authorization the following dialog opens:
Warning DO not make any changes in the Key state dialog, or you may invalidate your
license. If you are having any problems with your license, you should call
your distributor for help.
Flexlm When you click the Flexlm authorization button in the Protection tool
authorization dialog, the following dialog opens:
Warning Do not make any changes through this dialog, or you may invalidate your
license. If you are having any problems with your license, you should call
your distributor for help.
Introduction This section presents information about selecting and managing user versions
of FLUX2D or FLUX3D.
The Standard version is selected by default.
A user version is a version that extends the software’s basic modelling
capabilities.
For example, with a user version you can define non-standard physical
properties (voltage or current source, material characteristics, etc.) as a
function of criteria you choose yourself (time, space, variable, etc.).
Notes on what In the chapter entitled « User sub routines » (for FLUX2D and FLUX3D,
to read respectively) you will find information pertaining to:
• description of the user versions included with the software
• available possibilities of user versions : choice and writing of user
subroutines, etc.
User version: A user version of FLUX (2D or 3D) is a version that extends the software’s
definition basic modeling capabilities.
User version: From the point of view of its structure, a user version is a version that
structure includes both:
• the standard version of FLUX2D or 3D ; and
• a specified number of user subroutines.
Default location User versions are located by default in the following directories:
for user • C:\Cedrat\User\user2d for 2D user versions
versions • C:\Cedrat\User\user3d for 3D user versions
User versions Predefined user versions are included with the FLUX software. These are
included with listed in the following table:
the software
Documentation Informations about user versions included with the FLUX software are
on user available in the following directories:
versions C:\Cedrat\User\user2d (table_readme.pdf)
C:\Cedrat\User\user3d (lamination_readme.pdf)
Standard By default you will be working with the standard version of FLUX2D or
version FLUX3D.
To work with a user version, you must specify the desired user version in the
FLUX Supervisor.
FLUX2D: FLUX3D:
Result:
The name of the user version is displayed in the title bar of the program
manager.
Introduction The available user versions are listed in the Versions menu.
You can edit a predefined user version, create new user versions, and modify
or delete user versions.
The various operations to manage user versions are performed through the
User version manager.
The User The User version manager is shown in the following figure
version
manager
Date of compilation
FLUX version number
The mode area In the Mode area, you can select the location of the directory for the user
function versions.
The two main locations are shown in the following table:
The User The user version toolbar provides shortcuts to the most common functions to
version toolbar work with user versions. The icons and their functions are explained in the
following figure:
Step Action
1
Open the User version manager with the icon
2 In the Name field, choose the name of the user version to edit
3 Click OK to close the User version manager
Introduction This section describes the creation and management of new user versions.
You should read the part concerning “User subroutines” (FLUX2D and
FLUX3D, respectively) before beginning this section.
Note In order to create a user version, you must have a Digital Visual Fortran
compiler (Version 5 or 6) installed on your computer.
Create a user The different steps in the creation of a user version are shown in the following
version table and detailed in the following sections:
Step Action
1 Define the directory location for the new user version (for the
(optional) Local option)
2 Create the new version:
• Choose a name
• Load the reference files that will serve as a basis for
writing the user subroutines
3 Write the user subroutine(s)
4 Compile the new user version
Step 1: Define If you want to choose the directory in which to place the new user version
the directory (operating in Local mode):
location for the
new user
version
Step Action
1 In the Tools menu, click Options or click the icon
2 Choose the User version tab
3 In the field Flux2D user version directory (for the local mode)
or
in the field Flux3D user version directory (for the local mode),
enter the name of the directory in which to place the new user
version
At the end of this step, a directory with the name of the new user version is
created. It contains the reference files (*.f) which serve as the basis for
writing the user subroutines.
Step 3: See the documentation concerned the writing of user subroutines in the user’s
Write the user guide:
subroutine • chapter 7 volume 3 for FLUX3D
• chapter 3 volume 4 for FLUX2D
Step Action
1 In the User version manager:
The changes These are the modifications you can make to a current user version:
you can make • Add user subroutines
• Remove user subroutines from the current version (saving them in the
designated directory without compiling them with the current version)
• Delete user subroutines from the current version
Modify a user To modify a user version (add or delete user subroutines), in the User version
version manager, proceed as follows :
Step Action
1 Choose the name of the user version you want to modify
2 In the User version manager:
To Add a subroutine:
Step Action
1 In the User version manager:
• Choose the name of the user version you want to delete
2 In the User version toolbar:
1.3.8. Options
User version When you click the User version tab in the Options dialogue, you will see
options: the following:
overview
Parts of the The User version tab is divided into the following areas, as shown in the
User version previous figure.
tab
Part Function
User version Choose the:
• editor for the *.f files
• directory for user version (in local mode)
Compiler Choose the version of the Digital FORTRAN compiler
Introduction This section presents information about file compression and archive
management.
File The files of a complete project may become large (for example, for a complex
compression: geometry, or a fine mesh; during a multi-solving process that generates a
benefits large number of result files, etc.).
Therefore, it may be helpful to compress these files to facilitate the transfer or
storage of the project.
Archive file: The archive file (*.tar.bz file) can contain various files:
contents • the set of files comprising the entire project, or only specified files
(geometry description, etc.)
• other files such as printing files (*.PRT), drawing files (*.DES), or others.
For archiving FLUX project files, several options are available as explained
below.
FLUX2D FLUX2D options allow the user to choose the project files to be archived:
options
Option Files
Whole project Entire set of project files from the project
Without results Project files without results
FLUX3D FLUX3D options allow the user to choose the project files to be archived:
options
Option Files
Whole project All files from the “*.FLU” directory:
PROBLEM_FLU.PFL,
GEOM_FLU.PFL, MESH_FLU.PFL,
SOLVE_i_j
Without finite Problem description files only:
element solution PROBLEM_FLU.PFL,
GEOM_FLU.PFL, MESH_FLU.PFL
Without mesh Problem description files without mesh:
PROBLEM_FLU.PFL,
GEOM_FLU.PFL
Introduction The various operations for managing archives (creation and restoration) are
carried out through the archive manager.
Stage Description
Initialization The user must choose:
• the project to compress (and the compression option)
• the name of the archive file and its place on the disk
Creation The user must choose:
• files to include in the archive file and
• create the archive
Step Action
2 Fill in the fields in the dialog window:
• Project name
• Directory where the archive will be created
• Archive name
3 Choose the compression options
4 Click on the Next Button
The next dialog of the Create a FLUX3D project archive dialog is
open:
Step Action
1
Click on the icon
The Restore an archive dialog is open:
Introduction This section presents information regarding additional tools and options
available to the user.
FLUX Online When you click the Help icon, you are linked to the online version of the
Help FLUX User’s guide.
Click any of the hyperlinks to open the corresponding section of the FLUX
User’s Guide.
Introduction In the Tools menu there is a calculator specifically for computing the skin
depth.
License When you click the License tab in the Options dialogue, you will see the
options: following:
overview
General When you click the General tab in the Options dialogue, you will see the
options: following:
overview
Display When you click the Display tab in the Options dialogue, you will see the
options: following:
overview
Reading advice All aspects related to the data organization, manipulation and display are
treated in the chapter “General functionality: data organization”
FLUX window The general FLUX window consists of several zones. These different zones
are identified in the figure below.
Graphic
scene
History
Status bar
Role of zones The different zones and their principal roles are briefly described below:
Element Function
Title bar General information:
• Software name, version number
• Application (3D Transient Magnetic)
• Project name
Menus bar Access to the different menus:
• Project, Application, View, Display,
Select
• Geometry, Mesh, Physics, Tools,
Help
Context bar Access to the toolbar corresponding to
the contexts:
• Geometry, Mesh, Physics
Menus Toolbars
Project Commands of Project menu:
• New, Open…, Save, Close, Exit
Tools Commands of Tools menu:
• Undo
Contexts toolbars:
Geometry Context Commands of Geometry context:
• Creation of the geometric entities
• Propagate / Extrude Line, Face …
• Build Faces, Volumes, Assign
Regions
• Measure geometry (distance
between two points …)
• Check of the geometry
Mesh Context Commands of Mesh context:
• Creation of mesh entities
• Actions on the mesh
• Check of the mesh
Physic Context Commands of Physic context:
Element Function
Entities tree Entities tree of the FLUX project
Command
Command
echo
Display the The zone for the commands in Python language is masked (by default).
Python To display this zone:
command zone
• click on the arrow located on the bottom of the history zone as shown in the
figure below.
Arrow to display
the Python
command zone
⇒
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 the chapter “General functionality: data organization”.
The second aspect (called viewpoint) is treated in this chapter.
The graphic The graphic window is a window where a graphic representation of the
window modeled device is displayed.
The coordinate system displayed in the left bottom of the window permits the
orientation of the figure (system coordinate OXY for Preflux 2D, and system
coordinate OXYZ for Preflux 3D).
Thus, in 3D there are more graphic representations of the device : top view,
laterally view, perspective view…
Concept of view The 2D or 3D view of a device in the graphic zone is called graphic view.
Concept of The graphic view is the image of the device visualized from a viewpoint.
viewpoint This concept is illustrated in the figure below.
The different types of modifications (using the mouse and the correspondence
with the commands of the View menu) are presented in the table below.
Step Action
1 In the View menu:
• click on View direction …
or on the icon
2 In the View direction box:
• enter the values:
- x, y and z corresponding to the camera position
- x, y and z corresponding to the target point position
- rotation angle
- zoom scale
Zoom Icon
all Total view
in - Enlarge the view
out - Reduce the view
region This option allows the user to set with the
mouse the rectangular zone to enlarge.
Options It is possible to choose one (more) view(s) from a list of predefined views:
• standard view n°1 and n°2
• views on the reference planes X, Y, Z
• opposite view
Standard views The standard views n°1 and n° 2 are presented in the figures below.
Views on the The views on the reference plans X, Y, Z are presented in the figures below.
reference
planes
Plane X Plane Z
Plane Y
Plane X
Plane Y
Plane Z
Options The views on the reference planes X, Y, Z and also the standard view n°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.
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.
FLUX3D For a FLUX3D study, the repertory corresponding to the project contains also
features a file(s) that contains the result(s).
Project Menu These commands are available by Project menu or by Project toolbar.
The operation of these commands is briefly pointed out below.
Result:
FLUX recovers many information from the database model, in order to build
the proper database of the new project. The new project is temporarily named
ANONYM.
The message displayed in the console bar is:
Loading new project ...
Creation ANONYM
DOMAINE(DOMAINE1) cree.
L'occurrence creee devient active.
*** Nom de structure inconnu ***
... end loading new project
Result:
When a project built with an old version is opening, FLUX performs the
update of the database.
The message displayed on console bar is:
Loading project 'D:\FLUX\flux_bibli\problem\PREFLU2D_2' ...
Debut de la lecture ... fin de la lecture
Mise a niveau de la structure de donnees: F3D_3.37 ==> F3D_3.38
Mise a niveau de la structure de donnees: fusion base standard
L'occurrence creee devient active.
*** Nom de structure inconnu ***
... end loading project
Result:
When a project is closing, storage of project will be automatically proposed to
the user.
Preflux 2D The .TRA file is automatically created for the surface meshed regions.
features
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 with 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 used for different studies.
Step Action
1 From the Actions menu, click on Flux Import and click on
Import FLUX object
2 In the Import FLUX object box:
• choose the file name to import
• choose the filter
Introduction A finite element project contains a great volume of data, diverse and
interrelated
In terms of FLUX software, these data (coordinates of points, types of lines,
…) are called entities and depend on project context (geometry, mesh, …).
This chapter presents the mode of general operation of FLUX software
(independently of context), i.e.:
• the general organization of data : concepts of entity and of entity type
• the different selection modes
• the general commands of entities manipulation (create, edit, modify, delete
of entities)
• the tools of entities visualization (display and appearance of entities in the
graphic zone)
At the end of this chapter the user will find the elements for a better
understanding of concepts related to FLUX database (logical distinction
between data structure and data themselves, concepts of entities,
characteristics of an entity, relations between entities, …).
Reading advice This chapter presents the mode of general operation of FLUX software
(independently of context). For specific detail of geometry and mesh
modules, refer to the corresponding chapters.
Vocabulary: In this section we use a “simple vocabulary” for the description of entities and
warning their manipulation.
At the end of the chapter we will use for advanced users a technical
vocabulary, currently used in the description of data structures.
Warning • There are specific entities for each FLUX modules depending on the
context (geometry, mesh, …)
• The actions of entities manipulation always follow the same scheme
independent of context.
Example The points and the lines are entities of geometry module. The mesh point and
mesh line are entities of mesh module.
The procedure to create a point or a mesh line (Add command) is similar in
geometry module and mesh module.
POINT (10) =
COORD (REP (RCA1) UVW (100, 200, 200))
Characteristics COO (0.1, 0.2, 0.2)
COLOR (White)
VISIBILITY (Visible)
To know more At the end of this chapter the advanced user will find the elements for a better
understanding of concepts related to the FLUX database (logical
distinction between data structure and data themselves, concepts of entities, of
characteristics of an entity, of relations between entities, …).
Properties Each entity has attached a properties sheet, which contains the following
sheet: content information:
• the identifier of the entity (for the user): a name or a number
• the type of entity: point, line, …
• the specific characteristics of the entity
Properties The properties sheet is presented in the form of a dialogue box that contains:
sheet: overview
• a title bar with the type of entity
• a zone (optional) corresponding to the name and the associated comment
• different tabs containing the specific characteristics of the entity
• buttons to validate the information or to close the sheet
Example:
Properties
sheet of
point n°69
Different sheets There are two families of entities (and consequently, two types of
(entities) presentation of sheets):
• the entities identified by a name given by the user (ex : a geometric
parameter, a transformation, a mesh generator …)
• the entities identified by a number defined by the software
(ex : a point, a line, a volume element …)
These sheets are presented below.
Entities The properties sheet of entities identified by a name contains the following
identified by a information:
name
• a title bar with the type of entity
• a zone corresponding to a name
• a zone corresponding to a comment
• different tabs containing the specific characteristics of the entity
Example:
Properties
sheet of
geometric
parameter
PCENT
Example:
Properties
sheet of line
n°5
Introduction The most part of actions for handling the entities require the selection of
entities. Different modes of selection and different situations are treated in
this section.
Reading advice The operations of handling and selection of entities are interdependent. The
user will find information on the selection of entities in the section:
“Handling the entities”.
Context The most actions of manipulation of entities require the selection of entities:
• 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.
Direct selection
Example:
Line selection (with the
mouse) in the graphic area
The selection The different selection modes are gathered in the table below.
modes
Tools for Tools for selection management (allowing multiple selection) are presented
selection in the table below.
management
Tools for selection management (3)
Remove to remove entities in the list
Add to add entities in the list
Intersection to realize intersection between two groups of entities
Graphic mode The selection in graphic mode is done directly with the mouse in the FLUX
window. It is the quickest and more convenient mode.
Entity type and The user selects entities in the graphic area, the data tree or the selection tree.
selection area
The different possibilities depending on entity type (graphic object or abstract
entity) are presented in the table below.
Choice of the The selection of graphic objects needs the preliminary choosing of the type of selected
type of the object (example: points or lines, or surface elements, …).
object to select
This choice is managed in the Filter
graphic / Selection menu
The selectable entity type is marked with
a ν in the list.
It’s possible to inactivate the selection
(nothing selectable) with the use of None
option
Selection Different options concerning the brightness of the selected objects are
options for proposed for the display in the graphic zone.
display
• display of selected objects with large lines
• display of selected objects with opposite color
• attenuation of other objects
• display of labels of selected objects
The selection options are available:
in the Tools / Options / Selection options menu
Operation The selection by relation uses the relations existing between different
mode entities. It is carried out in three steps (table below).
Other modes The other selection modes allow us advanced selections (selection by relation,
and situations by group of by the same type of entities, …).
These other modes are available in the following situations:
• selection starting from a selection box
• selection starting from a properties sheet
To reach the other selection modes, it is necessary to pass by the Data menu
or by the data tree (and the contextual menu).
Other selection An overview of the Other selection modes is presented in the table below.
modes
Operation To select an entity or an entity group by using the other selection modes, the
mode user should click on the button and choose the desired selection mode
from the proposed list.
Step Action
1 In the first box (selection box or properties sheet) :
click on
2 Click on Relation and click on the desired relation Selection by…
3 In the second box (box of selection) :
• select the desired entities
• click on OK to validate the information
4 In the first box:
click on OK to validate the information
Selection The selections management tools allow us the selection and the management
management of an assembly of entities or groups of entities.
tools
The selections management tools are presented in the table below.
Step Description
st
1 The user carries out a 1 selection (mode of his choice)
2 Then, he clicks on the button to access the selections
management tools
3 He clicks on the desired selections management tool
Add, Remove or Intersection, and
4 He carries out a 2nd selection (mode chosen from proposed list)
5 Then, the user can:
• close his assembly, by clicking on OK
• modify his assembly, by beginning again with step 2
Introduction The building of a FLUX project consists in the handling of the entities.
The basic operations for handling the entities are the following: Add, Edit,
Modify or Delete.
Reading advice The operations for handling and selection of entities are interdependent. The
user will find basic information on the selection of entities and detailed
information on the various selection modes in the section: "Selection of
entities".
Name by When creating entities identified by a name, the names are proposed by
default default.
The proposed name contains an abbreviation followed by a number.
Message in the When creating an entity, FLUX emits a message in the Console window to
Console inform the user about the evolution of operation.
window
PARAMETER_GEOM(EXPRESSION=SCAL_I(C80='33'),
NAME='PARAMETER_GEOM1 ')
PARAMETER_GEOM(2) created
Edition and The user can edit an entity to check or to modify its characteristics. In both
modification cases, he should open the properties sheet of an entity, then close it again after
checking (Edit) or modification (Modify).
These two operations are grouped in the same menu: Edit/Modify.
Modify an To modify the entity (enter the new information concerning characteristics,
entity (3) …)
Step Action
3 In the properties sheet:
• modify the concerned area
4 Then, choose one the following action:
• To validate the information without closing the sheet: click on
Apply, then resume from step 3
• To validate the information and close the sheet : click on Ok
• To close the sheet without validating the information: click on
Cancel
Message in the When an entity is created, FLUX emits a message in the Console zone to
Console zone inform the user about the evolution of operation.
TRANSF['TRZ_10'].TRANS_VEC=TRXYZ_I
(COO_SYS=COORD_SYS['XYZ1 : Systeme de coordonnees cartesien
Cartesian coordinate system.'],
DELTA=[SCAL_I(C80='0'),
SCAL_I(C80='0'),
SCAL_I(C80='2')])
TRANSF(1) modified
Deletion and The user can delete an entity if this one is independent.
deletion in
force
However, an entity is very often connected to other entities and the deletion
of an entity involves the destruction of all the entities that depend on this one.
• Click on Yes, if you want to delete the entity or the set of entities
• Otherwise, click on No
Introduction This section deals with the graphic representation of the modeled device.
When referring to the graphic representation of a device, we are interested:
• on one 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
• on the other hand, 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 viewpoint) 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:
• 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 also the possibility to modify this representation.
visualization
For this, the following commands are available:
• the Display command (Graphic filters menu), which manages the list of
types of entities to display,
• the general command of data manipulation, Modify, which allows the
modification of appearance (characteristics of visibility, color, aspect, …)
Subject How to make appear the desired representation of the device in the graphic
window, in terms of entities displayed on the screen: all the points, or the
points and the lines, or only the faces, …
Displaying The entities displayed in the graphic window are those, whose types are
rules presented in the display list.
This list is “co-managed” by the program and by the user:
• The management of the list is ensured by the program following the
propagation and priority rules
• The user can use the Display command of the Graphic filters menu, or the
corresponding icons.
Display list The display list contains the different types of entities represented in the
graphic zone.
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 visible or invisible
visibility white, cyan, yellow, magenta, black, red, turquoise and green.
Appearance in The entities in the graphic window are displayed according to their
the properties appearance characteristics (visibility, color, …)
sheet For each entity, the characteristics are saved in the Appearance tab of the
properties sheet.
Step Action
1 Select the entity and open the properties sheet
2 Choose the Appearance tab:
• Choose a color from the proposed list
• Choose a visibility
3 Close the sheet
Introduction The Python language is a programming language that can be used to control
Preflux (automation of certain tasks by using command files).
This chapter deals with the implementation of command files in Preflux and
provides basic information about the Python language.
Warning This chapter is not a course of Python language. It is intended only for stirring
your interest by two simple examples and for opening new perspectives to the
user.
5.1. To begin
Introduction This section refers to the know-how you must posses before being able to
treat various examples.
Introduction Instead of manually executing series of repetitive actions in FLUX, you can
save time by building and executing a command file that performs the task in
your place (equivalent of a WORD or EXCEL macro).
Command file: A command file is a series of FLUX commands and instructions written in
definition the Python language intended to execute automatically a task.
Example 1 In the mesh building phase, you must create the «mesh parameters» which
you will use to adjust the mesh (Mesh Point and Mesh Line).
By default, there are three Mesh Point: SMALL, LARGE and MEDIUM, but
there is no a predefined Mesh Line.
By means of a command file, you can create a series of Mesh Line (A1, …,
A10) that will be available for meshing your study domain.
Example 2 When you perform a multi-parametric study with FLUX3D, first you evaluate
the number of cases to be solved. If the number of parameters is significant,
the number of computations (L*N*M*…) and, consequently, the computation
time can be significant.
As part of an experimental test table, you may be interested only in a certain
number of cases, respectively in a specific combination of different
parameters).
Through a command file you can prepare and solve only the desired cases.
Mode 1 The different steps of this easiest mode of command file creation are
described in the following table.
Mode 2 This type of command file creation is more complex and requires a good
understanding of the FLUX data base structure.
Python: what is «Python is a portable, dynamic, extensible, free language which allows a
this? modular and object oriented approach of the programming. Python has been
developed since 1989 by Guido van Rossum and several voluntary
contributors», in «Learn to program with Python» by Gérard Swinnen.
All the information about this language is accessible on the Python site:
http://www.python.org
Warning The user will find only the necessary information to understand the two
simple examples treated in the following section.
Example :
The function add defined below, ads 2 numbers or join two character strings.
Introduction Python language can be used in two different modes in the FLUX
environment:
• in script mode, in the command files
• in interactive mode, directly in the command bar (Python bar)
Command bar The command bar (or Python bar) is the display zone situated between the
(Python) graphic and console display zones.
It allows the use of Python language in interactive mode.
Principle of use You can enter the Python instructions directly in the command bar:
• in the zone FLUX-Python >
Example You can use Python as a calculator. An example is presented in the table
below.
Attention The variables, Python functions, … are preserved as long as the Preflux
module is opened.
Instruction You can obtain information about the structure of the FLUX data by means of
.help the instruction .help.
The syntax is as follows: EntityName.help ()
FLUX entities The different FLUX entities are listed in the table below
Introduction This section describes the implementation of command files in case of two
simple examples (results already presented in the section «What can we do
with the command files ? »).
Reading advice The two examples can be described either with Preflux 2D or with Preflux 3D.
Objective The objective is to write a command file for the automatic creation of a series
of Mesh Line.
Example:
The file allows the creation of ten Mesh Line (A1, …, A10) of arithmetic
type with (1, … , 10) elements.
This command file can be used for different FLUX projects.
Step Action
1 In the Project menu:
click on Spy file and click on Open
In the Save as box:
enter the file name: CreerDiscLin.py
2 In the data tree:
double click on Mesh Line
3 In the properties sheet:
• fill in different zones:
• Click on Ok
In the new properties sheet:
Click on Cancel
4 In the Project menu
click on Spy file and click on Close
Final result The spy file (CreerDiscLin.py) containing the saved sequence appears in the
step 1 following way:
Step 2 Write the command file based on the previous spy file:
Step Action
1 Write directly, in the spy file (CreerDiscLin.py), the necessary
instructions (in Python language) for the creation of a series of
Mesh Line.
The instructions to be written are explained below:
for i in range(9) :
nom = 'A' + (i+1).toString()
MeshLineArithmetic(name=nom,
color=Color[‘White’],
number=I+1)
2 Save the file
Final result After executing the command file, the user will have 10 line mesh entities
step 3 available in the current FLUX project: A1 = 1, A2 = 2, … , A10 = 10
Step 1 To build the base geometry on which the modifications are done, you can
either execute the command file given in the annex, or follow the procedure:
Step Action
1 Open a new FLUX project
2 In the Geometry context:
• create the following 6 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 4 lines to close a rectangle with these 4 points ;
• build the faces
3 In the Mesh context:
• 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 Open a spy file (ModifParam.py)
2 Carry out the modification actions:
• delete the mesh (to allow the geometrical modification)
• modify the value of a geometrical parameter
• mesh the faces
• save the project under another name
3 Close the spy file
Final result The spy file (ModifParam.py), containing the saved sequence, has the
step 2 following form:
Step 3 Create the command file based on the previous spy file:
Step Action
1 Write a function (in Python language) which allows the
automatic creation of a FLUX project (corresponding to a set of
parameters) starting from a base project Base.FLU.
The written function is explained below :
def modify(VX1, VY1, VX2, VY2, VX3, VY3, case) :
deleteMesh()
ParameterGeom['X1'].expression=VX1.toString()
ParameterGeom['Y1'].expression=VY1.toString()
ParameterGeom['X2'].expression=VX2.toString()
ParameterGeom['Y2'].expression=VY2.toString()
ParameterGeom['X3'].expression=VX3.toString()
ParameterGeom['Y3'].expression=VY3.toString()
meshFaces()
saveProjectAs(case)
2 Write the calls of the previous function to create the 3 desired
cases
modify(10,0,0,10,20,10,"Case1")
modify(10,0,10,10,20,10,"Case2")
modify(10,0,0,10,15,5,"Case3")
3 Save the command file
Command file: The modify function defined in the command file allows the creation of a new
interpretation FLUX project named case, in which the geometrical parameters X1, Y1, X2,
Y2, X3, Y3 take the following values VX1, VY1, VX2, VY2, VX3, VY3
Element Function
#! Preflu2D 8.10 indication about the program this file can be
used with (compulsory)
def modify(VX1, VY1, VX2, definition of the modify function having as
VY2, VX3, VY3, case) : input variables : 6 parameters and 1 name
deleteMesh() deletion of the mesh
ParameterGeom['X1'].expre modification of geometric parameter X1
ssion=VX1.toString() (taking the value VX1)
meshFaces() mesh the faces
saveProjectAs(case) save the project (under the name case)
modify(10,0,0,10,20,10, call of the function to build the first case
"Case1")
… call of the function to build the next two
cases
Final result After executing the command file, the user has in his working directory, 4
step 4 FLUX projects whose characteristics are given in the table below.
P0 P1
P1: (20, 0) P1: (10, 0) P1: (10, 0) P1: (10, 0)
P2: ( 0, 10) P2: ( 0, 10) P2: (10, 10) P2: ( 0, 10)
P3: (20, 10) P3: (20, 10) P3: (20, 10) P3: (15, 5)
6. 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 (FLUX2D or FLUX3D tabs).
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 )
Representatio m ( x, y, z )
n 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 unknowns, 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 Preflux 3D, said to be in a parallelipipedic layer
FLUX3D (not 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 Preflux 2D, the infinite box is described by two superimposed discs
FLUX2D (crown 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 FLUX3D, 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 that are detailed in the
“Physics” chapters of the FLUX2D and FLUX3D User’s Guides.
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, ...
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 imported Within the geometry importation from IGES or STEP file and the mesh
in FLUX importation from NASTRAN, PATRAN or UNV file in the FLUX project,
the lines of an unspecified shape are imported.
Faces imported Within the geometry importation from IGES or STEP file and the mesh
in FLUX importation from NASTRAN, PATRAN or UNV file in the FLUX project,
the faces of an unspecified shape are 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 (see paragraph 6.3.5 “Another functionality:
problems nature of points, lines and faces”).
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”), 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, ...
6.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 can not 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.
Preparation Create
Create Create
Create Create
Create
of tools Geometric
Geometric Coordinate
Coordinate Transformation
Transformation
parameter
parameter system
system
Create
Create Point
Point
Ascending
building of Create
Create Line
Line
geometry
Build Faces
Build Volumes
Rearrangement
in regions Create
Create Regions
Regions
Assign Regions
7. Mesh: principles
Introduction This chapter gives the necessary knowledge for the mesh realization:
presentation of the different mesh generators available in FLUX, meshing
strategies, …
It also presents the general operations of the mesh module (choice of mesh
generator, mesh adjustment, …) and some considerations on specific meshes
(thin regions, rotating air-gap, …)
Introduction This section refers to the mesh algorithms (mesh generators) available in
FLUX.
Mesh A mesh generator is a tool to perform the subdivision into finite elements.
generator:
definition The algorithms for meshing (or mesh generators) used for subdivision are
described below.
Delaunay mesh The Delaunay or automatic mesh algorithm is fairly general: it creates
or automatic triangular elements on all the surfaces defined by their meshed outlines and
mesh tetrahedral elements on all the volumes defined by their meshed surface
contours.
Example
Triangle Tetrahedron
“Topological” This mesh generator allows the mesh of rectangular faces with rectangles (or
mesh or quadrangular elements) and volumes such as parallelepiped with “bricks” (or
mapped mesh hexahedron elements).
With the mapped mesh algorithm, the outline of a surface is divided into four
lines, each one meshed so that two opposite lines have the same number of
elements. The surface to be meshed is thus topologically equivalent to a
rectangle. For the mapped mesh of a volume, the volume is topologically
equivalent to a parallelepiped.
Exemple
“Brick”
Rectangle,
Hexahedro
Quadrangle
n
“Copy” mesh This mesh generator allows you to impose the same mesh on faces linked by
or linked mesh a geometrical transformation. This mesh generator can be used only for faces.
Example
Example
rotation
of a line
Example
rotation
of a face
“Prism” “Brick”
Pentahedron Hexahedron
The mesh on We divide the volume or surface domain to be meshed into sub-domains of
sub-domains or simpler easy-to-mesh shapes using one of the following methods. The mesh
the mixed mesh on sub-domains or the mixed mesh is therefore a combination of the
previous mesh generators.
The main difficulty with the mixed mesh is ensuring the coherence of the
mesh on the interfaces between the sub-domains: the mesh on both sides of
the sub-domain interfaces should be identical (we use the term mesh
conformity). This conformity is not easy to obtain in 3D, when different mesh
algorithms are used on neighboring sub-domains.
To ensure the coherence of the mesh on sub-domain interfaces, the 3D mixed
mesh generator creates pyramidal volume elements that ensure the proper
connection between triangular faces and rectangular faces.
Example
Finite element The finite element based computation allows the approximation of state
computation variables such as scalar or vector potentials, temperature, etc. and of derived
quantities, such as magnetic field and induction, magnetic flux density,
electric field, thermal flux density, etc.
The quality of the approximate solution depends on the mesh. Thus, the
quality of the solution depends on:
• the number and the dimensions of the finite elements
• the interpolation functions in each element, which can be 1st, 2nd… order
polynomial functions, and on the continuity conditions imposed on the sub-
domain boundaries.
A detailed presentation of the finite element based computation method goes
beyond the scope of this document.
Nodal element, In terms of the geometry, a volume element is characterized by its vertices,
edge elements edges and faces.
vertex
edge
facet
Elements of 1st Different types of finite elements are available to the user, and in FLUX
and 2nd order terminology, these are called 1st 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: fields derived from the potentials are constant.
1st and 2nd order
approach Using 2nd order elements: the potentials are approximated quadratically and
the fields are approximated linearly.
Introduction Mesh construction is surely the most time consuming step in defining a
problem. To obtain a valid mesh, one needs a certain level of experience, as
well as some intuition about the computation 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 does in fact depend on the geometrical
problem constraints, e.g., the mesh of a very thin region, but also on the physical
constraints of the problem, such as a high variation of the permeability within
an element, skin depth, etc.
As a general rule, a more rapid variation of the state variable requires
the use of smaller elements.
When one has some idea about the final result, one can decide on a coarse
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 physical criteria may be used to validate a mesh One can verify the
physical following points:
criteria to
validate a mesh
• if the field lines present cracks in the same region, the neighboring
elements are too large
• in a rotating machine, if the reaction force is different from the action
force, the mesh on the air-gap region should be refined
• when dealing with field problems coupled with circuit equations, if the
current through a coil computed by different methods differs significantly,
the mesh on the coil region should be refined.
Introduction This section refers to the mesh strategies, i.e., the two mesh possibilities
available to the user:
• To mesh the entire study domain using only the automatic mesh generator.
• To generate a mixed mesh, using a mesh that is the best adapted to the
physics of the problem for each domain.
Managing the The mesh building process should respect the constraints presented in table
constraints below, related to the modelled device.
Automatic For an automatic mesh, the software completely ensures that the geometrical
mesh interfaces are respected.
To create the mesh of faces and volumes by respecting the geometrical
interfaces, the algorithm of the automatic mesh generator can insert
additional nodes on the faces or inside the volumes, so as to respect as much
as possible the node density information assigned to the points and lines.
Mixed mesh For a mixed mesh, the user has more options to adapt the mesh to the physics
of the problem.
However, in 3D, the user may face software limitations; the conformity of the
mesh on the interfaces between different domains may be a difficult task for
the software to achieve (see the next section).
Mixed mesh: When modeling electrotechnical devices, we 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, we generate an identical mesh on the
faces (slots of machines, etc.), with the linked mesh generator.
The different A classification of different mesh generators with the type of mesh, name and
mesh advantages is presented in the table below.
generators
Introduction The use of different mesh generators in different areas is possible thanks to
the algorithms that ensure the global coherence of the mesh on the
interfaces.
There are, however, some limitations of the mixed mesh; these are detailed
below.
Constraint of The mesh must conform, i.e. there must be a “concordance” 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.
Through automatic insertion of pyramidal elements FLUX 3D ensures the
conformity of the mesh on the interface between domains meshed with
hexahedrons or prisms and domains meshed with tetrahedrons. An example is
shown in the figure below.
Principle of To ensure the conformity of the mesh, FLUX uses an algorithm to repair
algorithm to non-conformities between hexahedrons and tetrahedrons or between
repair non- rectangular faces of prisms and tetrahedrons by inserting pyramids.
conformity
In the presence of triangular and rectangular surface elements, FLUX
generates pyramids, starting from 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.
New node
The insertion of pyramids is not always possible, and there are a certain
number of limitations to the algorithm to repair non-conformities.
First limitation If the rectangular mesh is too 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, FLUX3D 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
• An inner volume is meshed using the automatic mesh generator
Overview Mesh construction includes different steps that depend, in part, on the mesh
generators used.
Generally, it is possible to distinguish the following steps:
Step Description
1 Preliminary consideration: choice of a mesh type
• automatic mesh (single mesh generator)
• mixed mesh (multiple mesh generators)
2 If mixed mesh
Then definition of the different areas
- and use of generic mesh generator
- or creation of user mesh generator
for these different areas
3 Mesh adjustment
(adjustment of the size and number of elements)
4 Mesh construction
(creation of line, surface, volume elements)
5 Choice of the type of elements: 1st order or 2nd order
Mesh strategy The two first phases of mesh process are consideration phases on mesh types
(1 and 2) and mesh generators choice. For this consideration, see section 7.2
concerning mesh strategies.
Creation, mesh This phase concern 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:
• in one hand, use the generic mesh generators (Automatic, Mapped or No
Mesh)
• in the other hand, use his own mesh generators (linked or extrusion mesh
generators)
Important:
In the geometry context, if the building options “with mesh” are activated
during propagation and/or extrusion phases, linked and/or extrusive mesh
generators are automatically created.
Adjustment Meshing and mesh adjustment are two more or less interdependent processes:
and mesh (3
• meshing (subdivision of lines, faces and volumes) is carried out by the
and 4)
software
• adjustment (adjustment of the size of the elements) is performed by the user
The complete process is represented in the diagram below.
Mesh
adjustment
Mesh lines
Mesh faces
Mesh volumes
Choice of the This last phase of mesh process is specific to Preflux 3D. With Preflux 2D,
type of elements created are automatically 2nd order elements.
elements (5)
Adjustment: Mesh adjustment consists of adjusting the size and the number of elements.
definition
Two types of To adjust the mesh, the user should take into account the geometry being
adjustment modeled.
The user has the option to set:
• the node density around selected points,
• the number and the distribution of nodes on the lines.
Information related to the node density next to selected points is information
assigned to the points; we use the phrase “mesh adjustment via the points” or
by the intermediate of mesh points.
Information concerning the number and the distribution of nodes on the
lines is assigned to the lines; we use the phrase “mesh adjustment via the
lines” or by the intermediate of mesh lines.
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 of The principle of mesh adjustment “via the lines” is illustrated in the example
adjustment “via below.
the lines”
10 equidistant elements
• the user imposes the number of elements and their distribution on the line:
10 line elements, equidistant nodes.
• the program divides the line according to this information.
Priorities for If both lines and points are assigned mesh information, the lines have priority
the lines and over points.
the points
Example
P4
• Points P1, P2, P3 and P4:
length of line elements next to points: 2
mm
• Line Lz: Lz Ly P3
geometric progression of the line elements
on the line:
- minimum distance: 1 mm
- ratio : 1.5 P1
Result:
Lx
The information for line Lz has priority over
the information assigned to points P1 and P4. P2
Problematic We have presented in the chapter concerning geometry one geometry buiding
process, and we present in this chapter one mesh construction process.
In the reality, the user generally proceeds by successive steps and he could
repeat several building geometry processes and several mesh construction
processes. So, he is going back and forth between geometry and mesh
contexts (see examples hereafter).
In this example, the user switches from geometry context to mesh context,
then go back to geometry context, …
Example 2 To facilitate the mesh of the device, the user often needs to add
supplementary points, lines, faces or volumes.
Based on these supplementary entities, the user can adjust the density of mesh
nodes and control the mesh distribution between high node density areas with
small elements and low node density areas with larger elements.
In this example, the user go back to geometry context, …after a phase in the
mesh context…
Return to Important:
geometry To go back and forth between geometry and mesh modules are authorized for
context after non-mesh structures. If the project is meshed, geometric modifications are
mesh not allowed.
operations
To modify a meshed geometry, it’s necessary to first delete the mesh.
Introduction This section presents specificities (and limitations) of mesh generators trough
examples.
Introduction The surface mapped mesh generator is relatively powerful. However, if the
geometry of a face is very different from the square reference domain, the
mesh quality may worsen and the mesh may become incoherent.
Examples of faces meshed with the mapped mesh generator are presented
below.
Note that a degradation of the mesh can be observed under the following
conditions:
• when “the corners are no longer corners” , e.g., a circle
• on faces bordered by more than four lines, if the face concavity becomes
too large; however, an exact limit for concavity is difficult to define.
Examples Examples of faces composed of four lines that are meshed with the mapped
mesh generator:
• The first face is a quadrilateral. The top and bottom lines are geometrically
meshed and the mesh is perfectly propagated inside the face.
• The second face is a 180-degree piece of ring. A geometric line subdivision
is used in the radial direction. The mesh is perfectly propagated inside the
face.
Example The face is a disc defined by four lines. The mesh is very good except at the
four “corners” of the disc.
Examples Two examples of faces, each composed of five lines (convex face and
concave face), are presented below. For these two faces the mesh is good.
Example The face shown below is composed of twelve lines and points and it is
characterized by significant concavities. The structuration is done using the
four end points on the left and on the right. The other eight vertices are
angular. The resulting mesh is incorrect.
To obtain a valid mesh, this face should be subdivided, e.g., into five faces.
Example Two types of mapped mesh of a concave face bordered by six lines.
Depending on the mesh discretization, the mesh is correct or not. Subdivision
of the face into two faces is recommended.
Introduction The volume mapped mesh generator is less powerful than the surface mapped
mesh generator. To get a good quality mesh, the shape of the geometry should
be close to the cubic reference domain (see the 3D examples).
Some examples of volumes meshed with the mapped mesh generator are
presented below.
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
incoherent.
Example Mapped mesh of a hexahedron with planar faces: The elements are of good
quality.
Refined mapped mesh of a tile: elements are incorrect because they are too
distorted
Introduction Some examples of faces meshed using a linked mesh generator are presented
below.
Extrusive mesh Though developed to mesh volumes, the extrusive mesh generator can also be
of faces 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).
Example Extrusive mesh of a quarter of circle. Extrusion of the base line by a rotation
of 90°.
Example A geometry composed of six volumes is presented below. These volumes are
meshed using three extrusions in different directions. We also imposed linear
geometric subdivisions on four lines corresponding to the four edges of the
extrusion.
Mesh of thin The mesh of a thin region can be simplified by adding supplementary points
regions and lines that are not used in the construction of regions. This is illustrated in
the figure below.
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, FLUX2D 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 can be
skin depth: 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).
Principle of During the solving process, the mesh of the translating air-gap area is
remeshing rebuilt for each change in the position of the moving part.
Step Description
1 The elements of the moving part are moved by translation
2 The elements of the displacement region are either distorted or
transferred to the other end, according to the following criteria:
• for a small displacement of the moving part (smaller than half
the height of an element) the elements are flat.
• for a large displacement of the moving part (larger than half the
height of an element) the elements are transferred to the other
end.
3 The translating air-gaps are remeshed.
Translating air- Besides the usual mesh rules, some additional rules must be respected for
gap in 2D: the mesh of the translating air-gap:
additional mesh
rules The moving part can be meshed with triangular or quadrangular elements,
but there must be always the same number of nodes on the upper and lower
edges in contact with the displacement region.
The translating air-gap should contain only one layer of triangular elements
in its thickness, and these elements should have a shape as close as possible to
an equilateral triangle.
Examples of Some examples of correct and incorrect mesh of the displacement region and
mesh of the translating air-gap are illustrated in the figure below.
Advice Besides the mesh rules already presented, we are primarily interested in how
to mesh the translating air-gap. In fact, to obtain correct results it is necessary
to mesh the translating air-gap correctly:
• a single layer of triangular elements within the thickness
• the shape of each element should be as close as possible to an equilateral
triangle.
The translating air-gap is located at the interface between the fixed and the
moving parts. If the mesh of these regions is locally refined, it will impose a
number of nodes on the external lines of the translating air-gap, and may
make it difficult to adjust the mesh in the translating air-gap.
Step Action
1 Geometry:
Construct a separate//independent translating air-gap between the
moving part and the fixed part.
2 Mesh:
Adjust the mesh on the boundaries of the translating air-gap
Displacement
region
« Additional layers»
Displacement at When the moving part moves at a constant velocity, the translating air-
constant gap should be meshed evenly, depending on the displacement at each time
velocity: advice step. The mesh of the translating air-gap is thus identical at each time step,
one node replacing another node. In this way, we avoid possible mesh noise
that can be reflected in the computation of the global quantities: force, etc.
Thus, one should adjust the mesh on the translating air-gap according to the
following rules:
• adjust the number of nodes on the edges of the translating air-gap so that the
value of the triangle’s edge corresponds to the displacement of the mobile
part over a time step:
∆d = v . ∆t
where ∆d is the value of the triangle’s edge, v is the displacement velocity
and ∆t the value of the time step.
• modify the thickness of the translating air-gap so that the triangles are
equilateral:
h = √3/2 . ∆d
where h is the triangle height, ∆t the value of the time step and ∆d the value
of the triangle’s edge.
∆d
Principle of During the solving process, the mesh of the rotating air-gap is rebuilt at each
remeshing change in the position of the moving part.
Rotating air- In addition to the usual mesh rules, some rules must be respected for the mesh
gap: additional of the rotating air-gap, as follows:
mesh rules
The rotating air-gap should contain only a single layer of triangular
elements, and their shape must be as close as possible to an equilateral
triangle.
Some examples of correct and incorrect mesh for the rotating air-gap are
illustrated in the following figure.
The rotating air-gap is located at the interface between the fixed part and the
moving part. If the mesh of these regions is locally refined, it will impose the
number of nodes on the external lines of the rotating air-gap and then it may
be difficult to adjust the number and the shape of triangles in the rotating air-
gap.
Step Action
1 Geometry:
Build an independent//separate rotating air-gap in the middle of
the air-gap between the mobile and the fixed parts.
2 Mesh:
Adjust the mesh on the boundaries of the rotating air-gap.
Rotation at When the moving part moves at a constant velocity, the rotating air-gap
constant should be meshed evenly, depending on the displacement at each time step.
velocity: advice The mesh of the rotating air-gap is thus identical at each time step, one node
replacing another node.
In this way, we avoid possible mesh noise, which can be reflected in the
computation of global quantities: torque, etc.
Thus, one should adjust the mesh on the rotating air-gap according to the
following rules:
• adjust the number of nodes on the boundaries of the rotating air-gap so that
the value of the triangle’s edge corresponds to the displacement of the
mobile part over a time step:
r.θ = v . ∆t
where r.θ is the value of the triangle’s edge, v the angular velocity and ∆t
the time step.
• Modify the thickness of the rotating air-gap to obtain equilateral triangles:
h = √3/2 . r.θ
where h is the height of the triangle and r.θ the value of the triangle’s edge.
θ
r int h
r ext
Introduction This section presents a general point of view concerning the authorized
formats for importation and the principle of conversion.
Authorized The authorized formats for importation can be divided in two categories:
formats • geometry importation:
- in standard format: IGES, STEP, DXF, STL
- in proper format: FBD, IF3 (INTER)
• mesh importation:
- in standard format: NASTRAN, PATRAN, UNV
Importation The various formats of geometrical files accepted by FLUX are gathered in
formats the table below.
The various formats of mesh files accepted by FLUX are gathered in the table
below.
Type of For importation FLUX accepts only files in text format. The binary files are
accepted file not accepted.
Attention: It is not possible to import the assembly file of several IGS files
(*_ASM.IGS).
Multiple Multiple importation is available. FLUX is able to import the files with
importation different formats (DXF, STL, etc) in the same project.
Principle of Importation is an operation that convert the initial file entities into FLUX
conversion entities (geometric entities of Point, Line, … type).
Options for To perform the data conversion, different options are proposed to the user.
conversion
These options are of two types:
• general options, available for all formats
• particular options, specific to the format
Only the general options are described in this section.
General options The general options for conversion available for all formats are following:
for conversion • 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
These options are detailed in the following blocks.
Length unit The device is described in proper units in the initial file, but the information
about the length unit is not present in this file.
At the moment of importation, the user can choose a length unit as follows:
• by default: meter
• another possibility: meter * conversion factor
The conversion factor is the ratio between the length unit chosen by the user
and the FLUX length unit, which is the meter.
Examples of conversion are presented in the table below.
If the entities in the and the conversion the unit in the FLUX
initial file are in … factor is equal with … project is …
Meter 1 Meter
Millimeter 0.001 Millimeter
Micron (micrometer) 10-6 Micron
Caution:
The length unit previously chosen is automatically assigned to the imported
coordinate system XXXi.
If the device is imported in another coordinate system, the user must assure
that the length unit of this coordinate system is compatible with the
importation length unit.
Precision The absolute precision is the minimum distance between two points of the
geometry (or between two nodes of the mesh) from which the two points (or
the two nodes) of the initial file are represented by only one point in the
FLUX project.
Absolute precision
3D geometry 2D geometry
Introduction This section deals with the importation of geometry starting from geometrical
files.
The formats which enable the geometry importation are following:
• standard formats:
- Initial Graphics Exchange Specification (extensions: *.IGES, *.IGS)
- Standard for Exchange of Product (extensions: *.STEP, *.STP)
- Draw eXchange File (extension: *.DXF)
- STereo Lithography (extension: *.STL)
• proper formats
- FLUX2D geometry (extension: *.FBD)
- IGES for FLUX3D (extension: *.IF3)
Interest of The geometry importation from a file in IGES / STEP standard format
FLUX for enables the consideration by the FLUX projects of complex geometries with
IGES / STEP uneven surfaces.
formats
These surfaces cannot be directly built with the FLUX tools.
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 geometrical 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
2 Geometry checking / search geometric defects
3 Correction of geometric defects
and/or
geometry simplification
Operation The principle of operation of the importation is following: 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...) in
the final file.
Conversion of The entities of the initial file are read and converted into the FLUX entities.
entities The summary table is presented below.
Conversion of
entities
(continued)
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.
Defects The research of the geometric defects can be carried out in two ways:
research modes • by type of defect (described as research by type)
• for the assembly of types of defects (described as global checking of the
geometry)
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.
⇒ L1 L3
L2 P4
L2 P3
P3 P4
P1 P2
P1 P2
⇒
L2
L1
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
L2 L3
L1 L1
P3
P1 P2 P4 P1 P4
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 deals with the importation of geometry starting from mesh files,
named the mesh importation.
The standard formats which enable the mesh importation are following:
• UNiVersel Ideas Master Serie (extension: *.UNV)
• NASTRAN neutral (extensions: *.NAS / *.DAT)
• PATRAN neutral (extension: *.PAN / *.DAT)
Interest The importation of a geometry starting from mesh file enables the
consideration by the FLUX projects of complexes geometries with uneven
surfaces.
These surfaces cannot be directly built with the FLUX tools.
Introduction The importation of a geometry starting from mesh file is an operation which
enables the building of the device geometry based on mesh information of an
initial file.
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 importation process involves three stages, briefly described in the
process table below and detailed in the next paragraphs.
Stage Description
1 Conversion
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
conversion 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
contains entities CAD which are converted into FLUX
the format
… entities …
…
nodes points defined by parameterized
coordinates
NASTRAN line elements lines of edges list type
/ PATRAN
face elements faces of facets list type
/ UNV
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
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
Set of faces that results A single face that
from facets of the initial contains many
file facets
Fusion
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
surface and of fusion. All adjacent faces whose angle is less than the fusion angle are
angle of fusion regrouped in a single face (See figure of example below).
Example :
Angle ∈ [0°; α ]
Three adjacent faces are
regrouped in a single face
Angle ∈ [0°; α ]
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.
Fusion
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 depends 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).