Professional Documents
Culture Documents
Flux
by CEDRAT
CEDRAT
15 Chemin de Malacher - Inovallée
38246 Meylan Cedex
FRANCE
Phone: +33 (0)4 76 90 50 45
Fax: +33 (0)4 56 38 08 30
E-mail: cedrat@cedrat.com
Web: http://www.cedrat.com
Foreword
*(Please read before starting this document)
Description of The goal of this basic example is to familiarize the user with the Flux
the example geometry and mesh description process using a simple device.
The user who wants to learn the physics, solving and post-processing
description process will consult one of the three basics examples.
Required If you are a beginner with Flux, it is recommended that you read and work
knowledge through the complete text of the chapters.
If you are an experienced user of Flux, you may be able to enter the
problem information quickly without having to read the “about”
paragraphs.
Support files You can refer to the supplied files in case of difficulties completing this
included... tutorial, or directly adapt this tutorial to your needs, without going through
all the steps to construct the model. If you install Flux with the
documentation and the examples, files are placed in the folder:
C:\CEDRAT (or your installation folder)
\FluxDocExamples_11.1\Examples2D \ GeometryMesh. Supplied files are
command files written in PyFlux language. The user can launch them in
order to automatically recover the Flux projects for each case.
**(.py files are launched by accessing Project/Command file from the
Flux drop down menu.)
TABLE OF CONTENTS
Part A: General information 1
1. Overview..................................................................................................................................3
1.1. Introduction ...................................................................................................................................4
1.2. The studied device: a variable reluctance speed sensor..............................................................5
1.3. The device description in Flux: which strategy? ...........................................................................6
1.4. Main stages for geometry description ...........................................................................................7
2. Get started with Flux................................................................................................................9
2.1. Start the Flux Supervisor.............................................................................................................11
2.2. About the Flux Supervisor...........................................................................................................12
2.3. Open Flux2D ...............................................................................................................................13
5. Annex...................................................................................................................................169
5.1. Use of command files................................................................................................................171
5.1.1. About command files and the Python language.........................................................172
5.1.2. Execute command file ................................................................................................173
Introduction This part A contains the presentation of the studied device and some
information about the Flux software.
1. Overview
Introduction This chapter presents the studied device (a variable reluctance speed sensor)
and the strategy of the device description in Flux.
1.1. Introduction
Introduction Flux is finite elements software for electromagnetic simulation. Flux handles
the design and analysis of any electromagnetic device.
To perform a study with Flux, you build a finite elements project. This
process is broken into 5 phases:
geometry description*
mesh generation
description of the physical properties
solving process
analysis of the results
Only the first two phases are presented in this document.
* In this document the geometry description is done in the Flux standard mode. The
user will have to close the Sketcher context..
Objective The objective of this document is the discovery and mastering of various
functionalities in the software through the example of a simple device.
The device is a variable reluctance speed sensor described in the following
paragraphs.
The studied functionalities* of the software are those, related to the phases of
construction of the geometry and generation of the mesh.
The user will also find in this document useful information concerning the
software: description of the environment, data management, graphic
representation, etc.
Structure The variable reluctance speed sensor consists of a cogged wheel, a magnet
and a coil connected to a measuring resistance.
Operation The rotation of the cogged wheel near the tip of the sensor changes the
magnetic Flux, creating an analog voltage signal that can be recovered in
probes.
COIL 1+
MAGNET 1 PROBE 1
WHEEL
COIL 1-
COIL 2+
MAGNET 2 PROBE 2
COIL 2-
Process An outline of the general construction process is given in the two following
(general blocks:
aspects) the first process (1) is presented for ease of understanding
the second process (2) is the real building process used in this document.
Process (1) An outline of the logical process of the geometry description is given in the
table below.
Phase Description
1 Probe description
3 Sensor description
Process (2) An outline of the real process of the geometry description, used in this tutorial,
is given in the table below.
1 Probe description Project: PROBE_2D.FLU
Introduction This chapter shows how to start working with Flux and includes a
presentation of the Flux Supervisor.
It also shows how to start the preprocessor for Flux2D.
More detailed information about Flux2D menus and commands is presented
in Part B § 1.1.2 About the Flux2D window.
The Flux The Flux Supervisor organizes all the modules for both Flux2D and Flux3D.
Supervisor
window The Flux Supervisor window is divided into several areas. These areas are
identified in the following figure and described in the table below.
Menu bar
Tool bar
Modules
Directory
manager
Project
files
Program
manager
Geometry Most recent used files
view
Area Function
Modules to list and launch all the Flux modules (Flux2D,
Circuit, etc.)
Directory manager to show the computer’s complete directory
Project files to display all Flux projects in the selected directory
Program manager contains shortcuts to the Dos Shell and the Explorer
Geometry view to display a preview of the geometry, if a project is
selected
Recent files To display most recent used
Goal The preprocessor Flux2D will be opened to manage the geometry building of
the device and mesh generation.
* A new project must be created to see the complete set of PreFlux commands.
Introduction This part B contains the description of the studied device and provide when
needed some information about the Flux software.
Introduction This chapter presents the general steps of the geometry construction and the
data required to describe the probe geometry.
The probe object is presented in the figure below.
COIL
MAGNET
Introduction Each time that a Flux program is started, it is possible to open an existing
project or create a new project.
Goal At the beginning of the geometry description a new project will be created.
OR
Result Flux retrieves a great deal of information from the database model in order to
build the proper database of the new project. The new project is temporarily
named ANONYMOUS.
The Flux2D window for Flux 2D applications is opened directly in the
Sketcher context as below.
Action Close the sketcher context in order to describe the geometry in Flux.
Flux2D window The Flux2D project window opens in the Geometry context. The Flux2D
project window has the complete set of the tools to build the geometry of the
device, to mesh the computation domain and to visualize the device during
different steps of the construction.
Areas The Flux2D project window is divided into three main areas. The different
areas can be resized or hid by using the arrows.
Graphic
Data tree scene
History zone
Area Function
Data tree displays all the problem data in a tree structure that is
expanded using the key
Graphic scene displays the graphic entities
History zone prints Python command instructions
Menus and All Flux2D commands are in the menus. Toolbars include icons that are
toolbars shortcuts to the most useful commands.
Menus
Toolbars
Introduction There are several ways to access the user guide information:
the complete user guide
the on-line help on an option
Method 1 To open the complete user’s guide in the Flux Supervisor from the …
Help menu: Help toolbar:
1. Click on the icon
1. Click on
Manual… OR
Method 2 To open the complete user’s guide in Flux2D from the Help menu:
1. Click on Contents
Method 3 To open the on-line help about an entity from its dialog box:
User guide The on-line version of the Flux user guide is presented in the figure below.
The corresponding sections of the Flux user’s guide can be opened by
clicking on the hyperlinks.
Tools of the After having activated the geometry context, toolbars dedicated to the
geometry geometry description appear in the Flux2D window.
context
The different toolbars and their principal roles are briefly described below.
1 2 3 4 5
Goal The new project, temporarily named ANONYMOUS, will be renamed and
saved.
OR
2. Type PROBE_2D
as project name
3. Click on Save
Note:
The user can choose another name for the project and change the current project
directory (working directory), displayed in the Save In field at the top.
A periodic data backup is recommended.
Reading advice This section presents an outline of the geometry building process of the
probe. Details on the different contents - definition of new concepts,
explanation on the use of different tools, etc.- are given in the following
sections.
Available tools The tools available for the geometric construction are: geometric parameters,
coordinate systems and transformations.
Geometric tool Function
geometric parameter to allow the dimensional parameter setting of parts
coordinate system to facilitate the relative positioning of parts
transformation to allow the construction by propagation or extrusion
COIL_H MAG_R
COIL_IR
In order to… …it is planned to… …as show in the figure below
create a MAIN_CS
Cartesian coordinate
system
(the PROBE_CS PROBE_CS
locate the probe coordinate system will be ANGLE
create a MIRROR
simplify the
transformation of the
geometry
affinity type to build
building
faces by propagation
Outline An outline of the geometry building process is presented in the table below.
Stage Description
As the PROBE.FLU will be later imported in
De-activation of
1 Sensor_2D.FLU it is necessary to de-activate the
Aided mesh Aided mesh*
Inner radius of the coil: COIL_IR = 2.8 mm
Outer radius of the coil: COIL_OR = 3.5 mm
Creation of 6 Height of the coil: COIL_H = 16 mm
2 geometric Radius of the magnet: MAG_R = 2.5 mm
parameters Height of the magnet: MAG_H = 20 mm
Angle for the probe angular position
in the final device: ANGLE = 0°
Cartesian coordinate system: MAIN_CS
Creation of 2 (Global coordinate system for the probe positioning
3 coordinate in the final device)
systems Cartesian coordinate system: PROBE_CS
(Local coordinate system for the probe description)
Creation of 1
6 Affine transformation for the probe: MIRROR
transformation
Introduction The geometry building begins by the creation of geometric tools to build the
probe geometry: geometric parameters and coordinate systems.
The parameters and coordinate systems required to describe the geometry of
the probe are presented in the figure below.
COIL_H MAG_R
COIL_IR
ANGLE COIL_OR
PROBE_CS
MAIN_CS
MAG_H
Definition Aided mesh is a tool box that permits the user to quickly realize a good
quality mesh. The aided mesh (global adjustment) is activated by default on
all flux projects (See About Aided mesh).
Aided mesh Aided mesh assigns specific global tool on all entities of a new project. In
and imported order not to interfere during project import to the main project, it is needed to
Flux project de-activate aided mesh on project that will be imported later.
Creating An outline of the creating process is presented in the table below. The
process different steps are detailed in the blocks describing the creation of project
entities.
Step Description
1 Activating the New command
2 Definition of entity attributes
Access the The access to the New command can be carried out:
“New” from the Geometry menu bar (1)
command using icons from the Geometry toolbar (2)
from the data tree (3)
These three methods to access the New command are presented in the
following figure (with the example of creation of a geometric parameter) and
described in the table below.
Method Description
1 point on the entity-type and click on New
2 click on the corresponding icon
3 double-click on the entity-type or right click and click on New
Dialog box The interaction with the database is done using dialog boxes. The user can
enter information relating to the data in this box.
Entity-type:
Geometric parameter
Title bar
Name
Comment
Characteristics
On-line help
concerning the entity
The required fields (necessary and sufficient for the definition of the entity) are
marked by an asterisk *.
Principle of use Geometric parameters are entities that can be used for the geometry building
of the device, i.e. for the definition of points, coordinate systems, geometric
transformations, infinite box dimensions and other geometric entities.
Defining parameters simplifies the construction of the geometry and enables
modifications to be made more easily later. Many changes can be made by
modifying only the definition of the parameters instead of modifying all the
individual points, lines or nodes that might be built using the parameters.
Parameters also can modify the scale of the geometry through their
relationship with coordinate systems.
Definition of The geometric parameters are defined by the name and the algebraic
parameters expressions.
The algebraic expressions may contain:
constants
arithmetic operators (+, -, *, /, **)
arithmetic functions allowed in FORTRAN (SQRT, LOG, SIN, etc.)*
other parameters
combinations of any of these
* Caution: ATAN2D is preferred over ATAN in order to have a better accuracy.
Parameters and Please note that parameters are independent of any unit of measurement. In
measurement other words, the numerical value entered for a parameter is not changed when
units the unit of measurement is changed. Any measurement unit associated with a
parameter derives from the coordinate system in which the parameter is used.
For example, a parameter's value may be 10 in a coordinate system with
millimeters as units. This parameter's value is still 10 whether the coordinate
system's units are changed to inches or meters or kilometers or any other
available unit. Thus, when you use parameters, you can also modify the scale
of a geometric feature without reentering each point or item.
Goal Six parameters, required to describe the geometry of the probe, are presented
in the figure below.
COIL base
COIL_H MAG_R
COIL_IR
COIL_OR
ANGLE
MAGNET base
MAG_H
Data The table below contains the values of the geometric parameters.
Geometric parameters
Name Comment Expression
COIL_IR Inner radius of the coil 2.8
COIL_OR Outer radius of the coil 3.5
COIL_H Height of the coil 16
ANGLE Angle of the probe position 0
MAG_R Radius of the magnet 2.5
MAG_H Height of the magnet 20
Notice too, that as you move your cursor over the parameter names, the comments
are displayed to help you to identify the parameters.
Undo command There is a Flux command to undo operations. The user can use this command
if an error was made.
There are two possibilities described in the table below.
Method Function
1 to undo the previous operation to undo the last action
2 to undo several operations to undo all actions up to the indicated
action
OR
Overview of Selection of entities can be done with the following selection modes:
selection modes graphic selection (with the mouse)
- in the data tree for all entities
- in the graphic scene for graphic entities
identifier selection (by name / by number)
advanced selection (by criterion / by choice)
Graphic An outline of the selection process for graphic entities is presented in the
selection table below. The different steps are detailed in the blocks describing the
process creation of project entities.
Step Description
1 Activating of the selection filter
2 Selection of the entity in the graphic scene
Selection filter A selection filter makes possible to identify the selectable entity-type.
For the graphic entities, the selection filter can be activated by the
commands from the Selection menu or from the Selection toolbar.
Selection menu/ The choices in the Selection menu or in the Selection toolbar relate to the
toolbar graphic entities; they are presented in the figure and described in the table
below.
No Select
selection points / lines / faces / volumes
Free Select
selection face regions / volume regions
Choice Description
No selection nothing selectable
all is selectable
Free selection The first entity, selected by the user, determines the
entity-type selectable
Select points the points are selectable
… …
Step 2: Click on the specific graphic entity to select the entity in the graphic scene.
selection in the The selected entity is highlighted.
graphic scene
Step Description
1 Activating the command (Edit, Edit array, Delete, Force delete)
and selection of entities
2 Modification of the entity characteristics /
Validation of the entity deletion
Access the For the commands Edit / Edit array / Delete / Force delete, which require
commands data selection, the access to the command, can be carried out:
from the menu
- activation of the command and then selection via a selection box (1)
from the data tree:
- activation of the command and then selection via a selection box (2)
- direct selection of an entity and then activation of the command (2’)
from the graphic scene (only for graphic entities)
These methods to access the command are presented in the following figure
(with the example of editing the ANGLE geometric parameter) and described
in the table below.
Selection
1 via
a selection box
Selection
2 via
a selection box
2’
Method Description
1 point on the entity-type and click on the command
select entities via a Selection box
2 right click on the entity-type and click on the command
select entities via a Selection box
2’ double-click on the entity
or right click on the entity and click on the command
3 right click on the graphic entity* and click on the command
* The corresponding selection filter must be first activated.
Edition mode To check the data, the user needs to edit (and modify if necessary) the entities
created.
There are two modes of edition:
the edition in a dialog box is used to check and to modify the
characteristics of one entity
Entity-type
Entity
Name
Comment
Type (1)
Type (2)
Characteristics
On-line help
concerning the entity
Name
Comment
Type (2)
Characteristics
Type (1)
Deletion mode The user sometimes needs to delete entities. He can easily delete an entity if it
is an independent entity. However, very often, the entity is connected to other
entities and the deletion of the entity can cause the deletion of all the
connected entities.
There are thus two modes of deletion:
the simple deletion:
is carried out on independent entities (non connected with other entities)
the in force deletion :
is carried out on any entity.
These two modes are described in the table below:
Mode Destroyable entity What is destroyed
simple independent selected entity
in force any selected entity + entities connected to it
Introduction When referring to the graphic representation of a device, we are interested in:
the different entities and their appearance: points and their visibility, lines
and their color, faces, surface elements, etc.
the type of displayed view: side view, top view, bottom view, global view,
etc. and its position and dimensions in the graphic display zone.
How to modify There are three methods to modify the view in the graphic scene. The
a view modifications can be made:
from the View menu (1)
using icons from the View toolbar (2)
using the mouse (3)
3
Continued on next page
Using the View Flux2D offers modes to modify the view using commands from the View
menu / icons menu or icons from the View toolbar. They are described in the table below.
Command Icon Mode Mode activation
Zoom all To set total view click on the command / icon
Zoom out - To reduce the view click on the command
Zoom in + To enlarge the view click on the command
To enlarge a part of click on the command / icon
Zoom
view and select the rectangular zone
region
to enlarge using the mouse
4 views To set unset the 4 click on the command / icon
mode views mode
To display or not the click on the command / icon
Full device
full device
Using the Flux2D offers modes to modify the view using the mouse, described in the
mouse table below. User can determine the active mode by the different cursors.
Predefined It is possible to choose one view from predefined views available in Flux.
views
The different commands to set predefined views and their corresponding
icons are presented in the table below.
Background It is possible to swap the background color from black to white and vise versa
color by using the Reverse video command.
Goal To better visualize the geometry, the background color will be changed.
1. Click on
Reverse video
Introduction All geometric features are defined within a specific coordinate system.
Defining our own coordinate systems enables us to describe and modify the
geometry much more easily.
Types of The different types of coordinate systems for 2D domain and associated
coordinate coordinates are presented below.
systems
Coordinate The user can define the length and angle units for a coordinate system defined
system units with respect to the global coordinate system (millimeter and degree by
default).
A coordinate system defined with respect to the local coordinate system
inherits the units of the reference coordinate system (parent coordinate
system).
Predefined To assist the user, Flux provides a default coordinate system XY1. It is
coordinate created for every new project. It is possible to rename it, to modify it or to
system delete it.
XY1 is the coordinate system of Cartesian type and defined with respect to
the global coordinate system.
Coordinate system XY1 Characteristics
Y Origin of coordinate system:
first component: 0
second component: 0
Rotation angle:
y
about Z axis: 0
X
x
Goal Two coordinate systems, required to describe the geometry of the probe, are
presented in the figure below.
PROBE_CS
MAIN_CS
32 mm
Cartesian coordinate system type defined with respect to the Local system
Parent Origin Rotation
Name Comment coord. coord. angle
system X Y About Z
Probe coordinate
PROBE_CS MAIN_CS 32 0 0
system
11. Click on OK
20. Click on OK
MAIN_CS PROBE_CS
Introduction The next step of the geometry description is the creation of points and lines to
build the probe.
The next figure describes the geometry of the probe.
COIL_H
MAG_R
COIL_IR
COIL_OR
MAG_H
Point defined A point could be defined by propagation from another point using a
by propagation transformation.
created point
translation
origin point
Point number The number to identify the point is automatically allocated by Flux during the
point creation.
Goal Eight points are required to build the probe base, as presented in the figure
below.
COIL_H
MAG_R
Point 6 Point 7 COIL_IR
Point 5 Point 8 COIL_OR
Point 2 Point 3
PROBE_CS
Point 1 Point 4
MAG_H
Data The table below describes the points for the probe base.
Points defined by its parametric coordinates
Coordinate Coordinates
No
system X Y
1 -MAG_H/2 0
2 -MAG_H/2 MAG_R
3 MAG_H/2 MAG_R
4 MAG_H/2 0
PROBE_CS
5 -COIL_H/2 COIL_IR
6 -COIL_H/2 COIL_OR
7 COIL_H/2 COIL_OR
8 COIL_H/2 COIL_IR
OR
6. Click on OK
Introduction The graphic representation of objects is not the same during the different
steps of building the device model.
From one step to the next, we are interested in:
representation of points and lines during geometry building
representation of nodes and surface elements during mesh generation
Possibilities to To control the graphic representation, Flux provides default settings, but the
modify the user can also modify this representation.
visualization
To do so, the following commands are available:
the Display commands, which manages the list of entities to display,
the Edit command, which allows the modification of the entity appearance
(characteristics of visibility and color)
How to display There are two methods to display entities in the graphic scene. The
entities modifications can be made:
from the Display menu (1)
using icons from the Display toolbar (2)
Segments Segments are defined by starting and ending points. It does not matter if you
swap the starting and ending points.
radius
center
point angle
starting point
or by three points:
The arc is drawn around a triangle defined by three points. It is oriented in
the direction imposed by three points.
middle point
ending point
starting point
Number The number to identify the line is automatically allocated by Flux during the
line creation.
Goal Eight straight segments are required to connect each point and create closed
outlines of the magnet and coil bases.
The order to create the lines is presented in the figure below.
COIL base
Line 6
Line 5 Line 7
Line 8
Line 2
Line 1 Line 3
Line 4
MAGNET base
Data The table below describes the lines for the probe base.
Segment defined by starting and ending points
No Starting point Ending point
1 1 2
2 2 3
3 3 4
4 4 1
5 5 6
6 6 7
7 7 8
8 8 5
OR
Introduction The next step of the geometry description is building faces for the probe.
The probe geometry is presented in the figure below.
Introduction The faces are automatically created and identified using the algorithms of
automatic construction.
About faces The faces created by Flux using the automatic construction algorithms are
faces contained by planar, cylindrical or conical surfaces. These faces are
named automatic faces.
OR
Principle of use Transformations are geometric functions that allow the creation of new
objects from existing objects.
y original
point
x
(-0.5)
center point
(0)
of the affinity
(0.5)
y
(1)
original line
x
Caution: Applying an affinity transformation with respect to a point with the scaling
factor equal 0 causes an error, because the line is degenerated and reduced to a point.
(-1)
(-0.5)
affinity line
(0)
y (1)
original line
x
Symmetry line
Point 1 Point 4
Data The characteristics of the transformation are shown in the following table:
Affine transformation with respect to a line defined by 2 points
Name Comment 1st point 2nd point Scaling factor
Symmetry
MIRROR transformation for the 1 4 -1
probe
OR
Examples In the figures below, the line is built by propagation / extrusion of the existing
line (source) using a translation vector.
Construction by propagation: Construction by extrusion:
image line image line
translation
translation connection
elements
source line
source line
Building Some building options are provided in order to simplify the user’s work and
options to carry out a certain number of repetitive tasks semi-automatically.
The building options for construction by propagation, classified in three
categories, are presented in the table below.
The options … allow …
for geometric to define the geometric entities (points, lines, faces)
building created during the propagation
to create the linked mesh generator associated to the
for mesh transformation
preparation to assign the linked mesh generator to the entities
created by transformation
to create surface regions
for preparation
of regions to assign the created regions to the geometric entities
created by transformation
The building options for construction by extrusion, classified in two
categories, are presented in the table below.
The options … allow …
to define the form of connection elements
for geometric
building to define the geometric entities (points, lines, faces)
created during the extrusion
to create the extrusion mesh generator associated to the
for mesh transformation
preparation to assign the extrusion mesh generator to the entities
created by transformation
Definition / use One speaks about selection by criterion when the selection is carried out by
the intermediary of the existing relations between the various entities (points
belonging to a line, ...) or characteristics, common to several entities (faces
with the same color, faces on the same surface, ...).
Operation The selection by criterion is available on the level of selection boxes and is
mode carried out in two stages as presented in the table below.
Stage Description
1 From a selection box:
opening the criteria list (with the button )
and selection of a criterion
2 From a specific (with logical operators) selection box:
selection of entities (graphic selection, by identifier or criterion)
with applying selection operators to the group of entities
Selection To manage the logical operations on the groups of the selected entities, the
operators user disposes the selection operators introduced in the table below.
Operator Function
Exclude to remove entities from the list
Union to add entities in the list
Intersect to carry out the intersection of two groups of selection
Goal The MIRROR transformation will be applied once to propagate two faces, as
shown in the following figure.
Face 2
Face 1
OR
2. Click on
7. Click on OK
OR
2. Click on Yes
Introduction This chapter presents the general steps of the geometry construction and the
data required to describe the wheel base geometry.
The wheel base object is presented in the figure below.
TOOTH
Introduction Each time that a Flux program is started, it is possible to open an existing
project or create a new project.
2.1.1. Create and name a new project for the wheel base
Goal At the beginning of the model description a new project will be created. The
new project will be renamed and saved.
OR
2. Type WHEEL_BASE_2D
as project name
3. Click on Save
Available tools The tools available for geometric construction are: geometric parameters,
coordinate systems and transformations.
to create a WHEEL_CS
WHEEL_CS
to easily enter the cylindrical coordinate
coordinates of the system specific to the
points wheel base
(elementary pattern) (to anchor the wheel
center)
TOOTH_OR
TOOTH_IR
to easily change
to create 4 parameters to
dimensions of the
set dimensions of the BETA
wheel
wheel elementary pattern
(elementary pattern) WHEEL_R
to create an ALPHA
to position the wheel in parameter to define the ALPHA
the final project angular position of the
(anticipation) WHEEL_CS coordinate
system
to create a TOOTH_N
parameter to define the
number of teeth
to simplify the
geometry building to create a ROTZ_WHEEL
transformation of the
rotation type to build the
wheel base by propagation
Outline An outline of the geometry description process to build the wheel base
geometry is presented in the table below.
Caution: the geometric tools will be prepared for building the whole wheel,
but we will build only the elementary pattern. The construction of the whole
wheel will be carried out with the sensor construction!!!
Stage Description
As the WHEEL_BASE.FLU will be later imported in
De-activation of
1 Sensor_2D.FLU it is necessary to de-activate the
Aided mesh Aided mesh*
Tooth inner radius: TOOTH_IR = 12.5 mm
Tooth outer radius: TOOTH_OR = 21.5 mm
Creation of 6 Number of teeth: TOOTH_N = 3
2 geometric Tooth angle: BETA =15°
parameters Wheel radius: WHEEL_R = 10 mm
Angle for the wheel angular position
in the final device: ALPHA = 0°
Creation of 1 Cylindrical coordinate system: WHEEL_CS
3 coordinate (global coordinate system for the wheel description
system and positioning in the final device)
Introduction The geometry building begins by the creation of geometric tools: geometric
parameters and a coordinate system.
TOOTH_OR
TOOTH_IR
WHEEL_CS
BETA
ALPHA WHEEL_R
Definition Aided mesh is a tool box that permits the user to quickly realize a good
quality mesh. The aided mesh (global adjustment) is activated by default on
all flux projects.
Aided mesh Aided mesh assigns specific global tool on all entities of a new project. In
and imported order not to interfere during project import to the main project, it is needed to
Flux project de-activate aided mesh on project that will be imported later.
Goal Six parameters are required for the geometry description of the wheel.
The parameters, required to build the wheel base object, are presented in the
next figure.
TOOTH_OR
TOOTH_IR
BETA
ALPHA WHEEL_R
Data The table below contains the values of the geometric parameters.
Geometric parameters
Name Comment Expression
TOOTH_IR Inner radius of the tooth 12.5
TOOTH_OR Outer radius of the tooth 21.5
TOOTH_N Number of teeth 3
WHEEL_R Radius of the wheel 10
ALPHA Wheel angle 0
BETA Tooth angle 15
WHEEL_CS
11. Click on OK
Introduction The next step is the creation of points and lines for the wheel base object.
The next figure describes the geometry of the wheel base object.
TOOTH_OR
TOOTH_IR
BETA
WHEEL_R
Goal Six points are required to build the wheel base outline, as presented in the
figure below.
TOOTH_OR
Point 5
TOOTH_IR
Point 3
BETA
Point 2
Point 1
WHEEL_R
Point 4
Point 6
Data The table below describes the points for the wheel base.
Points defined by its parametric coordinates
Coordinate Coordinates*
No
system R
1 0 0
2 WHEEL_R 0
3 TOOTH_IR BETA
WHEEL_CS
4 TOOTH_IR -BETA
5 TOOTH_OR BETA
6 TOOTH_OR -BETA
OR
6. Click on OK
Goal Three straight segments and two arcs are required to construct the wheel base
outline.
The order to create the lines is presented in the figure below.
Line 2
Line 1
Line 4 Line 5
Line 3
Note:
It does not matter which are the starting and ending points of the straight segments.
The arc is counter-clockwise oriented, so it is not possible to swap the starting and
ending points during the creation of the arcs.
Data The tables below describe the lines for the wheel base:
Segment defined by starting and ending points
No Starting point Ending point
1 1 2
2 3 5
3 4 6
OR
OR
Introduction The next step is building the face for the wheel base object.
OR
Introduction The whole wheel will be built by means of a transformation. The last step is
the creation of this transformation.
360/TOOTH_N
Point 1
Data The characteristics of the transformation are shown in the following table:
OR
OR
2. Click on Yes
Introduction This chapter presents the general steps of geometry construction and the data
required to describe the sensor geometry.
The sensor is presented in the figure below.
INFINITE BOX
WHEEL
PROBE 1
PROBE 2
Introduction Each time that a Flux program is started, it is possible to open an existing
project or create a new project.
Goal At the beginning of the model description a new project will be created. The
new project will be renamed and saved.
OR
2. Type SENSOR_2D
as project name
3. Click on Save
Reading advice This section presents an outline of the sensor geometry building process.
Details on the different contents - definition of new concepts, explanation on
the use of different tools, etc.- are given in the following sections.
Strategy: The main principle of geometric construction adopted in this tutorial is the
reminder following:
description of elementary parts of the structure (Flux objects) in
independent Flux projects: probe, base wheel
construction of the whole sensor in a new Flux project by using of existing
Flux objects
Device analysis The analysis of the device and the construction tools chosen within the
framework of this tutorial are summarized in the table below.
The operations it is planned …
…
to use the
ROTZ_WHEEL
to easily build the transformation of
wheel base rotation type to build
geometry the wheel by means of
propagation/extrusion
construction
ALPHA
ANGLE
Outline An outline of the geometry description process to build the sensor geometry
is presented in the table below.
Stage Description
2 Building the whole wheel (see details in § 3.3.2 Geometry building process of the wheel)
Introduction The geometry description of the sensor begins by the importation of the wheel
base object and building the whole wheel.
The wheel base object and the whole wheel are presented below.
Wheel base Wheel
Goal The wheel base object will be imported into the current project.
Action To import the wheel base object from the Project menu:
1. Point on Import
and click on Import FLUX object
2. Click on
3. Select
WHEEL_BASE_2D.FLU
4. Click on Open
5. Click on OK
Process The main steps of the geometry description process to build the whole wheel
are presented in the table below.
Step Action
1 Propagate the face
(tooth)
(and preparation of
the mesh
generator*)
3 Create an arc
5 Build faces
* Refer to section “
About mesh tools” on Linked Mesh Generator
Face 1
OR
3. Select ROTZ_WHEEL as
transformation
4. Type 2 as number of times to apply
the transformation
5. Select Add Faces, Lines and Points
as building options for propagation
6. Click on OK
Line 1
OR
3. Select ROTZ_WHEEL as
transformation
4. Type 3 as number of times to apply
the transformation
5. Select Standard as type
6. Select Add Faces, Lines and Points
as building options for extrusion
7. Click on OK
Goal One arc is required to connect points 3 and 10 to complete the wheel
geometry, as presented in the figure below.
Point 10
Point 3
Data The table below describes the characteristics of the line to create for the
wheel.
Arc defined by its radius, starting and ending points
No Coordinate system Radius Starting point Ending point
19 WHEEL_CS TOOTH_IR 3 10
OR
Line 19
OR
OR
Goal The probe object will be imported into the current project.
1. Point on Import
and click on Import FLUX object
2. Click on
3. Select
PROBE_2D.FLU
4. Click on Open
5. Click on OK
ALPHA
ANGLE
Action To modify the ALPHA and ANGLE parameters from the Data tree:
3. Type 75 as ALPHA
expression
4. Type 30 as ANGLE
expression
5. Click on OK
Goal The second probe object will be imported into the current project.
1. Point on Import
and click on Import FLUX object
2. Click on
3. Select
PROBE_2D.FLU
4. Click on Open
5. Click on OK
Introduction The last stage of geometry building is adding an infinite box to close the
study domain.
Infinite box In the Flux software, using a mathematical transformation to model an infinite
technique domain is called the infinite box technique.
The exterior domain (infinite) is linked to an image domain (called the
infinite box) through a space transformation.
Principle of use The use of the infinite box implicitly assumes a null field at infinity.
The boundary conditions on the corresponding boundaries of the infinite box
are set automatically in the physical module.
Type of infinite The infinite box available for 2D study domain and their characteristics are
box presented in the table below.
Length and Length and angle units are those associated with the domain.
angle units
How to choose The dimensions of the infinite box are defined by the user. This requires a
the dimensions? certain experience because there is no general rule.
We can, however, give some advice:
the distance between the device and the interior surface of the infinite box is
at least equal to the dimension of the device in this direction
the dimensions of the infinite box are related to the mesh. In Flux 3D, the
number of elements on the thickness of the box must be roughly equal (at
least) to two (second-order elements) or to three (first-order elements).
The mesh and the size of the infinite box must take into account the studied
phenomena. The computations should be performed as follows:
for computing of a global or a local quantity inside the device, it is
unnecessary to refine the mesh of the infinite box;
for computing of the field created outside the device, it is necessary to
define the box of more significant size and to refine the mesh inside.
It is recommended to parameterize the dimensions of the infinite box to
adjust its size during the meshing.
Data The main characteristics of the infinite box are shown in the following table.
Infinite box of Disc type
Internal radius External radius
60 70
5. Click on OK
OR
Introduction This chapter presents the general steps of mesh generation of the computation
domain and the data required to describe the sensor meshing.
The meshed sensor is presented in the figure below.
Introduction This section shows the available meshing tools and the main stages for mesh
generation of the sensor.
Local / global Two solutions are offered to users for the mesh adjustment: the global
mesh adjustment (automatic) and / or the local adjustment (manual).
adjustments
The global adjustment permits to adjust the automatic mesh (triangles
elements) of the whole domain taking into account certain geometry
constraints (faces or lines that are distorted, thin, or close to each other but
that are not part of the same geometry). It is done automatically thanks to the
Aided Mesh tool box.
The local adjustment permits to locally adjust the mesh near an entity (point,
line) or a group of entities defined by the user (creation and assignment of
mesh tools).
Use Usually, it is advised to first mesh the device with the Aided mesh preset
default values. Then if the user is not completely satisfied of the mesh quality,
it is possible to adjust the default values of the aided mesh and /or to add
some local mesh information where needed.
Device analysis An analysis of the device is necessary to determine the strategy of meshing,
and choice of and the choice of mesh tools.
mesh tools
The analysis of the device and the mesh tools chosen within the framework of
this tutorial are summarized in the table below.
The operations … it is planned …
MEDIUM
LARGE
to modify 2
to control the node predefined mesh
density of the infinite box points LARGE and
MEDIUM
Outline An outline of the mesh generating process is presented in the table below.
Stage Description
1 Synchronize with aided mesh preset values
2 Mesh the device
Outer size infinite box mesh point:
Modification of 2 LARGE = 8 mm
3
predefined mesh points Inner size infinite box mesh point:
MEDIUM = 4 mm
MEDIUM
Assignment of
the MEDIUM mesh point
to points
4 LARGE
and assignment of
the LARGE mesh point to
points
Assignment of
the MAG_MP mesh point
6
to the points of the two
magnets
MAG_MP
Meshing:
8 meshing lines
meshing faces
Introduction The first step of mesh generation of the sensor is meshing lines and faces with
aided mesh preset values.
Goal The Geometry context of Flux2D should be changed to the Mesh context.
Action To activate the Mesh context (display the Mesh toolbar) from the Context
toolbar:
Tools of the After having activated the Mesh context, toolbars dedicated to the mesh
mesh context description appear in the Flux2D window.
The different toolbars and their principal roles are briefly described below.
1 2 3 4 5 6
Introduction The global adjustment permits to adjust the automatic mesh (triangles
elements) of the whole domain taking into account certain geometry
constraints (faces or lines that are distorted, thin, or close to each other but
that are not part of the same geometry). It is done automatically thanks to the
Aided Mesh tool box.
Aided mesh The Aided Mesh box groups a list of tools preset with default values that are
available to adjust the mesh globally:
Aided mesh point (on free points)
Deviation (on free lines/faces)
Relaxation (on free line/ faces)
The aided mesh is activated by default.
Use Usually, it is advised to first mesh the device with the preset default values.
Then if the user is not completely satisfied of the mesh quality, it is possible
to adjust the default values of the aided mesh and /or to add some local mesh
information where needed.
Note! If there is global and local adjustment on the same project, the local
adjustment has the priority on global adjustment. In this case, the global adjustment
information will be assign on entities that are free of local mesh information (free
points, free lines and free faces.
4.2.4. Synchronize Aided mesh value and mesh lines and faces
Goal The computation domain will be meshed in the following way: meshing lines
and meshing faces.
Action (1) As we have imported Flux objects, it necessary to synchronize with aided
mesh preset values.
Mesh menu:
OR
OR
Comments To optimize the mesh, it is advised to have at least a two elements large
Infinite box and to dense and regularize the mesh in the probes and between
the probe and cogged wheel (in order to take into account the physics).
Introduction After a first mesh, it is necessary to optimize the mesh result by setting aided
values and adding some ‘local” mesh information
Mesh To mesh the device is to subdivide the computation domain into finite
elements:
nodes
line elements
face elements
volume elements
Meshing tools The meshing tools accessible in the Mesh context are the following:
Tool Function
Mesh point to control the size of mesh elements through
the geometric points
Mesh line to control the size of mesh elements through
the geometric lines
Mesh generator to perform the subdivision into finite elements
(or algorithms for meshing) on faces or volumes
Relaxation to control the repartition of the mesh density
through lines, faces and volumes
Shadow To control the mesh in the area where two
object are close (only in 3D)
Mesh point The Mesh point distributes nodes on the lines based on weights assigned to
points.
The node spacing on a line between two end points with different mesh points
is determined by interpolation, taking into consideration the different values
at the two ends of the line.
Mesh line The Mesh line distributes nodes on the lines based on a subdivision of the
line length.
We can distinguish two modes of distribution of nodes on lines:
uniformly distributed nodes: line elements of the same length (uniform
distribution of nodes)
nodes distributed in a geometrical progression (non-uniform distribution of
nodes)
It is also possible to take into account the node distribution on curved lines
with the Mesh line of the deviation type (repartition of nodes in function of a
deviation criteria)
Shadow (3D) Shadow can be applied on faces closed to each other in 3D only. Shadow
enables to take into account the proximity of disconnected objects.
Action Edit the Aided mesh box and modify the relaxation on lines and faces as
below.
5. Click on OK
Goal The LARGE mesh point, applied to the points on the outer lines of the
infinite box, and the MEDIUM mesh point, applied to the points on the inner
lines of the infinite box, will be modified.
Data The table below describes the new values for the LARGE and MEDIUM
mesh points.
Mesh points
Name Comment Value Color
LARGE Large mesh size 8 Red
MEDIUM Medium mesh size 4 Yellow
3. Type 8 as
value for the
LARGE mesh
point
4. Type 4 as
value for the
MEDIUM
mesh point
5. Click on OK
Goal The mesh points will be assigned to the points on the infinite box as follows:
the MEDIUM mesh point will be assigned to the points on the inner lines
MEDIUM
the LARGE mesh point will be assigned to the points on the outer lines
LARGE
OR
Data The table below describes the characteristics of the mesh points for the probe.
Mesh point
Name Comment Unit Value Color
MAG_MP Magnet mesh point millimeter 0.5 White
OR
8. Click on OK
Goal The mesh points will be assigned to the points belonging to two magnets, as
shown in the figure below.
MAG_MP
OR
2. Click on
3. Click on Selection by
face
5. Click on Union
Result The points to which the mesh point were assigned appear in white for the
magnets
Data The table below describes the characteristics of the mesh line for teeth
extremities.
Mesh Line
Name Type Value Color
MESHLINE_1 Relative deviation 1.0 White
7. Click on OK
Goal The meshline will be assigned to the lines constituting the extremity of the
cogged wheel. The goal is to increase the mesh density in the air gap between
the teeth and the magnets when they are in front of each other.
Meshline_1
3. Select meshline_1
4. Click OK
Goal The computation domain will be meshed in the following way: meshing lines
and meshing faces.
OR
OR
Goal The current project will be saved and the Flux2D window will be closed to
return to the Flux Supervisor 11.1.
OR
OR
5. Annex
Introduction Instead of manually executing a series of repetitive actions in Flux, you can
save time by building and executing a command file that performs the task in
your place automatically (like a WORD or EXCEL macro).
Command file: A command file is a series of Flux commands and instructions written in the
definition Python language intended to execute a series automatically.
Goal After making a copy of the py file (Flux2D_log.py) of the current project in a
new directory (Tutorial), we will restart the Flux2D window by executing this
py file.
2. Select
Preflu2D_log.py
3. Click on Open
Result The new files with .FLU extension are recreated in the new directory:
PROBE_2D.FLU
WHEEL_BASE_2D.FLU
SENSOR_2D.FLU