ansys.mapdl.core.Mapdl.senergy#

Mapdl.senergy(opt='', antype='', **kwargs)#

Determines the stored magnetic energy or co-energy.

Mechanical APDL Command: SENERGY

Parameters:
optint or str

Item to be calculated:

  • 0 - Stored magnetic energy.

  • 1 - Stored magnetic co-energy.

antypeint or str

Analysis type:

  • 0 - Static or transient.

  • 1 - Harmonic.

Notes

senergy invokes a Mechanical APDL macro which calculates the stored magnetic energy or co- energy for all selected elements. (For a harmonic analysis, the macro calculates a time-averaged (rms) stored energy.)

A summary table listing the energy by material number is generated. The energy density is also calculated and stored on a per-element basis in the element table ( etable ) with the label MG_ENG (energy density) or MG_COENG (co-energy density). The macro erases all other items in the element table and retains only the energy density or co-energy density.

Issue pletab and pretab to plot and list the energy density.

The macro is valid for static and low-frequency magnetic field formulations.

The macro will not calculate stored energy and co-energy for the following cases:

  • Orthotropic nonlinear permanent magnets.

  • Orthotropic nonlinear permeable materials.

  • Temperature dependent materials.

senergy is restricted to MKSA units.