How to convert old machine script to use the material library?

MANATEE v1.06.01 introduces a new concept that breaks the backward compatibility of machine files: the material library. Your old machine script doesn’t have the Input.Material variables and will use the default_machine ones and, therefore, its materials (that exist in the material library). All the previous material parameters will be ignored. Therefore, your project will still run but with wrong material parameters.

First, to make sure that you won’t lost some data in the process, we strongly recommand you to make a backup of your machine files. To adapt your old scripts to the material library, the quickest way is to load them with the machine GUI and save them. All the machine file will be rewritten according to the default_machine template. The old machine parameters will be replaced by the new ones. If you are experiencing some difficulties to load your machine, feel free to contact the support.

Now that your machine file has the correct material parameters, you need to set them to the correct values. First, open the machine GUI on any page that use materials (step 3: Stator Lamination for instance) and click on "Edit Materials" to open the material library GUI. Now, either there is already a material that has the correct values that you can re-use, either you will have to create a new material with your values and select it. In both cases, you can use these tables to find the equivalence between old (manatee machine script names) and new parameters (init_material_library script names):

Stator lamination
Old nameNew name
Input.Geometry.Wslam Magnetics.Wlam
Input.Mechanics.Mst1 Mechanics.Rho
Input.Mechanics.Es_xy Mechanics.E_xy
Input.Mechanics.Es_z Mechanics.E_z
Input.Mechanics.Gs_xy Mechanics.G_xy
Input.Mechanics.Gs_xz Mechanics.G_xz
Input.Mechanics.Gs_yz Mechanics.G_yz
Input.Mechanics.mus_xy Mechanics.mu_xy
Input.Mechanics.mus_xz Mechanics.mu_xz
Input.Mechanics.mus_yz Mechanics.mu_yz
Input.Magnetics.mat_names MatName
Input.Magnetics.mu_is Magnetics.mu
Stator winding
Old nameNew name
Input.Electrical.rhosw20 Electrical.Rho20
Input.Thermics.alphasw Thermics.Alpha
Input.Mechanics.Ewind Mechanics.E_xy and Mechanics.E_z
Input.Mechanics.Mstw Mechanics.Rho
Rotor lamination
Old nameNew name
Input.Geometry.Wrlam Magnetics.Wlam
Input.Mechanics.Mst2 Mechanics.Rho
Input.Mechanics.Er_xy Mechanics.E_xy
Input.Magnetics.mu_ir Magnetics.mu
Rotor magnet
Old nameNew name
Input.Magnetics.Brm20 Magnetics.Brm20
Input.Magnetics.mur Magnetics.mu
Input.Electrical.rhorw20 Electrical.Rho20
Input.Thermics.alphaBr Thermics.Alpha
Input.Mechanics.Msmg Mechanics.Rho
Rotor winding
Old nameNew name
Input.Electrical.rhorw20 Electrical.Rho20
Input.Thermics.alpharw Thermics.Alpha
Input.Mechanics.Msrw Mechanics.Rho
Rotor bar
Old nameNew name
Input.Electrical.rhorw20 Electrical.Rho20
Input.Thermics.alpharw Thermics.Alpha
Input.Mechanics.Msb Mechanics.Rho
Rotor short circuit ring
Old nameNew name
Input.Electrical.rhoc20 Electrical.Rho20
Input.Thermics.alpharew Thermics.Alpha
Input.Mechanics.Mscc Mechanics.Rho
Frame
Old nameNew name
Input.Mechanics.Mstc Mechanics.Rho
Input.Mechanics.Efra Mechanics.E_xy and Mechanics.E_z

Note that when defining a new material for a specific purpose (lamination, magnet, frame...) you can limit the parameter you set to the one in these tables. For instance, there is no need to set Electrical.rho for a frame material.

Previous Next