Flux 2023.1: New and Updated Macros

Here the list of new and updated macros implemented in the Flux 2023.1 release.

MeshingForMechanicalOptim.PFM

The purpose of this macro is to generate and control a refined mesh that is adapted to Topology optimization problems. It also generates meshes that are suitable to Free-shape optimization problems relying on Mechanical constraints.

The macro may be executed by simply selecting the faces for optimization. The macro will set an inactive relaxation on these faces and disable relaxation on the lines of these faces. It allows also remeshing some additional faces proposed by the user (optional) to obtain a regular mesh. It will set a medium relaxation on these faces and set inactive relaxation on the lines of these faces. The mesh size is controlled by creating a mesh point with a default value of 0.5 mm (which can be modified by the user).

Inputs:

  • Selected faces for optimization
  • Mesh size of these faces
  • Other faces for a regular mesh (optional)

Output:

  • A new generated mesh


Initial mesh New Mesh

LUT_2D_4SystemAnalysis_Half.PFM

This macro intends to create look up table of flux dq, Ld, Lq and torque versus Id, Iq and rotor position (if needed). The goal is for analysis on the system part (like with Twin Activate or PSIM for instance). It will create a new Magneto-Static project from the transient magnetic one. In the Magneto-Static project the current is driven with Id and Iq allowing to extract easily all the needed tables. At the end of the oml file in comment there is the possibility to display Ld, Lq and torque versus Id and Iq with Altair Compose. An *.mat file is created.

Note: that there are some pre-requisites to fulfil:
  • The circuit must have only 3 coil conductors
  • No compressible mechanical set
  • Delete all results

Inputs:

  • Current in 3 supplies
  • Select mobile mechanical set
  • Select fixed mechanical set
  • Max value for Id
  • Number of values for Id (odd)
  • Number of poles
  • Number of pole pairs represented in geometry (0.5 for one pole)
  • Number of stator periodicities
  • Depending on rotor position
  • Fast computation or not
  • Operational quadrant
  • Number of steps in 1/3 of the electric period
  • Period for rotation (in degrees)
  • Motor viscuous friction coefficient (Nms/degrees)
  • Motor inertia (in kg/m²)

Outputs:

  • Create a result OML file with name created from the initial file (*_res.oml)
  • It will also include more data such as phase resistance, end winding inductance, electric period and initial rotor position plus possibility to display values in Compose

Historical aspects

Compared to the previous LUT_2D_4SystemAnalysis macro, this macro allows:

  • Possibility to compute values in different (Id,Iq) quadrants:
    • 1 for 2nd quadrant
    • 2 for quadrant 2 and 3
    • 4 for all quadrants


  • Limit the number of rotor position to 1/3 or ½ (1/2 is giving same results as for whole electric period with less solving time). The choice of angular position must go through half position of electric period (45° for 90° of electric period for instance)
  • The overall solving time is strongly decreased compared to previous versions