Beruflich Dokumente
Kultur Dokumente
Flux
by CEDRAT
CEDRAT
15 Chemin de Malacher - Inovalle
38246 Meylan Cedex
FRANCE
Phone: +33 (0)4 76 90 50 45
Fax: +33 (0)4 56 38 08 30
Email: 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\Examples3D \ 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. Studied device...............................................................................................................................5
1.3. Device description in Flux: which strategy? ..................................................................................6
1.4. Main stages for geometry description ...........................................................................................7
2. Get started with Flux................................................................................................................9
2.1. Start a Flux supervisor ................................................................................................................11
2.1.1. About the Flux supervisor .............................................................................................12
2.1.2. Start a Flux 3D window.................................................................................................13
Introduction This part A contains the presentation of the studied device and 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 element software for electromagnetic simulation. Flux handles
the design and analysis of any electromagnetic device.
To perform a study with Flux, you build a finite element project. This
process is broken into 5 phases:
geometry description
mesh generation
description of the physical properties
solving process
results post-processing
Only the first two phases are presented in this document.
Structure The variable reluctance speed sensor consists of a cogged wheel, a magnet
and a coil connected to a measuring resistance.
Functionality The rotation of the target wheel near the tip of the sensor changes the
magnetic flux, creating an analog voltage signal that can be recovered in
probes.
WHEEL
COIL 1
PROBE 1
MAGNET 1
COIL 2
PROBE 2
MAGNET 2
Process An outline of the general construction process is given in the two following
(general blocks:
aspects) the first process (1) is presented to facilitate comprehension
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.
Introduction This chapter shows how to start working with Flux and includes a
presentation of the Flux supervisor.
It also shows how to start a Flux 3D program and includes a brief introduction
to the Flux window.
More detailed information about Flux menus and commands is presented in
1.1.2 About the Flux window.
The Flux The Flux supervisor manages all modules and tools for Flux 2D and Flux 3D
Supervisor applications.
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
Program manager to list and launch the Flux module or tools
(Flux 3D, Circuit, etc.)
Directory manager to show the computer directories
Project files to display all Flux projects in the selected directory
My programs contains shortcuts to the Dos Shell and the Explorer
Flux view to display a preview of the geometry, if a project is
selected
Goal The Flux 3D window will be opened to manage the geometry building and
mesh generation of the device.
3. Double-click on
Flux 3D
1. Click on the
Flux 3D tab
* A new project must be created to see the complete set of Flux 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 must 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 opens by
default in the Geometry context and is temporarily named ANONYMOUS.
The icon of the Geometry context appears in the Context toolbar as shown
below.
Flux window The Flux 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 Flux project window is divided into three main areas. The different areas
can be resized or hid by using the arrows.
Area Function
Data tree displays all the problem data in a tree structure that is
expanded using the key
Graphic zone displays the graphic entities
History zone prints Python command instructions
Menus and All Flux commands are in the menus. Toolbars include icons that are
toolbars shortcuts to the most useful commands.
Project
Geometry
toolbar Menus toolbar
Introduction There are several ways to access the user guide information:
the complete user guide
the online help within a dialog
Method (1) To open the complete user 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 guide in the Flux window from the Help menu:
1. Click on Contents
Method (3) To open the online help about an entity from its dialog box:
Users guide The online version of the Flux user guide is presented in the figure below.
The corresponding sections of the Flux user 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 Flux 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_3D
as project name
3. Click on Save
Notes:
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
PROBE_CS
to create a
to enter the
PROBE_CS Cartesian
coordinates of
coordinate system
the points
specific to the probe
COIL_H
to change to create 5 parameters
dimensions of for setting the magnet
the magnet and and the coil
the coil dimensions MAG_H
MAG_R
COIL_IR
COIL_OR
The operations
it is planned
MAIN_CS
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_3D.FLU it is necessary to de-activate the
Aided mesh Aided mesh*
Coil inner radius: COIL_IR = 2.8 mm
Coil outer radius: COIL_OR = 3.5 mm
Creation of 6 Coil height: COIL_H = 16 mm
2 geometric Magnet radius: MAG_R = 2.5 mm
parameters Magnet height: MAG_H = 20 mm
Angle of the probe angular position
in the final device: ANGLE = 0
Cartesian coordinate system: MAIN_CS
(global coordinate system for the probe
Creation of 2
positioning in the final device)
3 coordinate
systems Cartesian coordinate system: PROBE_CS
(local coordinate system for the probe
description)
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.
MAIN_CS
ANGLE
PROBE_CS
COIL_H
MAG_R
MAG_H COIL_IR
COIL_OR
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.
2
3
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. In this box the
user can enter information relating to the data.
Entity-type:
Geometric parameter
Title bar
Name
Comment
Characteristics
Online 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
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.
ANGLE
Magnet base
Coil base
COIL_H
MAG_H
MAG_R
COIL_IR
COIL_OR
Data The table below contains the values of the geometric parameters.
Geometric parameters
Name Comment Expression
COIL_IR Coil inner radius 2.8
COIL_OR Coil outer radius 3.5
COIL_H Coil height 16
ANGLE Angle of the probe position 0
MAG_R Magnet radius 2.5
MAG_H Magnet height 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
Method (1) To undo the previous operation from the Tools toolbar:
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 zone 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.
process
Step Description
1 Activating of the selection filter
2 Selection of the entity in the graphic zone
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 zone.
selection in the The selected entity is highlighted.
graphic zone
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 zone (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
via
1 a selection box
Selection
2 via
a selection box
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:
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 zone. The settings
a view can be made:
from the View menu (1)
using icons from the View toolbar (2)
using the mouse (3)
Using the View Flux offers modes to modify the view using commands from the View menu
menu / icons or icons from the View toolbar. They are described in the table below.
Using the Flux offers modes to modify the view using the mouse, described in the table
mouse below. User can determine the active mode by the different cursors.
Mode Mode activation Cursor
2D planar rotation around mouse is far from the center of the
the center of the view view, click on the graphic zone
with the left button of the mouse
and move the mouse, keeping the
left button pressed
3D rotation around the mouse is close to the center of the
center of the object object, click on the view with the
left button of the mouse and move
the mouse, keeping the left button
pressed
3D rotation around the while holding the Shift key, click
point defined by mouse on the view with left button of the
cursor mouse and move the mouse,
keeping the left button pressed
Displacement click on the view with the right
(to translate the view) button of the mouse and drag the
view to the new location, keeping
the right button pressed
Dimension click on the graphic zone with the
(to resize the view) left button of the mouse and resize
the view with the scrolling wheel
of your mouse
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.
Command Icon Description
Standard view 1 First Flux 3D predefined view (default one)
Standard view 2 Second Flux 3D predefined view
Opposite view View perspective from the opposite direction
View direction View defined by the user
Four-view mode Graphic display of four different views
X-plane view View of the device so that the X-axis is
perpendicular to the graphic zone
Y-plane view View of the device so that the Y-axis is
perpendicular to the graphic zone
Z-plane view View of the device so that the Z-axis is
perpendicular to the graphic zone
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 coord. The different types of coordinate systems for 3D domain and associated
systems coordinates are presented below.
y
x
r r
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 some default coordinate systems. They are
coordinate created for every new project. It is possible to rename them, to modify them
systems or to delete them.
The predefined working coordinate systems provided to the user are:
of Cartesian type
defined with respect to the global coordinate system
The coordinate systems are distinguished one from each other by their
positioning as presented in the table below.
Coordinate system Characteristics
XYZ1 Origin of coordinate system:
Z first component: 0
second component: 0
third component: 0
Rotation angle:
z
Y about X axis: 0
about Y axis: 0
about Z axis: 0
y
X
x
Goal Two coordinate systems, required to describe the geometry of the probe, are
presented in the figure below.
MAIN_CS
32 mm
PROBE_CS
14. Click on OK
Action (continued)
26. 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 base.
The next figure describes the planar geometry of the probe base.
COIL_H
MAG_H
MAG_R
COIL_IR
COIL_OR
Goal To better visualize the planar geometry of the probe base in the XOY plane,
the view will be changed.
OR
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 Ten points are required to build the probe base, as presented in the figure
below.
COIL_H
MAG_R
Point 8 Point 9 COIL_IR
Point 7 Point 10 COIL_OR
Point 2 Point 3 Point 4 Point 5
PROBE_CS
Point 1 Point 6
MAG_H
Data The table below describes the points for the probe base.
Points defined by its parametric coordinates
Coordinate Local coordinates
Number
system first (X) second (Y) third (Z)
1 -MAG_H/2 0 0
2 -MAG_H/2 MAG_R 0
3 -COIL_H/2 MAG_R 0
4 COIL_H/2 MAG_R 0
5 MAG_H/2 MAG_R 0
PROBE_CS
6 MAG_H/2 0 0
7 -COIL_H/2 COIL_IR 0
8 -COIL_H/2 COIL_OR 0
9 COIL_H/2 COIL_OR 0
10 COIL_H/2 COIL_IR 0
OR
7. 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 zone. The settings
entities can be made:
from the Display menu (1)
using icons from the Display toolbar (2)
Goal The display of point numbers will be activated to see the reference point
numbers allocated by Flux.
OR
Result The points, labeled with reference numbers, are displayed in the graphic zone.
Segments Segments are defined by starting and ending points. It does not matter if you
swap the starting and ending points.
radius
ending point
angle
center
starting point
or by three points:
The arc is included in a plane defined by three points. It is oriented in the
direction imposed by three points.
middle point
starting point
ending point
Number The number to identify the line is automatically allocated by Flux during the
line creation.
Goal Twelve straight segments are required to connect each point and create closed
outlines of the magnet, coil and air-gap bases.
The order to create the lines is presented in the figure below.
Line 6
Magnet base
Data The table below describes the lines for the probe base.
Segment defined by starting and ending points
Number Starting point Ending point
1 1 2
2 2 3
3 3 4
4 4 5
5 5 6
6 6 1
7 3 7
8 7 8
9 8 9
10 9 10
11 10 4
12 10 7
OR
Introduction The next step of the geometry description is building faces and volumes for
the probe.
The probe geometry is presented in the figure below.
Introduction The faces and volumes 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
Goal To better visualize the future 3D geometry of the probe, the view will be
changed.
OR
Principle of use Transformations are geometric functions that create new objects from existing
objects.
DY
DX basic
rectangle
basic
rectangle
y
x
y
x
90
Point 1
Data The characteristics of the transformation are shown in the following table:
Rotation defined by angles and existing pivot point
Rotation angle
Coord. Pivot
Name Comment about about about
system point
X-axis Y-axis Z-axis
Rotation to
PROBE_ROTX PROBE_CS 1 90 0 0
build the probe
OR
10. Click on OK
connection
translation
translation elements
source face source face
Building Some building options are provided in order to simplify the users 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 volumes) 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 / volume regions
for preparation
to assign the created regions to the geometric entities
of regions
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
to define the geometric entities (points, lines, faces,
building
volumes) 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
Face 1
Face 2
Face 3
OR
2. Click on
Action (continued)
Goal Some faces are not built using construction by extrusion. It is necessary to
complete the construction by automatic building the missing faces.
OR
Result Two faces are added. The output is displayed in the History zone.
No line-line intersections
Number of surfaces found : 9
Checking the unicity of auxiliary points
Looking for identical points, minimum distance between 2
points is 0.223E-06
Checking the unicity of lines
Creation of 2 FACES :
57 58
buildFaces executed
Geometric The intersections of entities are entities themselves in Flux, called geometric
defects defects. There are geometry checking tools to identify geometric defects and
healing geometry tools to correct them in Flux.
To avoid To avoid the problem of face intersections, it is possible to ignore some faces
intersections of during volume building.
faces
Nature of To allow the user to modify the consideration of entities when building faces
entities and volumes, a specific feature, called nature, is associated to points, lines
and faces.
OR
Goal To see the intersections of the line 6 and faces 57 and 58, the visibility of all
faces, except faces 57 and 58, will be modified.
Goal There are two intersections of faces with a line. These intersections can block
the building of volumes. It is possible to ignore the two faces to avoid this
problem. Thus, the nature of these two faces will be modified.
The two intersections are shown in the figure below.
Intersections
Face 57
Line 6
Face 58
3. Select NO_EXIST as
nature of faces in the
column to modify all
entities
4. 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.
Result The new project ANONYMOUS opens by default in the Geometry context.
The icon of the Geometry context appears in the Context toolbar.
OR
2. Type WHEEL_BASE_3D
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
to easily enter the cylindrical coordinate
coordinates of the system specific to the
points wheel base
(elementary pattern) (to anchor the wheel
center)
TOOTH_IR
BETA
to easily change WHEEL_R TOOTH_OR
to create 5 parameters to
dimensions of the
set dimensions of the
wheel
wheel elementary pattern
(elementary pattern)
WHEEL_TH
ALPHA
to create an ALPHA
to position the wheel in parameter to define the
the final project angular position of the
(anticipation) WHEEL_CS coordinate
system
to create a WHEEL_ROTZ
transformation of the
to simplify the rotation type to build the
geometry building wheel base by propagation
to create a WHEEL_TRZ
transformation of the
WHEEL_TRZ
translation type to build the
whole wheel by extrusion
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 to build the whole wheel but only the
elementary pattern will be built in this part. 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_3D.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
Number of teeth: TOOTH_N = 3
Creation of 7
Tooth angle: BETA =15
2 geometric
parameters Wheel radius: WHEEL_R = 10 mm
Wheel thickness: WHEEL_TH= 6 mm
Angle of 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
system description and positioning in the final device)
Introduction The geometry building begins by the creation of geometric tools: geometric
parameters and a coordinate system.
WHEEL_CS
ALPHA
TOOTH_IR
BETA
WHEEL_R TOOTH_OR
WHEEL_TH
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 Seven parameters are required for the geometry description of the wheel.
Six parameters, required to build the wheel base object, are presented in the
next figure.
ALPHA
TOOTH_IR
BETA
WHEEL_R TOOTH_OR
The seventh parameter, required to build the whole wheel, is presented in the
next figure.
WHEEL_TH
Data The table below contains the values of the geometric parameters.
Geometric parameters
Name Comment Expression
TOOTH_IR Tooth inner radius 12.5
TOOTH_OR Tooth outer radius 21.5
TOOTH_N Number of teeth 3
WHEEL_R Wheel radius 10
ALPHA Wheel angle 0
BETA Tooth angle 15
WHEEL_TH Wheel thickness 6
WHEEL_CS
14. Click on OK
Introduction The next step is the creation of points and lines for the wheel base object.
The next figure describes the planar geometry of the wheel base object.
TOOTH_IR
BETA
TOOTH_OR
WHEEL_R
Goal Six points are required to build the wheel base outline in the XOY plane, as
presented in the figure below.
Point 1
TOOTH_IR
BETA
TOOTH_OR
WHEEL_R
Point 2
Point 3
Point 4
Point 5
Point 6
Data The table below describes the points for the wheel base.
Points defined by its parametric coordinates
Coordinate Local coordinates*
Number
system First (R) Second () Third (Z)
1 0 0 0
2 WHEEL_R 0 0
3 TOOTH_IR BETA 0
WHEEL_CS
4 TOOTH_IR -BETA 0
5 TOOTH_OR BETA 0
6 TOOTH_OR -BETA 0
OR
7. Click on OK
* use:
the Zoom all command or to visualize all points
the Display point numbers command or to display point reference
numbers
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.
Note:
It does not matter which are the starting and ending points of the straight segments.
The arc is counter-clockwise oriented around an axis parallel to the OZ axis, 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
Number Starting point Ending point
1 1 2
2 3 5
3 4 6
OR
OR
Introduction The next step is building a face of the wheel base object.
OR
Introduction The whole wheel will be built by means of transformations. The last step is
the creation of 2 transformations.
Goal Two transformations are required to build the wheel geometry, as shown in
the following figures:
a rotation transformation defined by its a transformation of translation vector type
pivot point and angle
360/TOOTH_N
Point 1
WHEEL_TH
Data The characteristics of the transformations are shown in the following tables:
Rotation defined by angles and existing pivot point
Rotation angle
Coordinate Pivot
Name Comment about about about
system point
X-axis Y-axis Z-axis
Rotation to build
WHEEL_ROTZ WHEEL_CS 1 0 0 360/TOOTH_N
the whole wheel
Translation vector
Translation vector
Name Comment Coordinate system
DX DY DZ
Translation to build the
WHEEL_TRZ XYZ1 0 0 WHEEL_TH
wheel thickness
OR
Action (continued)
9. Click on OK
1.
10. Type WHEEL_TRZ as name
11. Type Translation to build the
wheel thickness as comment
12. Select Translation vector as
type
17. Click on OK
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,
renamed and saved.
Result The new project ANONYMOUS opens by default in the Geometry context.
The icon of the Geometry context appears in the Context toolbar.
OR
2. Type SENSOR_3D
as project name
3. Click on Save
Reading advice This section presents an outline of the geometry building process of the
sensor. 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 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 WHEEL_ROTZ
to easily build the transformation of rotation type
wheel base to build the wheel base by
geometry means of propagation/extrusion
construction
-WHEEL_TH/2
to use the WHEEL_TH
to displace the
parameter to move down the
wheel
coordinate system of the wheel
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 in the table 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
3. Select
WHEEL_BASE_3D.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)
3 Create an arc
5 Build faces
Face 1
OR
Action (continued)
6. Click on OK
Line 1
OR
Action (continued)
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
Number Coordinate system Radius Starting point Ending point
19 WHEEL_CS TOOTH_IR 3 10
OR
Line 19
OR
Action (continued)
OR
WHEEL_TRZ
OR
1. Click on
Goal Before the importation of the probe object, the WHEEL_CS coordinate
system will be displaced.
WHEEL_CS
-WHEEL_TH/2
1. Double-click on WHEEL_CS
3. Click on OK
Goal The probe object will be imported into the current project.
1. Point on Import
and click on Import FLUX object
3. Select
PROBE_3D.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
3. Select
PROBE_3D.FLU
4. Click on Open
5. Click on OK
Introduction The last phase of geometry building is adding an infinite box to close the
study domain.
Infinite box In the Flux software, using a transformation to model an infinite domain is
technique 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.
Types of The infinite boxes available for 3D study domain and their characteristics are
infinite box presented in the table below.
cylinder:
along the axis X, Y or Z
centered in (0,0,0) in the global
coordinate system
comprises 32 points, 32 lines
dimensions set by the user
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.
9. Click on OK
OR
Goal The geometry will be verified to identify the presence of geometric defects,
which can block the building of volumes.
OR
OR
Goal The visibility of some faces will be modified to see the sensor inside of the
infinite box.
OR
Action (2) To modify the visibility of faces from the graphic zone:
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 phases 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 (tetrahedrons
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
To control the node Modify the aided shadow value
density of the air gap
between the teeth and the
magnet (high magnetic
field)
MEDIUM
to modify 2
to control the node predefined mesh
density of the infinite box points LARGE and
MEDIUM
LARGE
To create a local
null relaxation on the
infinite box lines
Relaxline_BI
Meshline_deviation
Outline An outline of the mesh generating process is presented in the table below.
Stage Description
1 Synchronizing with aided mesh preset values
2 Meshing the device
3 Modification of aided mesh values and meshing the device
Outer size infinite box mesh point:
Modification of 2 LARGE = 9 mm
3
predefined mesh points Inner size infinite box mesh point:
MEDIUM = 6 mm
MEDIUM
Assignment of
the MEDIUM mesh point
to points
4 LARGE
and assignment of
the LARGE mesh point to
points
Assignment of
6 the MESHLINE_TEETH
mesh line to lines
Meshline_deviation
Assignment of
8 the RELAXLINE_BI
relaxation to lines
Relaxline_BI
Meshing:
meshing lines
meshing faces
9
meshing volumes
generation of second
order elements
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 Flux3D 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 Flux3D window.
The different toolbars and their principal roles are briefly described below.
1 3 2 4
5
Introduction The global adjustment permits to adjust the automatic mesh (tetrahedrons
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/ volumes)
Shadow (on free 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, faces and
volumes
Goal The computation domain will be meshed in the following way: meshing lines,
meshing faces and meshing volumes.
2. OK
OR
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 shadow on faces as below.
4. Click on OK
Goal The LARGE mesh point, applied to the points on the outer faces of the
infinite box, and the MEDIUM mesh point, applied to the points on the inner
faces 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 9 Red
MEDIUM Medium mesh size 6 Yellow
3. Type 9 as
value for the
LARGE mesh
point
4. Type 6 as
value for the
MEDIUM
mesh point
5. Click on OK
Goal To better visualize the points of the infinite box, to which the mesh points
will be assigned, the display of entities and the view will be changed.
OR
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 faces
MEDIUM
the LARGE mesh point will be assigned to the points on the outer faces
LARGE
OR
Data The table below describes the characteristics of the line relaxation for the
infinite box.
Relaxation Line
Name Value Color
RELAXLINE_BI Null (r=0.00) Magenta
OR
6. Click on OK
Goal The relaxation line will be assigned to the infinite box lines in order to
increase the mesh density.
Relaxline_BI
3. Select Relaxline_BI
4. Click OK
Data The table below describes the characteristics of the mesh line for teeth
extremities.
Mesh Line
Name Type Value Color
MESHLINE_TEETH Relative deviation 0.75 White
7. Click on OK
Goal The meshline will be assigned to the lines belonging to the extremity faces 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_Teeth
3. Select meshline_teeth
4. Click OK
Introduction The last step of mesh generation of the sensor is meshing lines, faces and
volumes and generation of second order elements. The meshed sensor is
presented in the figure below.
4.4.1. Mesh lines, mesh faces, mesh volumes and generate second
order elements
Goal The computation domain will be meshed in the following way: meshing lines,
meshing faces, meshing volumes and generation of second order elements.
OR
OR
OR
OR
Goal The current project will be saved and the Flux window will be closed to
return to the Flux supervisor.
OR
OR
5. Annex
Introduction This chapter describes the creation and use of command files.
Introduction The command files, also called command programs or scripts, make possible
the automation of a certain number of specific actions.
Instead of manually executing a series of actions within Flux, you can save
the sequences of commands, which you can later replay.
The saved sequences can be improved due to the Python language which
authorizes the utilization of variables, the implementation of loops,
conditional or unconditional connections,
A command file is therefore of interest as it can:
accelerate the most frequent operations
automate a series of complex tasks
Command file A Flux command file is a text file, which contains one or more Flux
commands in the Python language. It uses the filename extension *.py.
General The more general operating mode is presented in the table below.
operation
Default A command file is automatically created / closed by Flux upon the initiation /
command files closing of the Flux session. During the 3D session Flux creates a command
file Preflu3D_log.py.
User The user can manage command files by means of the Flux commands from
management the Project \ Command file menu.
Flux command Function
New creation / opening of a file
Interrupt break of the sequence saving
Resume resumption of the sequence saving
Close end of the sequence saving / closing the file
Modes of There are two modes to execute a command file. These two modes are
execution presented in the table below.
Mode Description
direct mode with graphic refreshment
batch mode without graphic refreshment (faster execution)
Goal First, the command file GeoMesh.py provided on the CDROM with the
software is saved in the working directory Tutorial.
Then, after starting the Flux 3D program the command file will be executed.
2. Select GeoMesh_3D.py
3. Click on Open
Result The new files with .FLU extension are recreated in the new directory:
PROBE_3D.FLU
WHEEL_BASE_3D.FLU
SENSOR_3D.FLU