Electric and magnetic macros help you to prepare models and examine the results of a magnetic field analysis. The following macros are available:
CMATRIX calculates self and mutual capacitance coefficients between conductors.
CURR2D calculates current flow in a 2D conductor.
EMAGERR calculates the relative error in an electrostatic or electromagnetic field analysis.
EMF calculates the electromotive force (emf) or voltage drop along a predefined path.
EMFT summarizes electromagnetic forces and torques on selected nodes (PLANE121, SOLID122, SOLID123 only).
FLUXV calculates the flux passing through a closed contour.
MAGSOLV specifies magnetic solution options and initiates the solution for a static analysis.
MMF calculates magnetomotive force along a path.
PERBC2D generates periodic constraints for 2D planar analysis.
PLF2D generates a contour line plot of equipotentials.
PMGTRAN summarizes electromagnetic results from a transient analysis.
POWERH calculates the RMS power loss in a conducting body.
RACE defines a "racetrack" current source.
SENERGY determines the stored magnetic energy or co-energy.
You can find more information about the macros in the Command Reference and in the Mechanical APDL Theory Reference.
The following table shows where you can apply electric and magnetic macros:
Table 10.1: Application of Electric and Magnetic Macros
Magnetic Macros | PREP 7 | Sol | POST 1 | POST 26 | MVP Dom | MSP Dom | 2D Pla- nar | 2D Axi- sym | 3D | Edge Form | Static | Harm | Trans | Elec- tro- stat |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CMATRIX | Y | Y | - | - | - | - | Y | Y | Y | - | - | - | - | Y |
CURR2D | - | - | Y | - | Y | - | Y | Y | Y | - | Y | Y | Y | - |
EMAGERR | - | - | Y | - | Y | Y | Y | Y | Y | Y | Y | Y | Y | - |
EMF[1] | - | - | Y | - | - | - | - | - | - | - | - | Y | - | Y |
EMFT[1] | - | - | Y | - | - | - | - | - | Y | Y | Y | - | - | Y |
EMTGEN | Y | - | - | - | - | - | Y | Y | Y | - | Y | Y | Y | Y |
FLUXV | - | - | Y | - | Y | - | Y | Y | Y | - | Y | Y | Y | - |
MAGSOLV | Y | Y | - | - | Y | Y | Y | Y | Y | Y | Y | - | Y | - |
MMF | - | - | Y | - | Y | Y | Y | Y | Y | Y | Y | Y | Y | - |
PERBC2D | Y | - | - | - | Y | - | Y | - | - | - | Y | Y | Y | - |
PLF2D | - | - | Y | - | Y | - | Y | Y | - | - | Y | Y | Y | - |
PMGTRAN | - | - | - | Y | Y | Y | Y | Y | Y | Y | - | - | Y | - |
POWERH | - | - | Y | - | Y | - | Y | Y | Y | Y | - | Y | - | - |
RACE | Y | - | - | - | - | Y | - | - | Y | - | Y | - | - | - |
SENERGY | - | - | Y | - | Y | Y | Y | Y | Y | - | Y | Y | Y | - |