The "FluxComputationOn2DGrid.PFM" macro permits to calculate the magnetic flux (real and imaginary parts) across the surface of a 2D grid. In other words, this macro calculates the integral of the normal component of the magnetic flux density on the surface of the 2D grid.

The result, expressed in Weber, is displayed in the “History zone” of the Flux PEEC window and it is equally stored in the data tree as a “Computation result” entity in the “Post-Processing” menu.

It should be noted that this magnetic flux is calculated only for the current step of the solving scenario.


  • 2D grid on which to make the computation of the magnetic flux


  • Magnetic flux current that crosses the surface of the 2D grid