Professional Documents
Culture Documents
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
E-mail: cedrat@cedrat.com
Web: http://www.cedrat.com
Foreword
*(Please read before starting this document)
Description of The goal of this basic example is to familiarize the user with the Flux
the example Magneto Static 3D application using a simple device.
This example contains the general steps and all the data needed to describe
the geometry, mesh, physics and the solving computation for the given cases.
Required This basic example is designed for the user who is already familiar with the
knowledge basic functions of Flux software.
To obtain this knowledge, first, the user should go through the First steps in
using Flux: Geometry and Mesh Tutorial - Basic example. This document
explains, in detail, all the actions necessary to build the geometry and mesh of
a project in the Flux study domain.
Support files To view the completed stages of the example project, the user will find the
included... .py files, including the geometry, mesh, physics and post processing
descriptions. The .py files corresponding to the different study cases in this
example are available in the folder: \DocExamples\ Examples3D\
Basic_MagnetostaticApplication
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. General information .................................................................................................................1
1.1. Overview .......................................................................................................................................3
1.1.1. Description of the studied device....................................................................................4
1.1.2. Studied cases .................................................................................................................6
1.2. Strategy to build the Flux project ..................................................................................................7
1.2.1. Main stages for geometry description.............................................................................8
1.2.2. Main stages for mesh generation .................................................................................11
1.2.3. Main stages for physical description.............................................................................12
2. Construction of the Flux project .............................................................................................13
2.1. Geometry description process ....................................................................................................15
2.1.1. Add a symmetry to the domain.....................................................................................16
2.1.2. Create geometric tools..................................................................................................17
2.1.3. Create points and lines for the base plate of the E-shaped part ..................................19
2.1.4. Create other lines of the E-shaped part by extrusion ...................................................22
2.1.5. Create faces and volumes of the E-shaped part ..........................................................24
2.1.6. Create points and lines of the movable blade ..............................................................26
2.1.7. Create faces and volumes of half of the blade by extrusion.........................................27
2.1.8. Create faces and volumes of the blade by propagation ...............................................28
2.1.9. Add an infinite box to the domain .................................................................................29
2.2. Mesh generation process............................................................................................................31
2.2.1. Mesh the device............................................................................................................32
2.2.2. Modify the aided deviation ............................................................................................33
2.2.3. Create and assign the mesh points ..............................................................................34
2.2.4. Create and assign the mesh lines ................................................................................35
2.2.5. Generate the mesh .......................................................................................................36
2.3. Physical description process.......................................................................................................39
2.3.1. Define the physical application .....................................................................................40
2.3.2. Define physical aspects of symmetry ...........................................................................41
2.3.3. Create materials ...........................................................................................................42
2.3.4. Create volume regions..................................................................................................43
2.3.5. Assign volume regions to volumes ...............................................................................44
2.3.6. Create sources (electric components and coils) ..........................................................45
3. Case 1: static study ...............................................................................................................47
3.1. Case 1: solving process ..............................................................................................................49
3.2. Case 1: results post-processing..................................................................................................51
3.2.1. Display isovalues and arrows of the magnetic flux density on volume regions............52
3.2.2. Create surface supports ...............................................................................................54
3.2.3. Display isovalues and arrows of the magnetic flux density on surface supports .........55
3.2.4. Plot a 2D curve of the magnetic flux density along a path ...........................................57
3.2.5. Display isovalues of the relative permeability on volume regions ................................59
3.2.6. Compute the magnetic flux density on a point .............................................................60
3.2.7. Compute the magnetic torque on volume regions........................................................61
4. Case 2: physical parameterized computation ........................................................................63
4.1. Case 2: physical description .......................................................................................................65
4.1.1. Create an I/O parameter...............................................................................................66
4.1.2. Modify the physical properties ......................................................................................67
4.1.3. Create a sensor ............................................................................................................68
4.2. Case 2: solving process ..............................................................................................................69
4.3. Case 2: results post-processing..................................................................................................71
4.3.1. Display isovalues of the magnetic flux density on volume regions ..............................72
4.3.2. Create a volume support ..............................................................................................73
4.3.3. Display isovalues of the magnetic flux density on a 3D grid ........................................74
4.3.4. Plot a 2D curve of the magnetic flux versus an I/O parameter.....................................75
4.3.5. Plot a 2D curve of the magnetic field along a path.......................................................76
4.3.6. Create animation of isovalues of the magnetic flux density on the contactor
versus I/O parameter ....................................................................................................78
1. General information
Introduction This chapter contains the presentation of the studied device and the Flux
software.
1.1. Overview
Introduction This section presents the studied device (a magnetic contactor) and the
strategy of the device description in Flux.
Study carried The study proposed in this "Magnetostatic application tutorial" is the study of
out a magnetic contactor that is used to establish or break electric circuits.
Studied device The studied device, represented in the figure below, includes the following
elements:
a fixed part composed of
a metallic armature, a
permanent magnet placed Permanent
magnet Metallic
on the top of a central blade
column and two coils
placed around two Coils
cylindrical lateral
columns
a movable part composed Metallic
of a metallic blade armature
Operating The analyzed contactor is used to establish or break electric circuits. When
principle either coil is current supplied, the blade moves to the respective coil (rotating
motion around an axis in the figure above). When the current supply is
interrupted, the blade rests immobile as a result of the existence of the
magnetic field created by the permanent magnet.
Geometry The contactor is composed of two main parts fixed and movable. Only a
half of the contactor is modeled because of the presence of the symmetry.
The dimensions (in millimeters) of the modeled fixed part E-shape and coils
are presented in the figures below.
15
20
20
60 20
9
40
60
120
20
40
10
The dimensions (in millimeters) of the modeled movable part blade are
presented in the figure below.
20
130 10
15
65
10
Studied cases Three cases are carried out in a Magneto Static 3D application:
case 1: static study
case 2: physical parameterized computation
case 3: geometric parameterized computation
Introduction This section presents outlines of the geometry building process, mesh
generating process and physical properties description process of the
magnetic contactor.
Stage Description
Symmetry
plane
Creation of a
symmetry to
1
model half of
the contactor
Geometric parameters:
1. BPRAD (arc radius of the base plate)
2. PHEIGHT (height of the cylindrical columns)
3. DIST (distance between the cylindrical and the
central columns)
4. PDIA (diameter of cylindrical columns)
5. ALPHA (angle of the blade)
Creation of Coordinate systems:
geometric 1. MAIN
tools to 2. CENTER (central column)
2
simplify the 3. POLE_L (left column)
geometry 4. POLE_R (right column)
construction 5. BLADE
Transformations:
1. BP_TRZ (translation for the base plate)
2. POLE_TRZ (translation for lateral columns)
3. CENT_TRZ (translation for the central column)
4. MAG_TRZ (translation for magnet)
5. BLADE_TRZ (translation for blade)
6. BLADE_SYM (affine transformation for blade)
Outline (continued)
Stage Description
Creation of points
3 and lines for the base
plate
Creation of lines by
4
extrusion
Creation of points
6 and lines for half of
the blade
Outline (continued)
Stage Description
Creation of an
9
infinite box
Stage Description
Mesh with the default settings of
Meshing the device and
1 AIDED MESH. It is possible to
analyze of the mesh
improve the mesh quality
Modification of the
2 Increase the deviation value
AIDED MESH
Meshing:
meshing lines
meshing faces
5
meshing volumes
generating 2nd order
mesh elements
Stage Description
1 Definition of the application Magneto Static 3D
Definition of physical aspects of
2 Tangent magnetic field
the symmetry
SMCO homogeneous and
isotropic material with a vector
3 Creation of 2 materials direction of the magnetization
STEEL material with a
nonlinear B(H) characteristic
AIR
BLADE
MAGNET
Creation and assignment of
4 E_SHAPE
volume regions
COIL 1
5 Creation of sources
COIL 2
Introduction This chapter contains the geometry description, mesh generation and
physical description of the magnetic contactor.
The user must have a good understanding of all functionalities of the Flux
preprocessor.
Introduction This section presents the general steps of the geometry construction and the
data required to describe the contactor geometry.
The device is presented in the figure below.
Movable
E-shaped
blade
part
Goal From a geometrical point of view, the magnetic contactor presents obviously
a symmetry plane parallel to the ZX-plane. In addition, as the magnetic field
is tangent on this plane, it is possible to represent half of the contactor in
order to reduce the computational domain.
Outline The symmetry plane used in this study is shown in the figure below.
Symmetry
plane
Data The characteristics of the symmetry are presented in the table below.
*
Physical aspects of the symmetry are specified in the section relating to the physical
description.
Data (1) The characteristics of the geometric parameters of the E-shaped part are
presented below.
PDIA
PHEIGHT ALPHA
BPRAD
DIST
Geometric parameters
Name Comment Expression
BPRAD Arc radius of the base plate 20
PHEIGHT Height of the cylindrical columns holding coils 60
Center to center distance between the lateral
DIST 40
cylindrical columns and the central column
PDIA Diameter of cylindrical columns (poles) 15
ALPHA Angle of the blade around Y-axis -3
Data (2) The characteristics of the coordinate systems are presented below.
BLADE
XYZ 1
80
20
MAIN
DIST DIST POLE R 30
10
POLE L
CENTER
Cartesian coordinate system defined with respect to the Global coordinate system
Origin coordinates Rotation angle
Name Comment Units First Second Third About About About
(X) (Y) (Z) X-axis Y-axis Z-axis
Main coordinate millimeter
MAIN 0 0 -20 0 0 0
system / degree
Cartesian coordinate system defined with respect to the Local coordinate system
Parent Origin coordinates Rotation angle
Name Comment coord. First Second Third About About About
system (X) (Y) (Z) X-axis Y-axis Z-axis
CENTER Central column MAIN 0 0 - 30 0 0 0
POLE_L Left column CENTER - DIST 0 10 0 0 0
POLE_R Right column CENTER DIST 0 10 0 0 0
BLADE Movable blade CENTER 0 0 80 0 ALPHA 0
Data (3) The characteristics of transformations are presented in the tables below.
Translation vector
Coord. Vector components
Name Comment
system DX DY DZ
BP_TRZ Translation for a base plate CENTER 0 0 10
POLE_TRZ Translation for lateral columns 0 0 PHEIGHT
CENT_TRZ Translation for a central column 0 0 40
MAG_TRZ Translation for a magnet 0 0 20
BLADE_TRZ Translation for a blade BLADE 0 0 10
2.1.3. Create points and lines for the base plate of the E-shaped part
Goal The aim is to start the building of the base plate using geometric tools such as
geometric parameters and coordinate systems.
Data (1) The characteristics of the base plate points are presented in the table below.
Line 1
Line 3
Line 2
Data (3) The characteristics of the columns points are presented in the table below.
Line 8
Line 14
Line 9 Line 15
Line 10 Line 16
Line 13 Line 11
Line 12
Goal The aim is to finish the base plate and build the central column using
transformations such as translations.
Data (1) The characteristics of the base plate extrusions are presented below.
Line 25
Line 23
Line 24
Line 26
Data (3) The characteristics of the central column extrusion are presented below.
Data (4) The characteristics of the magnet extrusion are presented below.
Goal The goal is to finish the E-shaped part building faces and volumes with
transformations.
Data The characteristics of the cylindrical columns extrusions are presented below.
Data (1) The characteristics of points are presented in the table below.
Line 57 Line 59
Line 55 Line 58
Line 60
Line 56
Line 61
Goal The main element of the blade is extruded along Z-axis in order to build faces
and volumes of half of the blade using an extrusion.
Goal The second half of the blade is propagated along X-axis in order to build
faces and volumes of the blade using an affine transformation.
Data (1) The characteristics of the affine transformation are presented below.
Goal In order to automatically impose the natural condition of a zero magnetic field
at infinity, the studied device is placed inside an infinite box. One half of the
infinite box is modeled because of the presence of the symmetry. Then the
faces and volumes of the whole geometry are built using the algorithm of
automatic construction.
Data (1) The characteristics of the infinite box are presented in the table below.
Data (2) The characteristics of the command are presented in the table below.
Action Build faces and volumes to ensure the completion of the infinite box.
Outline (2) The infinite box with faces and volumes is presented in the figure below.
Introduction This section presents the general steps of mesh generation for the
computational domain and the data required to describe the magnetic
contactor mesh.
The meshed device is presented in the figure below.
Goal Mesh generation process is an essential step of the Finite Element method. At
this stage, the computational domain is divided in small elements.
Each node of the mesh constitute a support where the state variable
approximation (such as scalar or vector potentials, temperature, etc.) and the
derived fields (such as magnetic field and induction, magnetic flux density,
electric field, thermal flux density, etc.) are computed.
Aided mesh is activated by default in Flux. Such tool permits to obtain a first
basic mesh with global settings.
Goal The aided deviation is modified in order to refine the mesh closed by the
curved lines of the base plate and of the blade.
Data The modified characteristic of the aided mesh is presented in the table below.
Deviation
Aided Meshline / Meshgenerator Type of deviation Value
Assign Excluded Infinite Box Relative 0.6
Goal Mesh points enable the user to add some local mesh information in order to
control the mesh in specific areas. In this case:
MP_BOX meshpoint allows obtaining an infinite box with 3 elements large.
MP_CENTER meshpoint allows obtaining a denser mesh in the central part
of the device.
Data The characteristics of the mesh points are presented in the table below.
Mesh Point
Name Comment Unit Value Color
MP_BOX Infinite box mm 15 Red
MP_CENTER Blade and E-shaped centers mm 1.5 Yellow
Outline The assignment of the mesh points to points is presented in the figure below.
MP_BOX
MP_CENTER
Goal As mesh line sets the density of nodes on a line, it can be useful to control the
distribution of nodes on the lines assigned.
In our case, it is interesting to make denser:
The lines surrounding the infinite box.
The lines on the top of the magnet.
Data The characteristics of the mesh lines are presented in the table below.
Mesh Line
Name Comment Definition Color
Type Number
ML_BOX Infinite box Arithmetic 10 Red
ML_MAGNET Top of the magnet Arithmetic 12 Cyan
Outline The assignment of the mesh lines to lines is presented in the figure below.
ML_BOX
ML_MAGNET
Goal As the first mesh obtained is too coarse, a second mesh is generated using
local settings, such as meshpoints and meshlines.
Lines, faces and volumes of the computational domain are meshed using the
algorithm of automatic mesh generator. Then the second order elements are
generated.
Note: another solution is to select both commands Mesh Faces / Mesh Volumes.
Result The mesh of the study domain and the detail of the mesh in the device zone
are presented in the figure below.
Results Details of the resulting mesh of the contactor are presented below.
Volume elements :
Number of elements not evaluated : 0 %
Number of excellent quality elements : 24.76 %
Number of good quality elements : 48.49 %
Number of average quality elements : 24.69 %
Number of poor quality elements : 2.05 %
Introduction This section presents the definition of the physical application and physical
properties materials, regions, coils.
Goal The choice of the physical application determines the set of options available
to the user in terms of physical properties. The required physical application
is the Magneto Static 3D application.
Data The characteristics of the application are presented in the table below.
Goal At this stage, the physical aspects of the symmetry created in the geometry
description are defined, in order to reduce the computational domain.
Data The modified characteristic of the symmetry is presented in the table below.
Goal The first step to model the physical properties of the device is to create the
material entities.
In this case, two materials are created for the physical description of the
magnetic contactor:
The first material is defined for the permanent magnet; this material is
magnetized along its Z-axis of the MAIN coordinate system.
The second material is defined for the other volumes of the contactor except
the volume of permanent magnet; this material is characterized by a
nonlinear B(H) curve.
Data The characteristics of the materials are presented in the tables below.
Goal The second step to model the physical properties of the device is to create
volume regions. They enable the user to group some entities that have the
same physical properties.
Four volume regions are necessary for the physical description of the
magnetic contactor:
The AIR region corresponding to the air surrounding the device.
The E-SHAPED region corresponding to the base plate and the three
columns.
The BLADE region corresponding to the blade.
The MAGNET region corresponding to the magnet.
Data The characteristics of the volume regions are presented in the table below.
Volume region
Name Comment Type Material Color
Infinite box and Air or vacuum
AIR - Turquoise
surrounding air region
Base plate and 3 Magnetic non-
E_SHAPED STEEL Cyan
columns volumes conducting region
Magnetic non-
BLADE Blade volumes STEEL Cyan
conducting region
Magnet on top of Magnetic non-
MAGNET SMCO Magenta
the central column conducting region
Action Orient the SMCO material for the MAGNET region in the MAIN coordinate
system.
Goal The third and final step to model the physical properties of the device is to
assign volume regions to volumes. The assignment operation enables the user
to link the physical properties with the geometrical entities.
AIR
BLADE
MAGNET
E-SHAPED
Goal Two non-meshed coils with two associated electric components (of coil
conductor type) are created to model two current sources of the contactor.
Data (1) The characteristics of the electric components (of coil conductor type) are
presented in the table below.
Data (2) The characteristics of the non-meshed coils are presented below.
New Flux The new Flux project is saved under the name CASE1.FLU.
project
Goal The case 1 is solved using the default scenario with reference values.
Solving Solve
Introduction This section explains how to analyze the principal results of case 1.
Goal The display of graphic post processing enables the user to check if the
problem is correctly formulated and emphasizes both the magnetic flux
density concentration areas and the direction of the flux. It also enables the
user to check the mesh quality. This is the first, indispensable control of the
accuracy of the results.
Data (1) The characteristics of the isovalues are presented in the table below.
Result (1) The isovalues of the magnetic flux density are displayed below.
Data (2) The characteristics of the arrows are presented in the table below
Result (2) The arrows of the magnetic flux density are displayed below.
Data (1) The characteristics of the 2D grids are presented in the tables below.
Data (2) The characteristics of the cut plane are presented in the table below.
Goal First, isovalues are used to visualize the scalar quantities of the magnetic flux
density on 2D grids. Then, arrows are used to visualize the vector quantities
of the magnetic flux density on a cut plane.
Data (1) The characteristics of isovalues are presented in the table below.
Isovalues on 2D grids
Name Type of Support Supports Formula
AIRBOX
ISOVAL_2 2D Grid B
POLE
Result (1) The isovalues of the magnetic flux density on both AIRBOX and POLE 2D
grids are displayed below.
Data (2) The characteristics of arrows are presented in the table below.
Result (2) The arrows of the magnetic flux density on CROSS cut plane are displayed
below.
Goal A 2D curve of the magnetic flux density along a path, located in the air gap, is
computed and displayed.
Data (1) The characteristics of the path are presented in the table below.
Outline The path along the contactor air gap is displayed in the figure below.
Data (2) The characteristics of the curve are presented in the table below.
Goal Isovalues are used to visualize the scalar quantities of the relative
permeability on selected volume regions.
Data (1) Define the torque axis before compute the magnetic torque.
Torque Axis
Pivot point
Direction Coordinates
Coordinate system
First Second Third
Parallel to OY BLADE 20 0 13.875
Data (2) The characteristics of the magnetic torque computation are presented in the
table below.
New Flux The new Flux project is saved under the name CASE2.FLU.
project
Introduction This section explains how to modify the initial physical description.
Goal One physical In/Out parameter is created in order to vary the current through
the second coil.
Data The characteristics of the I/O parameter are presented in the table below.
Data The modified characteristics of the coil conductor are presented in the table
below.
Goal One sensor is created to compute the magnetic flux through the second
stranded coil.
Data The characteristics of the sensor are presented in the table below.
Data The characteristics of the solving scenario are presented in the tables below.
Solving scenario
Name Comment Type
CASE2 Study using a physical parameter Multi-values
Solving scenario
Parameter control
Controlled Interval
parameter Lower limit Higher limit Method Step value
CURRENT2 -300 300 Step value 100
Solving Solve
Introduction This section explains how to analyze the principal results of case 2.
Goal First, the computational step of the physical parameterized study is selected.
Then, isovalues of the magnetic flux density are displayed in order to give
information on its intensity and control the quality of the mesh.
Data (1) The characteristics* of the computation step are presented in the table below.
* These characteristics are located in the dialog box below the data tree.
Data (2) The characteristics of isovalues are presented in the table below.
Result The isovalues of the magnetic flux density are displayed below.
Goal A 3D grid is created in order to display the magnetic flux density through the
contactor and the air.
Data The characteristics of the 3D grid are presented in the tables below.
Goal Isovalues are used to visualize the scalar quantities of the magnetic flux
density on a 3D grid.
Isovalues on 3D grids
Name Type of Support Supports Formula
ISOVAL_2 3D Grid GRID3D_1 B
Result The isovalues of the magnetic flux density on the 3D grid are displayed
below.
Goal The values of the magnetic flux through the SOURCE2 coil are computed as
the supply current.
Data The characteristics of the 2D curve are presented in the table below.
Goal A 2D curve of the magnetic field along a path surrounding the E-shaped of
the contactor is computed and displayed. Then the 2D curve is exported in a
.TXT file to compare it with a next result.
Data (1) The characteristics of the path are presented in the table below.
Compound path
Data (2) The characteristics of the curve are presented in the table below.
Data (3) The characteristics of the exportation of the 2D curve are presented below.
TXT export
Name Writing mode
H_CASE2 Add values
Goal The animation of isovalues of the magnetic flux density for different values of
the supply current is created in order to observe the trend.
Data The characteristics of the animation are presented in the table below.
Animation
General (All Steps) Display
Pilot
Name Build
Current Limit Limit Isovalues
Parameters options
value min max
ANIMA Build 4_ISOVAL_N
CURRENT2 - -300 300
TION_1 video O_INFINITE
Result The animation video is created in the project repertory in an .AVI file.
New Flux The new Flux project is saved under the name CASE3.FLU.
project
Introduction This section explains how to modify the initial physical description.
Goal The value of the current coil conductor SOURCE2 is fixed in order to vary
only the geometrical parameter.
Data The modified characteristic of the coil conductor is presented in the table
below.
Goal One sensor is created to compute the magnetic torque on volume regions.
Data The characteristics of the sensor are presented in the table below.
Data The characteristics of the solving scenario are presented in the tables below.
Solving scenario
Name Comment Type
CASE3 Study using a geometric parameter Multi-values
Solving scenario
Parameter control
Controlled Interval
parameter Lower limit Higher limit Method Step value
ALPHA -3 3 Step value 1
Solving Solve
Introduction This section explains how to analyze the principal results of case 3.
Goal First, the computation step of the geometric parameterized study is selected.
Then, isolines of the magnetic flux density are displayed in order to give
information on its intensity and control the quality of the mesh.
Data (1) The characteristics* of the computation step are presented in the table below.
* These characteristics are located in the dialog box below the data tree.
Data (2) The characteristics of isolines are presented in the table below.
Result The isovalues of the magnetic flux density are displayed below.
Goal The values of the magnetic torque versus the angular position of the blade are
computed and displayed using a sensor.
Data The characteristics of the 2D curve are presented in the table below.
5.3.3. Compare two 2D curves of the magnetic field along the same
path
Goal A 2D curve of the magnetic field along a path surrounding the E-shaped of
the contactor is computed and displayed. Then the 2D curve created in case 2
is imported and compared with that of case 3.
Data (1) The characteristics of the path are presented in the table below.
Compound path
Data (2) The characteristics of the curve are presented in the table below.
Action (1) Copy the H_CASE2.txt file in the current directory and import it into Flux
environment.
Data (1) The characteristics of the 3D curve are presented in the table below.
Result The following figure shows the magnetic field variation as function of the
angle ALPHA along the CONTACTOR_PATH.
Data (2) The characteristics of the exportation of the 2D curve are presented below.
Excel export
Name Writing mode
3D_CURVE_H Add values