Académique Documents
Professionnel Documents
Culture Documents
FLUX2D ®
Version FLUX2D®7.60
Réf.: K205-O-760-EN-09/02
CEDRAT
10 Chemin de Pré Carré - Zirst
38246 MEYLAN Cedex
FRANCE
Phone: +33 (0)4 76 90 50 45
Fax: +33 (0)4 76 90 16 09
Email: cedrat@cedrat.com
Web: http://www.cedrat.com
FLUX2D®7.60 CONVENTIONS USED
CONVENTIONS USED
To make this tutorial easier to read, we use the following typeface conventions:
• All comments are written in the same way as this sentence.
• All dialog text between the user and FLUX2D is written in courier font:
<Q>uit
[q]uit ↵
Below are presented the conventions used for the dialog between the user and FLUX2D:
<B>old text FLUX2D menu input. Make a selection by clicking on the menu item with
the mouse or, if there is no ambiguity, by entering the first character of the
<M>AGENTA
word (shown in angled brackets < >).
<COILR>
The files corresponding to different cases studied in this tutorial are available
in the folder:
..\doc_examples\examples\tutorial\2D\Simulink
• If you do not know FLUX2D yet, we advise you to run through this entire
tutorial and to refer, if necessary to the given cases.
TABLE OF CONTENTS
1. Materials ......................................................................................................................3
5. Solve ........................................................................................................................15
6. Results.......................................................................................................................17
6.1 With Simulink............................................................................................................ 17
6.1.1 Resistances values ..................................................................................................17
6.1.2 Mechanical quantities...............................................................................................19
6.1.3 Electrical quantities ..................................................................................................20
7. Physical properties.....................................................................................................27
9. Results .......................................................................................................................31
9.1 With Simulink ............................................................................................................31
9.1.1 Mechanical quantities ...............................................................................................31
9.1.2 Electrical quantities...................................................................................................32
1. Materials
Table 1: Materials
The motor is supplied with a 3-phase bridge inverter where the free wheeling diodes have been
neglected. The inverter switching scheme is dependent on the rotor position. The switches are
modelled by resistances with a very low value to model on-state and very large value to model off-
state. To model the drop voltage on the switches, a voltage source has been added to every
resistance.
Simulink will control the value of the resistances depending on the position of the rotor.
In the electrical circuit will only be described the components: the values of the resistances will be
set to 1 as a reference value.
3. Physical properties
Complete this part in FLUX2D. Use the brushless machine geometry drawn in the first part.
Note :
Flux2d – Simulink coupling is available only for transient magnetic computations so far.
3.2 Materials
There are only two materials that should be assigned to regions as follows:
Table 3: Materials
FLUX2D automatically assigns the right boundary conditions taking into account the number of pole
pairs of the motors and the number of displayed poles.
?
0 BREAK
Quit
Zoom
Reset
Move
1 Dirichlet
2 Float
3 Cyclic
4 Anticyclic
5 Translation
6 Periodic
7 Cancel
In the following is presented the Simulink model, with the definition of every block.
- a “Coupling with Flux2d” block: this block calls FLUX2D during the computation (see
paragraph 4.2.2)
- the command (on the left part of the model): this part commands the value of the resistances
depending on the position of the rotor. (see paragraph 4.2.3)
- the outputs to be displayed (see paragraph 4.2.4)
The switches states depend on the rotor position, expressed in electrical angle. The following table
shows the moments where the switches are on, assuming one electrical period corresponds to 180
mechanical degrees.
Note:
According to the model we used, an on switch is equivalent to a resistance set to a low value.
In the following, the on state will be represented by a resistance of 1e-4 Ohm, the off state by a
resistance of 1e+6 Ohm.
This part controls the electrical circuit of Flux2D. It will control the value of the resistances
depending on the position of the rotor.
All six resistances are on in a certain range of values of the rotor position. The « Min » and « Max »
values are the trigger on and trigger off times respectively. Assuming that there are 2 pole pairs, one
mechanical period corresponds to 180 electrical degrees. That is why all the “Min” and “Max”
values should be in the range [0; 180]. The “Max” values are then not necessary greater than the
“Min” values. Two cases can be distinguished then: when the “Max” value is greater than the “Min”
value (for R1, R2, R3 and R6), and when the “Max” value is lower than the “Min” value (for R4 and
R5).
4.2.3 Outputs
Figure 6: Outputs
As six outputs have been defined in the « Coupling with Flux2d » block, 2 scopes with 3 graphs each
can be used (one for the mechanical quantities, one for the electrical quantities).
The output position of the rotor is expressed in mechanical degrees. As the resistances are controlled
with electrical angles, a block should be added to convert mechanical angles to electrical angles :
this is the block called «modulo » (block “Math function” to be find in Simulink - Math in the
Simulink Library Browser).
5. Solve
Note:
There is no need to open Flux2d to solve the problem. The simulation can be handled directly
in Simulink.
The computation time step for Flux2d has been defined in the « Coupling with Flux2d » block.
Before starting the solving, the computation range should be defined (start and stop times). In this
case, as explained above, one electrical period will be simulated, representing 15 ms.
Note:
Do not forget to choose the same time step for Simulink computation as done for Flux2d.
6. Results
Results can be displayed both with Simulink and with Flux2D. With Simulink, only the values
defined as outputs will be displayed. With Flux2D, all the quantities usually reachable with
Postpro_2D can be displayed and computed.
The first computed time step is for 0.1 ns. This solution corresponds then to a static result. It
explains why the first value of the electrical quantities is out of the range of the other ones.
Let us go now in Flux2d postprocessor to deeper analyse this problem.
The Flux density is computed on a path (arc of circle) located in the middle of the air gap.
6.2.3 Currents
The current in phase 1 is, between 0.3125 ms and 15 ms :
7. Physical properties
The constant speed problem being already defined, the physical properties can be easily modified to
simulate the no load startup of the motor.
The only information that changes is the definition of the air gap properties. Instead of being defined
as a rotational air gap with a constant angular velocity, it is defined as a rotational air gap with
constant mechanical values, defined as below:
All the other properties (materials, boundary conditions and electrical circuit) remain identical.
As the supply and the command remain identical, the Simulink model remains also the same. Then,
it is just needed to « Save as » the Simulink model with another name, and give the new name of the
TRA file to the « Coupling with Flux2d » block.
This time, the problem will be solved on 3 mechanical periods, i.e. 1.5 electrical period (45 ms). The
chosen time step is 0.5 ms.
9. Results
As it could have been expected, the no load motor torque has a steady state mean value equal to
zero.
This torque is different from the magnetic torque, represented in Simulink.
We have indeed :
T = Tm − Tr − fθ&
The no load startup problem being already defined, the physical properties can be easily modified to
simulate the servo operation.
The only information that changes is the definition of the air gap properties. It is still a rotational
airgap with constant mechanical values, but you have to add a drag torque.
All the other properties (materials, boundary conditions and electrical circuit) remain identical.
As the supply and the command remain identical, the Simulink model remains also the same. Then,
it is just needed to « Save as » the Simulink model with another name, and give the new name of the
TRA file to the « Coupling with Flux2d » block.
This time, the problem will be solved on 3 mechanical periods, i.e. 1.5 electrical period (45 ms). The
chosen time step is 0.5 ms.
12. Results
12.2.2 Torque
12.2.3 Currents
Currents in the three phases look as below: