How to couple MANATEE with Femag?

PNG - 92.9 kb

Similarly to any third party finite element electromagnetic software, Femag can be coupled with MANATEE vibroacoustic software by importing the airgap flux distribution. This article details the workflow to define the corresponding MANATEE simulation.

Export the flux from Femag

Once your Femag simulation is finished, you will find the airgap flux density in a .plt0 or .plt1 file. The first step is to convert this file to a .mat file that Matlab can read. MANATEE includes a function to read plt file:

[XBr, XBt] = read_plt(file_path)
  • file_path: path to the plt0 or plt1 file
  • XBr: airgap radial flux density [T]
  • XBt: airgap tangential flux density [T]

Then you need to save the flux to a .mat file with:

save('Femag_plt0','XBr','XBt')

In the case of a variable speed simulation, all the flux matrices need to be saved in the same .mat file with the following constraints:

  • The .mat file contains a cell named flux_list
  • The cell flux_list has the same length as the number of speed / simulation
  • The order of the flux data in the cell flux_list is the same than MANATEE simulation
  • Each flux_list cell contains a structure with two field XBr and XBt (same definition as single speed)

Define the machine in MANATEE

Most of the electrical machine input parameters are only used for electromagnetic calculations. When enforcing the flux distribution, these parameters are not used so MANATEE provides simplified machine templates to avoid defining the machine twice (in Femag and in MANATEE).

Import the flux in MANATEE

Finally, you can define the MANATEE simulation to import the flux from Femag:

Input.Simu.is_electrical = 0; % No electrical module

Input.Simu.is_electromagnetics = 1; % To run the electromagnetics module
Input.Simu.is_loadBext = 1; % To import the flux
Input.Simu.pathname_Bext_rad = 'Femag_plt.mat';
Input.Simu.pathname_Bext_tan = 'Femag_plt.mat';

You will also need to define the time and angular discretization of the imported flux.

Previous Next