Download as pdf or txt
Download as pdf or txt
You are on page 1of 26

FLUXMOTOR NEW MACRO TO BUILT A PART

How to build a FluxMotor part from a Flux2D geometry • Case of inner magnet
FluxMotor • Documentation and use case for Flux 12.3 and Flux 2018 • February 2018
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

CONTENT
• Macro function - General information
• Overview
• Where to find the macro
• General rules of use
• Fields to fill in the macro
• Example of use
• To go further with Excel

• Application example – Building of a symmetrical inner magnet


• Part to create
• Open Flux2D Sketcher
• Build the part with the sketcher
• Load and run the macro
• Fill the fields of the macro dialog box
• Create the part in Part Library
• Set structural data of the motor
• Select the new magnet from Motor Factory
• If needed, modify the polarization
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

MACRO FUNCTION

GENERAL INFORMATION
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

OVERVIEW : GOAL OF THE MACRO

• The macro function generates the Excel source file of an “Inner Magnet” FluxMotor part from a
geometry drawn in Flux2D environment

• Overlays, CAD imports (DXF,…), and Flux2D Sketcher can be used to generate the geometry
to export
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

OVERVIEW : RESTRICTIONS OF USE


• The macro function covers the cases of symmetrical and non-
symmetrical parts for non consequent poles

• The generated part is non-parametric.

• It can be used in FluxMotor for motors with structural data (rotor


inner diameter ID, rotor outer diameter OD and pole number PN)
strictly equal to the structural data measured on the part drawn in
Flux2D Sketcher
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

WHERE TO FIND THE MACRO FOR FLUX 12.3 AND FLUX 2018?

• The macro is directly embedded in Flux2018, in the installation directory.


• For standard installation C:\Program Files\Altair\2018\flux\Extensions\Macros\Macros_FluxMotor

• For Flux 12.3, the macro must be downloaded from Altair Connect
• https://connect.altair.com/CP/downloads.html?suite=FluxMotor&tab=2
• It must be unzipped in a directory C:\Altair\Extensions\Macros\Macros_FluxMotor
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

GENERAL RULES OF USE : BORDERS OF THE PART (1)

• The part borders must form a ring portion,


centered on the point (0,0) Rotate the part to align its
lowest border along X-axis

• The angular opening of this ring portion


must start from the X-axis and be positive
in counter clockwise direction

• The structural parameters OD, ID and PN


defining the part in FluxMotor, are directly
read from the borders of this sector Angular
Center opening
(X=0; Y=0) Outer radius
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

GENERAL RULES OF USE : BORDERS OF THE PART (2)

• All borders of this contour must exist.

• Each segment or arc can be composed of


several lines, except the internal arc, which
must be defined with a single line

• There must be no face and line out of this Single line along the
sector shaft
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

GENERAL RULES OF USE : SYMMETRICAL PARTS

• For symmetrical magnets, only the upper half-pole


of the magnet has to be defined

4 poles non-symmetrical magnet

Symmetry axis
along X-axis

4 poles symmetrical magnet


© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

General rules of use : geometry of the part

• The part must contain Convert propagated Replace formulas


entities in standard depending on parameters
 No geometrical defect entities by their numerical values
 No Curve line from CAD imports, appearing in
red in Flux Sketcher (only segments and arcs)
 No propagated entity
 No hole / missing face inside the border of the
part.
Heal and simplify entire Close the sketcher context to
geometry, to correct line build automatically all faces
• High number of points, and small lines, have to intersection, and then delete and avoid missing faces in the
be avoided. They can cause long time to import easily lines out of the sector geometry
the geometry into Part Factory, and increase
computation times in Motor Factory. Curve line from a
CAD import
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

FIELDS TO FILL IN THE MACRO

• The macro requires:


 The name of the Excel file to create, and the folder in which to store it
 The nature of the topology (symmetric or asymmetric)
 All faces belonging to the magnetic circuit (Yoke faces)
 All faces defining the magnets
 A line per magnet (segment or arc) to display the polarization of the
magnet in Motor Factory
 A coordinate system per magnet. These coordinate systems will be
used in Motor Factory to set the polarization of the magnet

• All non selected faces will be defined as air


To open the macro
documentation
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

EXAMPLE OF USE

Face 3 Coordinate System


« LEFT_MAGNET »
Line 3

Face 2 Coordinate System


«CENTER_MAGNET»
Face 1

Line 5

Coordinate System
«RIGHT_MAGNET»

Line 50 Face 9
Validate the box to
generate the Excel
file of the part
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

TO GO FURTHER WITH EXCEL


• The generated Excel file can be modified for advanced use
 To add other type of region (Bridge, Pole Core, etc.) to allow the computation of the flux density in
specific regions of the rotor
 To parameterize formula defining points, to make possible the use of the part for various motor
structural data

• For more details on FluxMotor parts, refer to the tutorials “Part factory-…” on Altair Connect
• https://connect.altair.com/CP/downloads.html?suite=FluxMotor&tab=2
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

APPLICATION EXAMPLE

BUILDING OF A SYMMETRICAL INNER MAGNET


© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

APPLICATION EXAMPLE

BUILDING OF A SYMMETRICAL INNER MAGNET


© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

PART TO BUILD
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

OPEN FLUX2D SKETCHER

Open Sketcher context if it is not

Select a
working
directory
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

BUILD THE PART WITH THE SKETCHER : BORDERS OF THE PART


Heal geometry to
create points at lines
Build two circles and intersections
two segments to draw (35;35)
the part area

Double click on
Delete all lines
points to adjust
except the border
their coordinates
of the sector
(0;0) (20;0) (40;0) (45;0) (CTRL+ click on all
line to delete, then
SUPPR)
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

BUILD THE PART WITH THE SKETCHER : GEOMETRY OF THE PART

Build the external arc of the magnet Build the hole in the magnetic circuit Build the inner arc of the magnet Build the edge of the magnet

(25;27)

(23;20)
(25,5;25) (30;25)
(20;20)

(36;15)

Center
(0;0) (36;0)

Heal geometry to correct


intersections, then delete all
unnecessary lines, and close
sketcher context
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

LOAD AND RUN THE MACRO


© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

FILL THE FIELDS OF THE MACRO DIALOG BOX

Line 10

Face 3
Face 2

Validate the box to generate


the Excel file of the part Coordinate System
«XY1»
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

CREATE THE PART IN PART LIBRARY


Browse the file
built by the macro
function

Select a user
library in which
the part will be
stored

The part is opened in


Part factory, and is
ready to be used in
Motor Factory
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

SET THE STRUCTURAL DATA OF THE MOTOR IN WHICH TO USE THE


PART
• Structural data of the part are displayed in Flux output windows after using the macro, and in
Part Factory, once the part opened
Apply the structural data of the part on the rotor before to
load the part (the part is non parametric, so fits only for
motors with the same structural data on the rotor)
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

SELECT THE NEW MAGNET SHAPE FROM MOTOR FACTORY

Select the library where


the magnet is stored

Select the
magnet to
import
© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

IF NEEDED, MODIFY THE POLARIZATION IN MOTOR FACTORY


© 2018 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

END

You might also like