F3D TutorialBasic GeometryMesh
F3D TutorialBasic GeometryMesh
Altair
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
Web: http://www.altair.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
1. Overview .................................................................................................................................... 3
1.1. Introduction .........................................................................................................................4
1.2. Studied devic e .....................................................................................................................5
1.3. Device description in Flux: whic h strategy? ............................................................................6
1.4. Main stages for geometry description ....................................................................................7
2. Get started with Flux ................................................................................................................. 9
2.1. Start a Flux supervisor........................................................................................................ 11
2.2. About the Flux supervisor ................................................................................................... 12
2.3. Start a Flux 3D window....................................................................................................... 14
3. Flux environment ..................................................................................................................... 15
3.1. About the Flux window ....................................................................................................... 16
3.2. About the Help menu / User guide....................................................................................... 17
3.3. About the geometry context ................................................................................................ 19
3.4. Name the project ............................................................................................................... 20
4. Geometry About ...................................................................................................................... 21
4.1. Geometry definition ............................................................................................................ 23
4.1.1. About old geometry context ................................................................................... 24
4.1.2. About modeler ...................................................................................................... 25
4.2. General and geometric tool................................................................................................. 27
4.2.1. About creation of an entity ..................................................................................... 28
4.2.2. About modification and deletion of an entity ............................................................ 30
4.2.3. About display of entities in the graphic zone ........................................................... 33
4.2.4. About selection of graphic entities .......................................................................... 34
4.2.5. About selection by criterion.................................................................................... 36
4.2.6. About the Tools menu / toolbar .............................................................................. 37
4.2.7. About graphic view ............................................................................................... 38
4.2.8. Change the background color ................................................................................ 40
4.2.9. About geomet ric parameters.................................................................................. 41
4.2.10. About coordinate systems ..................................................................................... 42
4.2.11. About an infinite box ............................................................................................. 44
4.3. Modeler tool....................................................................................................................... 47
4.3.1. What is the Flux Modeler? ..................................................................................... 48
4.3.2. Modeler functionalities .......................................................................................... 50
4.3.3. Notion of volume / object and geometric operation .................................................. 52
4.3.4. Dedic ated Modeler context integrated in Flux ......................................................... 53
4.3.5. Compatibility of old 3D and 2D projects with the modeler......................................... 55
4.3.6. Use parameters in the Modeler .............................................................................. 56
4.3.7. Referenc e entities: point, line, plane....................................................................... 57
4.3.8. Delet e Flux entities linked with A CIS entities........................................................... 60
5. Geometry definition ................................................................................................................. 61
5.1. Wheel geometry definition .................................................................................................. 63
5.1.1. Main steps ........................................................................................................... 65
5.1.2. Create geometric parameters for the wheel ............................................................ 67
5.1.3. Create wheel sketch ............................................................................................. 69
5.1.4. Create one teeth sketch ........................................................................................ 70
5.1.5. Create the cogged wheel sketch ............................................................................ 73
5.1.6. Parameterize the geometry ................................................................................... 75
5.1.7. Make the extrusion ............................................................................................... 76
5.2. Probe geometry definition ................................................................................................... 77
5.2.1. Main steps ........................................................................................................... 78
5.2.2. Create geometric parameters ................................................................................ 79
5.2.3. Create the first probe ............................................................................................ 81
5.2.4. Create the second probe ....................................................................................... 83
5.2.5. Cut the probes in two parts .................................................................................... 84
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.
Process (1) An outline of the logical process of the geometry description is given in the
table below.
Phase Description
1 Cogged wheel description
2 Probe description
3 Sensor description
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
§ 3.1 About the Flux window.
The Flux The Flux Supervisor window is divided into several zones. The different
Supervisor zones are identified in the figure below and then detailed in following blocks.
window
Dimensions
How to
proceed?
Contexts
Customized
Working zone
directory
Cross-functions
Zones of the The different zones of the Flux Supervisor and their functions are presented in
Supervisor the table below.
Zone Function
The user selects the dimension in which he wishes
Dimensions
to model his project: 2D or 3D, Skew
The user have the choice between several use
contexts of supervisor:
• New project
Contexts • Open un project
• Open example
• Python for Flux
• Batch solve
Goal The Flux 3D window will be opened to manage the geometry building and
mesh generation of the device.
* A new project must be created to see the complete set of Flux commands.
3. Flux environment
Introduction 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.
Flux window The general Flux window consists of several zones. These zones are
identified in the figure below.
Graphic
Data tree
Output
PyFlux Command
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 toolbar:
Method (2) To open the complete user guide in the Flux window from the Help menu:
Method (3) To open the online help about an entity from its dialog box:
User 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.
Goal The new project, temporarily named ANONYMOUS, will be renamed and
saved.
OR
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.
4. Geometry About
Introduction This chapter introduces some geometrical concepts for geometry description
with Flux in 3D.
Introduction From Flux 12, a new dedicated geometry context called “Modeler” is
available in 3D. The old Flux geometry context still exists, but it is truly
advised to use the new Modeler context to create easily a 3D geometry.
Old geometry The old Flux geometry context was used until Flux 11.2 to create geometries.
context It is still available in the last Flux versions.
This old context is efficient and robust, but it is much longer to create a 3D
geometry in comparison with the new Modeler context. In fact, in the old
context user has to begin by creating points, then lines and finally building
faces and volumes.
Old geometry When creating a new project, the new geometry context (Modeler) is opened
context by default (in the supervisor options, it is possible to choose the context to
activation open by default). To create a geometry in the old context, the Modeler should
be closed, by clicking on the following icon :
Tools of the old After having activated the old 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.
What is the
The modeler is a tool to describe a CAD geometry quickly and easily using
modeler?
intuitive and powerful functionalities. The Flux modeler does not compete
with a dedicated CAD tool, but it is strongly inspired. It gives users a simple
and ergonomic method of geometry description unlike the previous method,
robust but tedious.
Activate the The Modeler is opened by default in a new project (in the supervisor options,
modeler it is possible to choose the context to open by default).
From the old Flux geometry context, the modeler is accessible through the
following menu:
Tools of the old After having activated the new 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.
For more details about the modeler, please refer to the part Modeler tool.
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 in the
Modeler) 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. In this box the
user can enter information relating to the data.
The required fields (necessary and sufficient for the definition of the entity) are
marked by an asterisk *.
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 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 in the
Modeler) and described in the table below.
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
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 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)
Below, the screen shot is done in the Modeler:
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 (in the Modeler) and
described in the table below.
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
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
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
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)
Below, the screen shot is done in the Modeler:
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.
Principle of use Geometric parameters are entities that can be used for the geometry building
of the device. It can be entered in different geometric entities:
• In the modeler: in primitives, translations, repetitions, fillets etc.
• In the Flux old geometry context: in points, coordinate systems, 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 geometric entities 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.
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.
In the modeler In the modeler, if user want to move his geometrical object from the initial
position (rotation or translation), it is truly advised to create a rotation /
translation entity in the modeler instead of using the coordinates systems.
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.
Introduction The tool Modeler (which allows an ease description of the geometry) is
integrated into Flux in a dedicated context.
Introduction The modeler is a tool to describe a CAD geometry quickly and easily using
intuitive and powerful functionalities. The Flux modeler does not compete
with a dedicated CAD tool, but it is strongly inspired. It gives users a simple
and ergonomic method of geometry description unlike the previous method,
robust but tedious.
Significant work was also provided with this modeler on CAD import and
correction which allowed rethinking the algorithms existing import and thus
improving the quality.
Without and Here is a simple example (building of a block) to illustrate the pour illustrer
with modeler the radical change of method of geometric description without modeler (with
tools of standard geometry context) and with modeler.
P8
L8 L7
P7
L12
P5 L5 L6
P6 L11
L9 P4
L3
L4 P3
P1 L10
L2
L1 P2
Without modeler With modeler
1 Create the point 1
2 Create the point 2
3 Create the point 3
4 Create the point 4
5 Create the point 5
6 Create the point 6 Create a block
7 Create the point 7
The resulting entities obtained
8 Create the point 8
immediately:
9 Create the line 1 between P1 and P2
• 8 points
10 Create the line 2 between P2 and P3
• 12 lines
11 Create the line 3 between P3 and P4
1 • 6 faces
12 Create the line 4 between P4 and P1
• 1 volume
13 Create the line 5 between P5 and P6
• 1 object (new entity for the modeler)
14 Create the line 6 between P6 and P7
• 1 geometric operation (new entity for
15 Create the line 7 between P7 and P8
the modeler representing the achieved
16 Create the line 8 between P8 and P5 action and useful to ensure the cycle
17 Create the line 9 between P1 and P5 of life)
18 Create the line 10 between P2 and P6
19 Create the line 11 between P3 and P7
20 Create the line 12 between P4 and P8
21 Build faces
22 Build volumes
22 user actions Only 1 user action
Functionalities Description
Reference point Allow creating a reference point usable by other functionalities
Reference line Allow creating a reference line usable by other functionalities
Reference plane Allow creating a reference plane usable by other functionalities
Primitive Block Allow building a bloc in a single action
Primitive Cylinder Allow building a cylinder in a single action
Primitive Cone Allow building a cone in a single action
Boolean operation Allow uniting objects into a single object
Union
Boolean operation Allow subtracting objects to another objet
Subtraction
Boolean operation Allow intersecting objects and obtaining as resulting object, the
Intersection common part between objects
Boolean operation Allow assembling objects into a single object and correcting
Assembly potential collisions between objects
Fillet Permet d’arrondir les angles d’un ou plusieurs objets
Chamfer Allow breaking angle of objects
Symmetry Allow duplicating objects one time by symmetry
Linear repetition Allow repeating objects N times with a user vector
Allow repeating objects N times around an axis with an user
Circular repetition
angle
Rotation Allow rotating objects around an axis
Translation Allow move an object according to a vector
Sketch Allow creating a 2D profile to be extruded (use Sketcher tools)
Extrusion along Allow extruding faces along a vector
vector
Extrusion around axis Allow extruding faces around axis
Helicoidal extrusion Allow extruding faces along an helix around an axis
Cutting objects Allow cutting objects intersecting a reference plane
Defeaturing objects Allow defeaturing fillets / chamfers / holes of objects
Allow removing faces and filling with neighbouring entities
Cleaning faces
For example, useful to remove incrustations and engravings
Separation of Allow separating an object composed by N volumes in N objects
volumes
Allow removing cell of an object ( corresponding to one volume,
Removing volumes
faces, lines and points) without delete the object
Detection small lines Allow detecting small lines according to an user criteria
Detection small faces Allow detecting small faces according to an user criteria
Detection small Allow detecting small volumes according to an user criteria
volumes
Detection Allow detecting hypertangences according to an user criteria
hypertangences
Functionalities (continued)
Functionalities Description
Simplification small Allow simplifying small lines previously detected by merging
lines with a neighboring line
Simplification small Allow simplifying small faces previously detected by merging
faces with a neighboring face
Simplification small Allow simplifying small volumes previously detected by
volumes merging with a neighboring volume
Checking defects on Allow checking geometric defects on entities ACIS on each
ACIs entities object
Healing defects on Allow healing geometric defects on entities ACIS on each object
ACIs entities
Movie examples Several movies using the functionalities of the modeler are available.
Introduction For operation of the modeler and to ensure synchronization between the
database Flux and database ACIS, new entities are being added in the
modeler:
• The “object” entity (different to volume entity, it is a level above volume)
• The “geometric operation” entity
Notion The modeler functionalities are applied on objects, unlike the standard
Volume/Object geometry context where it is points lines faces and volumes that are
manipulated.
The object is the entity “father” in the modeler, the points lines faces and
volumes become sub-entities.
The object entity allows being synchronous with geometric kernel ACIS that
also have this type of entity to manipulate CAD.
The object may be composed by one or more volumes.
The entity volume has always the same interest for Flux; it is an entity over
which the physical regions may be assigned.
Geometric The geometric operation in a Flux entity that is associated with each action of
operation construction done in the modeler. This entity may be edited from the data tree
to modify an action of building. Geometric operations are linked according to
the sequence of building action. It is the construction tree which allows to
ensure the cycle of life of the construction (in creation, , modification and
deletion)
Geometric operations are only available in the modeler context.
Block
dimension
modified
Access The modeler context is directly opened when the user start a new project 3D.
It is a configurable option in user preferences of supervisor.
In the standard geometry context to access in the modeler context:
• By Menu: Geometry Modeler context
• By icon:
Environment The environment of the modeler context is similar to the Flux environment
with a data tree, a graphic window, the command window and the history of
the commands. The graphic window is identical with graphic window of the
standard environment of Flux 3D.
Cohabitation The standard geometric description of Flux is usable identically outside the
with Flux modeler context, but it is not advisable to mix the two approaches to
geometric construction that are completely different.
Advice: Once the modeler has been used to describe the geometry, it is
advisable not to use functionalities of standard context, but to complete
geometry in the modeler.
PyFlux All the operations carried out in the modeler are recorded in the command
PyFlux as for Flux operation.
Command files can also be executed starting from the modeler by the Project
menu or by the python editor.
Build Face / In the modeler, there is no need to run the commands Build face and Build
Build Volume volume. These sub-entities of the object are automatically built during the
different construction operations.
Manipulation Once the modeler used to describe the geometry, high level entity becomes
of entities the object. The object is the only modifiable entity. The sub entities points /
lines / faces / volumes are revaluated according to manipulations applied on
objects. Therefore, the point coordinates are not modifiable neither in the
context modeler nor in the standard geometry context (out of modeler).
Particularity of The modeler uses coordinates systems in the same way as Flux. The creation
coordinate system of a coordinate system remains unchanged and is done as it is in the standard
of creation
geometry context.
The description of geometry requires specifying the coordinate system of
creation with the possibility to have several coordinate systems.
The coordinate system taken into consideration upon the creation (or the
modification) is the active coordinate system which the user can choose
graphically (drop down list at the bottom left of the graphic view).
Introduction How does the modeler with Flux projects generated with a version without
modeler (prior to version 12)?
Old 3D projects Old 3D projects are compatible with the modeler. After opening your old
project, you may modify the geometry with modeler functionalities. When
entering in the modeler context, a conversion of entities of the project is done
to ensure the compatibility with the ACIS kernel. The geometry is
transformed into an object in addition to volumes faces et lines points already
existing.
The user can thus use the functionalities of the modeler whose manipulate
only objects.
Informations on The information (mesh, region,… ) on entities points lines faces and
entities volumes of the origin project, are kept if the topology remains constant.
The infinite box of a project is ignored (but kept) when you enter in the
Infinite box modeler. So it is not apparent. On leaving modeler context, it was rebuilt
so that the air volume surrounding the device.
There is the possibility to break the object composed by N volumes in N
objects. This allows the user to manipulate the N resulting objects
independently. If the user chooses to separate the cells in this case he
Separation of should reassemble everything before out of context modeler to be
volumes compatible with Flux.
This functionality is accessible:
• By menu: Correction&Simplification Separate volumes New
• By icon:
2D project In Flux (out of modeler) it is possible to import a 2D project, then the user
imports would extrude faces to a 3D device. Upon entry in the modeler context the 2D
geometry that is in a certain plane is converted to a sketch entity. The sketch
entity allows using modeler functionalities of extrusion to obtain a 3D
geometry.
The sketch is also editable and modifiable using the sketcher tool that is
accessible from the modeler.
Introduction A reference entity provides some support to the construction of the geometry
without being taken into consideration during the mesh and solving
operations. These entities are of « NO_EXIST » type.
It exists several “Reference” entities:
• Reference point
• Reference line defined between two points
• Reference plane
When use it? The table below presents when reference entities can be used.
How create it? The table below presents how the reference entities can be created.
How create it ?
Reference The creation of a reference point is identical to the creation of a standard point
point of Flux. It is necessary to define the coordinate system of creation and
coordinates of the point ((X Y Z). To create a reference point:
• By menu: Construction Reference Reference point New
• By icon:
Reference The creation of a reference line is identical to the creation of a standard line of
line Flux of segment type. It is necessary to define two points of the segment.
These points can be standard points of objects or reference points previously
created.
• By menu: Construction Reference Reference line New
• By icon:
Reference The creation of a reference plane contains several type of definition (see
plane below)
• By menu: Construction Reference Reference plane New
• By icon:
Type of The table below shows different types of creation of a reference plane
reference plane
Type Description Illustration
Predefined Here is the list of predefined reference plane available at th opening of the
reference modeler:
planes • XY plane
• XZ plane
• YZ plane
Introduction It is possible to delete geometric entities Object, Volume, Face, Line, Point
using the command Delete Force.
The deleting of entities behaves differently depending on the type of
geometry :
• Geometry without ACIS link: built/imported outside the modeler context or
with a version prior to Flux 11.2 version (included)
• Geometry with ACIS link: built/imported inside the modeler context
5. Geometry definition
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.
Outline An outline of the geometry description process to build the wheel base
geometry is presented in the table below.
Stage Description
• Tooth inner radius: TOOTH_IR =
12.5 mm
• Tooth outer radius: TOOTH_OR
= 21.5 mm
• Wheel radius: WHEEL_R = 10
Creation of 5 geometric
1 mm
parameters
• Wheel thickness: WHEEL_TH= 6
mm
• Angle of the wheel angular
position
in the final device: ALPHA = 75
Goal Four parameters are required for the geometry description of the wheel.
The fifth parameter, required to build the whole wheel, is presented in the
next figure.
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
WHEEL_R Wheel radius 10
ALPHA Wheel angle 75
WHEEL_TH Wheel thickness 6
Action The geometric parameters can be created in the Modeler, or in the old
geometry context, in the same way.
To create the geometric parameters from the …
OR
Goal The wheel part is created in the Modeler context. The steps are presented in
the following table.
Action The steps of the construction of the wheel are presented in the following
table.
Goal The wheel part is created in the Modeler context. The steps are presented in
the following table.
Action The steps of the construction of the wheel are presented in the following
table.
Tools Symmetry
Tools Fractionate
Select line 5 and 6 and chose Edit Array in the context menu
Action The steps of the construction of the cogged wheel are presented in the
following table.
Introduction This chapter presents the general steps of the probe construction and the data
required to describe the probe geometry.
The probe object is presented in the figure below.
Outline An outline of the geometry description process to build the probe geometry
is presented in the table below.
Stage Description
• COIL_H
• ANGLE
Creation of geometric • COIL_IR
1
parameters • COIIL_OR
• MAG_H
• MAG_R
Goal Six parameters, required to describe the geometry of the probe, are presented
in the figure below.
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 30
MAG_R Magnet radius 2.5
MAG_H Magnet height 20
Action The geometric parameters can be created in the Modeler, or in the old
geometry context, in the same way.
To create the geometric parameters from the …
OR
Notice too, that as you move your cursor over the parameter names, the comments
are displayed to help you to identify the parameters.
Goal The probe is created in the Modeler context. The steps are presented in the
following table.
Action (1) The steps of the construction of the first probe are presented in the following
table.
Goal The second probe is created in the Modeler context with circular repetition.
The steps are presented in the following table.
Action (1) The steps of the construction of the second are presented in the following
table.
Goal In order to define the current orientation in the probes coils, it is necessary to
have two internal faces in the coils.
For that, the probes are cut in two parts.
Action (1) The steps of the probes cut are presented in the following table.
Goal In this chapter, the domain is completed with an infinite box. Then the
geometry is verified.
Data The main characteristics of the infinite box are shown in the following table.
OR
OR
Goal The geometry will be verified to identify the presence of geometric defects,
which can block the building of volumes.
OR
OR
Goal In order to mesh the sensor in a position with a probe in front of the wheel,
the angular position of the wheel is changed
Action To change the wheel position, the value of the parameter ALPHA is changed.
AND
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:
6. Mesh about
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).
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.
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.
Mesh context To activate the Mesh context (display the Mesh toolbar) from the Context
activation 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.
7. Mesh definition
Outline An outline of the mesh generating process is presented in the table below.
Stage Description
1 Meshing the device
2 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
Assignment of
the MEDIUM mesh point
to points
and assignment of
the LARGE mesh point to
points
Assignment of
6 the RELAXLINE_BI
relaxation to lines
Relaxline_BI
Assignment of
8 the MESHLINE_TEETH
mesh line to lines
Meshing:
• meshing lines
• meshing faces
9
• meshing volumes
• generation of second
order elements
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:
Goal The computation domain will be meshed in the following way: meshing lines,
meshing faces and meshing volumes. The aided mesh information is used by
default.
Action (1) The parameter ALPHA value is changed to put the probe in front of a wheel
tooth.
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
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
• the LARGE mesh point will be assigned to the points on the outer faces
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.
7.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
8. 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.
Python file The user can manage command files by means of the Flux commands from
management in the Project \ Command file menu.
Flux
Python file There are two modes to execute a command file. These two modes are
execution in presented in the table below.
Flux
Mode Description
direct mode with graphic refreshment
batch mode without graphic refreshment (faster execution)
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 Flux3D_log.py.
Flux python In Flux, under the History zone, a python dedicated zone exists. It is
dedicated composed by three parts:
window
History zone
« Echo » zone This zone contains two log.py files is available (in read only):
• the “Flux[XX]_log.py” : all commands performed by the user during
a session are recorded in this file.*
• the “Project_PyFlux_log.py”: all commands performed by the user
during the beginning of the project up to the end of the project are
recorded in this file.
«Editor With python editor, user can read, write, run totally or only some selected
python » zone command of the python script.
Notes :
• It is possible to open several py script file (one tab by file)
• This zone allows displaying automatically the groovy file when the user use
subroutine in groovy language
• An editor python similar is available directly on the supervisor (script
python context)
“Command In this zone, the user can launch and test a python command (or more python
prompt” zone commands) directly, without create a new .py file. It’s an operating direct
mode, useful when you need to work quickly or debug your python
command.
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.
Result The new file with .FLU extension is recreated in the new directory:
• SENSOR_3D.FLU