2.3. Steps in a Static Magnetic Analysis

A static magnetic analysis consists of five main steps:

  1. Create the physics environment.

  2. Build and mesh the model and assign physics attributes to each region within the model.

  3. Apply boundary conditions and loads (excitation).

  4. Obtain the solution.

  5. Review the results.

The next few topics discuss what you must do to perform these tasks. At the end of this chapter, you will find a 2D static analysis example derived from an actual analysis of a solenoid actuator. The example walks you through the analysis by choosing items from GUI menus, then shows you how to perform the same analysis using commands.

2.3.1. Creating the Physics Environment

In defining the physics environment for an analysis, you enter the preprocessor (PREP7) and establish a mathematical simulation model of the physical problem. To do so, you follow the steps listed below. (Subsequent topics discuss each step in more detail.)

  1. Set GUI Preferences.

  2. Define the analysis title (/TITLE command).

  3. Define element types and options (KEYOPT settings).

  4. Define element coordinate systems.

  5. Set real constants and define a system of units.

  6. Define material properties.

2.3.1.1. Setting GUI Preferences

If you are running Mechanical APDL via the GUI, the first thing you should do after the GUI becomes active is choose menu path Main Menu> Preferences. Then, on the dialog box that appears, select Magnetic-Nodal from the list of magnetic analysis types. Because the GUI filters the elements available to you based on the preference you choose, you must set preferences before doing anything else, and you must specify Magnetic-Nodal to ensure that you can use the elements needed for 2D static analysis.

2.3.1.2. Defining an Analysis Title

Give your analysis a title that reflects the problem being analyzed, such as "2D solenoid actuator static analysis." Be sure to choose a unique title to distinguish this analysis problem from others that may use similar model geometry or physics. To assign a title, use either of the following:

Command(s): /TITLE
GUI: Utility Menu> File> Change Title

2.3.1.3. Specifying Element Types and Options

The tasks you perform to choose element types are the same for a static magnetic analysis as they are for other analysis types, and the Basic Analysis Guide explains these procedures at length.

Element types establish the physics of the problem domain. Depending on the nature of the problem, you may need to define several element types to model the different physics regions in the model. For example, a permeable iron region may require one element type, and a stranded coil may require a different element type. The element types you choose and their options (KEYOPTS, discussed next) must be compatible with the nature of the domain to be solved. Once you have specified element types and options, you can assign them to different regions of the model.

The tables and figures below show you regions that can exist within a 2D model. Details on specifying material properties and real constants noted in the tables and figures follow in the next few sections.

AirDOF: AZ

Material Properties: MUr (MURX), rho (RSVX) (if Joule heat losses are desired)

IronDOF: AZ

Material Properties: MUr (MURX) or B-H curve (TB command)

Permanent magnetDOF: AZ

Material Properties: MUr (MURX) or B-H curve (TB command); Hc (coercive force in terms of vector components, MGXX, MGYY)

Polarization direction is determined by coercion force (magnetization) terms MGXX and MGYY in conjunction with the element coordinate system.

Current-fed stranded coilDOF: AZ

Material Properties: MUr (MURX)

Special characteristics: Apply source current density, JS (using BFE,,JS command)

Assumes a stranded insulated coil producing a constant DC current, unaffected by surrounding conditions. You can calculate current density from the number of coil turns, the current per turn, and the cross-section area of the coil.

Voltage-fed stranded coil

DOFs:

AZ, VOLT, EMF (with PLANE233)

Material Properties:

MUr (MURX), rho (RSVX)

Real constants:

SC, NC, RAD, TZ, R, SYM

Special characteristics:

Couple CURR DOFs in region.

Applied voltage is unaffected by surroundings.

For more details about voltage source modeling, see 2D Stranded Coil Analysis.

Moving conducting bodies

DOFs:

AZ (with PLANE233)

Material Properties:

MUr (MURX), or B-H curve (TB command), rho (RSVX)

Real constants:

None

Special characteristics:

Apply velocities VELOX, VELOY, OMEGAZ via BF,,VELO command

Moving body must not undergo spatial change in the "material". See Step 1d for more details.

Dissimilar mesh interfaceDOFs: AZ

Contact elements: TARGE169, CONTA172, CONTA175

CONTA17x KEYOPTS: KEYOPT(1)=7 (AZ), KEYOPT(2)=2 (MPC approach), KEYOPT(4) = 1 or 2 (n/a for CONTA175), KEYOPT(12)=5

Use PLANE13 or PLANE233 elements to represent all interior regions of your model magnetic (permeable) regions, current-conducting regions, permanent (that is, magnet) regions, and air (free space), etc.

To model an unbounded problem domain, use of INFIN110, the four- or eight-node boundary element, is recommended. INFIN110 can model the far-field decay in the magnetic field and will give better results than an assumed flux-parallel or flux-normal boundary condition.

Most element types have additional options known as KEYOPTS, which you use to modify element characteristics. For example, element PLANE233 has the following KEYOPTS:

KEYOPT(1)

Selects the element's DOFs

KEYOPT(2)

Selects coupling method between magnetic and electric degrees of freedom (KEYOPT(1) = 1); also defines the meaning of the VOLT degree of freedom

KEYOPT(3)

Selects plane or axisymmetric option

KEYOPT(5)

Activates or suppress eddy currents in electromagnetic harmonic or transient analyses (KEYOPT(1) = 1)

KEYOPT(7)

Selects electromagnetic force output at each element node or at element corner nodes only

KEYOPT(8)

Selects a Maxwell or Lorentz electromagnetic force calculation

Each element type uses different KEYOPTS, and the characteristics that KEYOPTS define vary from one element to another. KEYOPT(1) controls the use of additional degrees of freedom. These additional DOFs are used to model different physics in the electromagnetic domain (for example, a stranded conductor, a massive conductor, a circuit-coupled conductor, etc.). To see which KEYOPTS and KEYOPT settings apply to a particular element, see its description in the Element Reference.

To specify KEYOPT settings, use one of the following:

Command(s): ET, KEYOPT
GUI: Main Menu> Preprocessor> Element Type> Add/Edit/Delete

2.3.1.4. Defining the Element Coordinate System

If you have laminated materials or permanent magnets aligned in an arbitrary manner, you need to specify the element coordinate system or systems to be used. The Global Cartesian coordinate system is the default. After defining element types and options, you can specify a different coordinate system by specifying its origin location and orientation angles. To do so, use either of the following:

Command(s): LOCAL
GUI: Utility Menu> WorkPlane> Local Coordinate Systems> Create Local CS> At Specified Loc

The coordinate system types available are Cartesian, cylindrical (circular or elliptical), spherical (or spheroidal), and toroidal. Once you have defined one or more element coordinate systems, you can set a pointer that identifies the coordinate system to be assigned to subsequently defined elements (area and volume elements only). Set the pointer using one of the following:

Command(s): ESYS
GUI: Main Menu> Preprocessor> Meshing> Mesh Attributes> Default Attribs
Main Menu> Preprocessor> Modeling> Create> Elements> Elem Attributes

2.3.1.5. Defining Element Real Constants and a System of Units

Element real constants are miscellaneous properties that depend on the element type. You specify real constants using the R family of commands (R, RMODIF, etc.) and their equivalent GUI paths. In electromagnetics, you use real constants to define stranded coil geometry and winding characteristics, or to describe velocity effects. Observe two rules when defining real constants:

  1. You must enter real constants in the order in which they are listed in the Element Reference.

  2. For models using multiple element types, use a separate real constant set (that is, a different REAL reference number) for each element type. However, a single element type may reference several real constant sets.

See Getting Started in the Basic Analysis Guide for more information about defining real constants.

2.3.1.5.1. Choosing a System of Units for Your Analysis

The default system of units is MKS (meter-ampere-second). You can change this to any other system you prefer using one of the methods shown below. Voltage-fed or circuit-fed conductors may use only the MKS system of units. Once you choose a system of units, all input data must be in that system.

Command(s): EMUNIT
GUI: Main Menu> Preprocessor> Material Props> Electromag Units

Based on the input units you specify, the free-space permeability μo is determined automatically as follows:

μo= 4 π x 10-7 H/m in MKS units

or

μo= the value specified with the EMUNIT command or its GUI path equivalent.

2.3.1.6. Specifying Material Properties

Your model may have any or all of the following material regions: air, (free-space) permeable materials, current-conducting regions, and permanent magnets. Each type of material region has certain required material properties.

The material library contains definitions of several materials with magnetic properties. Instead of defining material properties from scratch, you can read these material properties into the database and, if necessary, modify them to match the materials in your analysis problem more closely.

Materials with magnetic properties defined in the material library are as follows:

MaterialMaterial Property File Containing Its Definition
CopperemagCopper.SI_MPL
M3 steelemagM3.SI_MPL
M54 steelemagM54.SI_MPL
SA1010 steelemagSa1010.SI_MPL
Carpenter (silicon) steelemagSilicon.SI_MPL
Iron cobalt vanadium steelemagVanad.SI_MPL

The copper property presents temperature-dependent resistivity and relative permeability. All other properties are B-H curves.

The property definitions in the material library specify properties "typical" for the materials listed. Mechanical APDL has extrapolated these properties to cover high saturation conditions. Your actual material values may differ from those supplied; therefore, you may need to modify the material library files you use.

2.3.1.6.1. Accessing Material Library Files

The next few paragraphs explain basic procedures for reading and writing material library files. You can find a more detailed discussion of these procedures and the material library in Getting Started of the Basic Analysis Guide.

To read a material library file into the database, do the following:

  1. If you have not already specified the system of units you are using, issue the /UNITS command.


    Note:  The default system of units for Mechanical APDL is MKS. The GUI lists only material library files with the currently active units.


  2. Define the material library read path for the material of interest. (You will need to know which directory path your system administrator has used to store the material library files.) To do so, use either of the following:

    Command(s): /MPLIB,READ,pathdata
    GUI: Main Menu> Preprocessor> Material Props> Material Library> Library Path
  3. Read the material library file into the database using one of the following:

    Command(s): MPREAD,filename...LIB
    GUI: Main Menu> Preprocessor> Material Props> Material Library> Import Library
    Main Menu> Preprocessor> Loads> Load Step Opts> Other> Change Mat Props
    Main Menu> Preprocessor> Material Props> Material Library> Import Library

To write changes to a material library file, perform these steps:

  1. Edit the material property definition using either the MP command (Main Menu> Preprocessor> Material Props> Material Models, Isotropic). Make sure that your revised definition includes a material number and at least one material property value (for example, magnetic permeability or MURX).

  2. From the PREP7 preprocessor, issue the command shown below:

    Command(s): MPWRITE,filename,,,LIB,MAT
    GUI: Main Menu> Preprocessor> Material Props> Material Library> Export Library(material library file)
2.3.1.6.2. Additional Guidelines for Defining Regional Material Properties and Real Constants

The next few paragraphs provide some guidelines for setting up physics regions for your model. In addition, you may want to consult 2D Harmonic Magnetic (AC) Analysis; it pictures and describes the regions that can exist within a 2D model.

For air regions:

Specify a relative permeability of 1.0. To do so, use one of the following:

Command(s): MP,MURX
GUI: Main Menu> Preprocessor> Material Props> Material Models> Electromagnetics> Relative Permeability> Constant

For permeable material regions:

For linear magnetic material, you can specify relative permeability values MURX, MURY, and MURZ using the MP command. To specify a linear isotropic material, you only need to specify MURX. MURY and MURZ default to MURX. Free-space permeability MUZRO is set by the EMUNIT command. Ignoring permanent magnet effects, the B-H equations for linear magnetic materials are:

Bx = (MUZRO) (MURX) (Hx)
By = (MUZRO) (MURY) (Hy)
Bz = (MUZRO) (MURZ) (Hz)

For nonlinear soft magnetic material, specify the B-H curve by reading from a material library or by creating your own B-H curve:

Command(s): MPREAD,filename, ...
GUI: Main Menu> Preprocessor> Material Props> Material Library> Import Library
Command(s): TB, TBPT
GUI: Main Menu> Preprocessor> Material Props> Material Models> Electromagnetics> BH Curve

If you specify a B-H curve, it should meet the following requirements for the material to be represented accurately:

  • The B values must be unique for each H value, and must start at the origin and monotonically increase with H, as shown in Figure 2.1: B-H and Reluctivity vs. B Squared Curves(a). By default, the B-H curve will pass through the origin (that is, the 0.0 point is not to be explicitly defined). You can verify this by plotting B versus H using one of the methods shown below. (For more information, see the Element Reference.)

    Command(s): TBPLOT
    GUI: Main Menu> Preprocessor> Material Props> Material Models> Electromagnetics> BH Curve
  • The ν-B2 curve that Mechanical APDL calculates internally (where ν is the reluctivity) should be smooth and continuous. You can verify this by plotting ν versus B2 using the TBPLOT command. (See Figure 2.1: B-H and Reluctivity vs. B Squared Curves(b).)

  • The B-H curve should cover the complete operating range of the material. If a point beyond the end of the curve is required, the B-H curve is extrapolated with a slope equal to the free-space permeability. You can view values in the extrapolated region by adjusting the X-axis range. To do so, use one of the following together with the TBPLOT command:

    Command(s): /XRANGE
    GUI: Utility Menu> PlotCtrls> Style> Graphs

Figure 2.1: B-H and Reluctivity vs. B Squared Curves

B-H and Reluctivity vs. B Squared Curves

If a nonlinear B-H curve is specified without any relative permeability values, the B-H equations are:

Bx = F(|H|) / (|H|) (Hx)
By = F(|H|) / (|H|) (Hy)
Bz = F(|H|) / (|H|) (Hz)

where:

|H| = {(Hx)2 + (Hy)2 + (Hz)2}1/2

If a nonlinear B-H curve and relative permeability (MURX label) are specified for the same material, the relative permeability will be used.

Orthotropic material relative permeability may be assigned using the MURX, MURY, and MURZ labels on the MP command. A B-H curve may be used in conjunction with relative permeability to model nonlinear effects along any one of the three orthogonal axes (such as for laminated iron material). To invoke the usage of a B-H curve along one of the axes, set the relative permeability for that axis explicitly to zero. For example, assume a B-H curve is defined for material number 2. You want to have the curve active along the Y-axis, while assigning the X and Z axes a relative permeability of 1000. Your input would be:

mp,murx,2,1000
mp,mury,2,0! read B-H curve for material 2
mp,murz,2,1000

If a B-H curve is specified along with zero permeability in two directions and a non-zero permeability in one direction, the B-H curve will be applied to the two axes with zero permeability. For example, if MURX and MURY are zero and MURZ is non-zero, the B-H equations are:

Bx = F(|H|) / (|H|) (Hx)
By = F(|H|) / (|H|) (Hy)
Bz = (MUZRO) (MURZ) (Hz)

where:

|H| = {(Hx)2 + (Hy)2 + (Hz)2}1/2

If a nonlinear B-H curve is specified with a thermal coefficient C1 (TBOPT = TCF on the TB,BH command), then the material pearmeability is calculated as:

μh = (μh,ref)*(C1)+(MUZRO)*(1-C1)

where μh,ref = F(|H|) / (|H|) is the reference permeability calculated from the specified B-H curve. The thermal coefficient is calculated from the specified thermal coefficient data table for a given element temperature value. Among 2D elements, only PLANE223 and PLANE233 support the TBOPT = TCF option.

To define the thermal coefficient data table, use the TBTEMP command, or the TBFIELD,TEMP command, along with the TBDATA command. For field variable data definition and calculation, see TBFIELD and Understanding Field Variables in the Material Reference.

2.3.1.7. Source Conductor Regions

A source conductor is a conductor connected to an external current "generator" that supplies a constant current. Specify resistivity if you wish to have the program calculate Joule heating losses. Resistivity may be isotropic or orthotropic. To specify resistivity, use one of the following:

Command(s): MP,RSVX
GUI: Main Menu> Preprocessor> Material Props> Material Models> Electromagnetics> Resistivity> Constant

In a static analysis, resistivity is used only for loss calculations.

2.3.1.8. Moving Conductor Regions

For a moving conductor analysis (velocity effects), specify isotropic resistivity (using the command or GUI path shown above).

You can solve electromagnetic fields for special cases of moving bodies. Valid special cases are those in which the moving body presents itself as a homogeneous moving body for which the moving "material" undergoes no spatial change. Figure 2.2: Applicable Configurations for Considering Velocity Effects of Moving Bodies shows two valid cases:

  • In the first case, a solid rotor is rotating about an axis at a constant rotational speed.

  • In the second case, an "infinitely" long conductor is translating at a constant velocity.

Figure 2.2: Applicable Configurations for Considering Velocity Effects of Moving Bodies

Applicable Configurations for Considering Velocity Effects of Moving Bodies

An invalid case would be a "slotted" rotor rotating at constant speed. In this case, the slots in the motor present a discontinuity in material as the body rotates. Another invalid case would be a translating conductor of finite width moving in a magnetic field. Typical valid applications are solid rotor induction machines, linear induction machines, and eddy-current braking systems.

A static analysis requires input to specify the translational velocity or the rotational speed of the conductor. With PLANE233, specify the following nodal velocities (BF,,VELO):

  • VELOX, VELOY - Velocity components in the global Cartesian coordinate system X and Y direction, respectively.

  • OMEGAZ - Angular (rotational) velocity (in rad/sec) about the global Cartesian system Z axis.

Velocity effects can be suppressed (KEYOPT(5) = 2) if they are undesirable in the electromagnetic elements adjacent to the domain with a specified velocity.

Accuracy of analysis results for electromagnetic problems with moving bodies depends on the mesh refinement, permeability, conductivity, and velocity. A magnetic Reynolds number is defined to characterize the problem:

Mre = μvd/ρ

In the equation above, μ is permeability, ρ is resistivity, v is velocity, and d is characteristic length (in the directional motion) within a finite element of the conducting body. The magnetic Reynolds number is meaningful only in a static or transient analysis.

The motion formulation is valid and accurate for relatively small values of the Reynolds number, typically on the order of 1.0. Accuracy for higher Reynolds number values will vary from problem to problem. The magnetic Reynolds number is calculated and available in the postprocessor for viewing. In addition to a field solution, the motion solution includes currents in the conductor due to motion. This is available in the postprocessor.

2.3.1.9. Permanent Magnet Regions

Requirements are the normal demagnetization B-H curve (or relative permeability, if linear) and components of the magnetic coercive force vector (values MGXX, MGYY, or MGZZ for either of the following):

Command(s): MP
GUI: Main Menu> Preprocessor> Material Props> Material Models> Electromagnetics> BH Curve

The demagnetization B-H curve, which normally lies in the second quadrant, must be defined in the first quadrant. To do this, you need to add a constant "shift" to all H values, as shown in Figure 2.3: Actual and Mechanical APDL (Shifted) Demagnetization Curves. The shift, given by:

represents the magnitude of the coercive force. The coercive force components are used to align the magnetization axis of the magnet with the element coordinate system.

Figure 2.3: Actual and Mechanical APDL (Shifted) Demagnetization Curves

Actual and Mechanical APDL (Shifted) Demagnetization Curves

The example below shows a bar magnet that lies along an axis 30o to the global X-Y plane. The elements in the magnet are to be assigned to a local element coordinate system whose X-axis is aligned with the polarization direction. The example also shows the magnet's demagnetization characteristics and the corresponding material property input.

 

/PREP7
HC=3000             ! Coercive force
BR=4000            ! Residual induction


THETA=30           ! Permanent magnet orientation
*AFUN,DEG          ! Angular parametric functions in degrees
MP,MGXX,2,HC! X component of coercive force
! B-H curve:
TB,BH,2               ! B-H curve for material 2
TBPT,DEFI,-3000+HC,0  ! Shifted B-H curve
TBPT,,-2800+HC,500    ! First field defaults to "DEFI"
TBPT,,-2550+HC,1000
TBPT,,-2250+HC,1500
TBPT,,-2000+HC,1800
TBPT,,-1800+HC,2000
TBPT,,-1350+HC,2500
TBPT,,-900+HC,3000
TBPT,,-425+HC,3500
TBPT,,0+HC,4000
TBPLOT,BH,2           ! Plot of B vs. H

Figure 2.4: B-H Curve for Bar Magnet Example shows the B-H curve for the permanent magnet as created in the first quadrant. For more information, read the descriptions of the *AFUN, MP, TB, and TBPLOT commands in the Command Reference.

Figure 2.4: B-H Curve for Bar Magnet Example

B-H Curve for Bar Magnet Example

You can represent nonlinear orthotropic materials (laminated structures) by combining a single B-H curve with orthotropic relative permeability. The program will use the B-H curve in each element coordinate system direction where a zero specified value of relative permeability is assigned. (For related information, see the description of the ESYS command in the Command Reference.)

2.3.2. Building and Meshing the Model and Assigning Region Attributes

To build your model, use the procedures discussed in the Modeling and Meshing Guide. Then, assign attributes to each region in your model. (Attributes are the element types and options, element coordinate systems, real constants, and material properties you defined in Creating the Physics Environment.)

To assign attributes via the GUI, perform these tasks:

  1. Choose Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Areas. The Meshing Attributes dialog box appears.

  2. Pick the area(s) making up one of the regions in your model.

  3. On the dialog box, specify the material number, real constant set number, element type number, and element coordinate system to use for the area or areas. Click OK.

  4. Repeat the process for the next region, the region after that, and so on until all regions have defined attributes.

If you are modeling two contacted bodies, follow the steps for a magnetic contact analysis, explained in Modeling Magnetic Contact.

To assign attributes via commands, issue the ASEL command to select a region's area or areas. Then, issue these commands: MAT (specifies the material number), REAL (specifies a real constant set), TYPE (assigns an element type number), and ESYS (assigns an element coordinate system). Issue the same command sequence for each area until all model regions have assigned attributes. (The Command Reference contains detailed information about the commands.)

When you have assigned all regional attributes, mesh the model using the procedures explained in the Modeling and Meshing Guide.

2.3.3. Applying Boundary Conditions and Loads

You can apply boundary conditions and loads to a 2D static magnetic analysis either on the solid model (keypoints, lines, and areas) or on the finite element model (nodes and elements). The program automatically transfers loads applied to the solid model to the mesh during solution.

You access all loading operations through a series of cascading menus. When you choose Main Menu> Solution> Define Loads> Apply> Magnetic, the program lists available boundary conditions and three load categories. You then choose the appropriate category and the appropriate boundary condition or load. The boundary conditions and loads you can choose for a 2D static analysis are as follows:

-Boundary--Excitation--Flag--Other-
-Vector Poten--Curr Density-Comp. Force-Curr Segment-
On KeypointsOn Keypoints-Infinite Surf-On Keypoints
On NodesOn NodesOn LinesOn Nodes
-Flux Par'l-On ElementsOn Areas-Maxwell Surf-
On LinesVoltage DropOn NodesOn Lines
On Nodes  On Areas
-Flux Normal-  On Nodes
On Lines  -Virtual Disp-
On Nodes  On Keypoints
Periodic BCs*  On Nodes

*For periodic boundary conditions, use the cyclic symmetry capability.

For example, to apply current density to elements, follow this GUI path:

GUI:

Main Menu> Preprocessor> Define Loads> Apply> Magnetic> Excitation> Curr Density> On Elements

You may see other load types or loads listed on the menus. If they are grayed out, either they do not apply to 2D static analysis or the appropriate KEYOPT option on the element type has not been set. (However, the grayed-out items will be valid for other types of magnetic analysis; the Mechanical APDL GUI filters menu choices.)

Alternatively, you can issue commands to specify loads. See Alternative Analysis Options and Solution Methods of this manual for information on how to do so.

To list existing loads, follow this GUI path:

GUI:

Utility Menu> List> Loads> load type

The next few paragraphs describe the loads you can apply.

2.3.3.1. Boundary Conditions

2.3.3.1.1. Magnetic Vector Potentials (AZ)

These loads specify flux-parallel, far-field, and periodic boundary conditions, as well as an imposed external magnetic field. The following table shows the AZ values required for each type of boundary condition:

Boundary ConditionValue of AZ
Flux-normalNone required (naturally occurring)
Flux-parallelSpecify AZ = 0, using the D command (Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Boundary> Vector Poten or Flux Par'l> On Lines or On Nodes).
Far-fieldUse element INFIN110
PeriodicFor static analyses, use Mechanical APDL's cyclic symmetry capability. For harmonic or transient analyses, use the PERBC2D macro (described in Electric and Magnetic Macros) to create odd or even symmetry periodic boundary conditions on nodes (only). Or, use GUI path Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Boundary> Vector Poten> Periodic BCs.
Imposed external fieldApply nonzero values of AZ. Use Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Boundary> Vector Poten or Flux Par'l> On Lines or On Nodes.

Flux-parallel boundary conditions force the flux to flow parallel to a surface, while flux-normal boundary conditions force the flux to flow normal to a surface. You do not need to specify far-field zero boundary conditions if you use INFIN110 boundary elements to represent the "infinite" boundary of the model. Use the cyclic symmetry capability to apply periodic boundary conditions in models that take advantage of periodic or repeating flux patterns. For an imposed magnetic field, specify the appropriate nonzero value of AZ.

2.3.4. Excitation Loads

2.3.4.1. Source Current Density (JS)

This specifies applied current to a source conductor. The units of JS are amperes/meter2 in the MKS system. For a 2D analysis, only the Z component of JS is valid; a positive value indicates current flowing in the +Z direction in the planar case and the -Z (hoop) direction in the axisymmetric case.

Usually, you apply current density directly to the elements. You specify source current density in location number 3 (for the BFE command), using either of the following:

Command(s): BFE
GUI: Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Excitation> Curr Density> On Elements

Refer to the Command Reference for further information.

Alternatively, you can also apply source current densities to areas of the solid model by using the BFA command. You can then transfer the specified source current densities from the solid model to the finite element model by using either the BFTRAN command or the SBCTRAN command.

2.3.5. Flags and Other Loads

2.3.5.1. Infinite Surface (INF) Flags

Infinite surface flags are not actual loads, but they are used to indicate which surface of an infinite element faces toward the open (infinite) domain. Applying the INF label to an element face turns the flag on for that face.

2.3.5.2. Maxwell Surface (MXWF) Flags

Maxwell surface flags are not actual loads, but they are used to indicate on which element faces the magnetic force distribution is to be calculated. Applying the MXWF label to an element face turns the flag on for that face.

Typically, you turn the MXWF flag on for the surfaces of air elements adjacent to an air-iron interface. Forces are calculated at the air-iron interface (using the Maxwell stress tensor approach) and stored in the air elements. In POST1, you can review and sum the stored forces in each air element to get the total force acting on the body. You may, if you wish, then use these forces as loads in a structural analysis.

You can specify more than one component, but the components must not share adjacent air elements. (Sharing air elements is typical when a single element layer separates two components.)


Note:  Lorentz forces are applicable to current carrying conductors and they are calculated automatically. Do not apply Maxwell or virtual displacement flags to any current carrying conductor surfaces.


2.3.5.3. Magnetic Virtual Displacement (MVDI) Flags

Magnetic virtual displacement flags are not actual loads, but they are used to initiate the calculation of forces on a body in the model. The MVDI method provides an alternative to the Maxwell surface (MXWF) method. The program calculates the forces, using the virtual work approach, as it processes the solution.

To trigger the calculation, specify the MVDI flag value as 1.0 at all nodes in the region of interest and 0.0 (default setting) at all adjacent air nodes. Although you can enter MVDI values greater than 1.0, you should not normally do so. Forces will be calculated and stored in the air elements adjacent to the body.

The band of air elements surrounding the region of interest should be uniformly thick. In POST1, you can review and sum the stored forces in each air element to get the total force.

Figure 2.5: MVDI Specifications for Virtual Work Force Calculation

MVDI Specifications for Virtual Work Force Calculation


Note:  Lorentz forces are applicable to current carrying conductors and they are calculated automatically. Do not apply Maxwell or virtual displacement flags to any current carrying conductor surfaces.


2.3.5.4. Current Segment (CSGZ)

This infrequently used load type applies nodal current loads. To compute the current segment for an axisymmetric analysis, you must multiply the current at a node by 2 πr. Units for current segments are ampere-meters in the MKS system.

Current flows in the Z direction, consistent with the degree of freedom AZ. You can specify a known sheet current, for example, through current segments. Take care in distributing a current segment load along nodes. For a discussion of load distribution on nodes, see the Modeling and Meshing Guide.

2.3.6. Solving the Analysis

This section describes the tasks you perform to solve a 2D static magnetic analysis problem.

2.3.6.1. Defining the Analysis Type

The first step is to enter the SOLUTION processor. To do so, use either of the following:

Command(s): /SOLU
GUI: Main Menu> Solution

To specify the analysis type, do either of the following:

  • In the GUI, choose menu path Main Menu> Solution> Analysis Type> New Analysis and then choose a static analysis.

  • If this is a new analysis, issue the command ANTYPE,STATIC,NEW.

If you want to restart a previous analysis (for example, to restart an unconverged solution or to specify additional excitation), issue the command ANTYPE,STATIC,REST. You can restart an analysis only if you previously completed a 2D static magnetic analysis, and the files Jobname.EMAT, Jobname.ESAV, and Jobname.DB from the previous run are available.

2.3.6.2. Defining Analysis Options

Next, you define which solver you want to use. You can specify any of these values:

  • Sparse solver (default)

  • Jacobi Conjugate Gradient (JCG) solver

  • Incomplete Cholesky Conjugate Gradient (ICCG) solver

  • Preconditioned Conjugate Gradient solver (PCG)

To select an equation solver, use either of the following:

Command(s): EQSLV
GUI: Main Menu> Solution> Analysis Type> Analysis Options

We recommend that you use the sparse solver for 2D or shell/beam models. However, the JCG or PCG solvers may be more useful for extremely large and bulky models. Models that are voltage-fed or that include velocity effects produce unsymmetric matrices and can use only the sparse solver, the JCG solver, or the ICCG solver. Circuit-fed models can use only the sparse solver.

2.3.6.3. Saving a Backup Copy of the Database

Use the SAVE_DB button on the Toolbar to save a backup copy of the database. This enables you to retrieve your model should your computer fail while analysis is in progress. To retrieve a model, re-enter Mechanical APDL and use one of the following:

Command(s): RESUME
GUI: Utility Menu> File> Resume Jobname.db

2.3.6.4. Starting the Solution

In this step, you specify magnetic solution options and initiate the solution. For a nonlinear analysis, use a two-step solution sequence:

  1. Ramp the loads over three to five substeps, each with one equilibrium iteration.

  2. Calculate the final solution over one substep, with five to 10 equilibrium iterations.

You can specify the two-step solution sequence and initiate the solution using either of the following:

Command(s): MAGSOLV (with OPT field set to zero)
GUI: Main Menu> Solution> Solve> Electromagnet> Static Analysis> Opt & Solv

If you like, you can step manually through the two-step solution sequence. See Alternative Analysis Options and Solution Methods for the procedure to follow for manual solution.

2.3.6.5. Tracking Convergence Graphically

As nonlinear electromagnetic analysis proceeds, the program computes convergence norms with corresponding convergence criteria each equilibrium iteration. Available in both batch and interactive sessions, the Graphical Solution Tracking (GST) feature displays the computed convergence norms and criteria while the solution is in process. By default, /GST is ON for interactive sessions and OFF for batch runs. To turn /GST on or off, use either of the following:

Command(s): /GST
GUI: Main Menu> Solution> Load Step Opts> Output Ctrls> Grph Solu Track

Figure 2.6: Convergence Norms Displayed by the Graphical Solution Tracking (GST) Feature below shows a typical GST display:

Figure 2.6: Convergence Norms Displayed by the Graphical Solution Tracking (GST) Feature

Convergence Norms Displayed by the Graphical Solution Tracking (GST) Feature

2.3.6.6. Finishing the Solution

To leave the SOLUTION processor, use either of the following:

Command(s): FINISH
GUI: Main Menu> Finish

2.3.6.7. Calculating the Inductance Matrix and Flux Linkage

Calculating the differential inductance matrix and the total flux linkage in each coil requires assigning components to coil elements, defining nominal currents, and performing a nominal solution about an operating point using the sparse equation solver.

For a system of coils modeled with PLANE233, use linear perturbation analysis to calculate the self- and mutual differential inductances and the total flux linkage in each coil.

2.3.7. Reviewing Results

The program writes results from a 2D static analysis to the magnetic results file, Jobname.rmg. Results include the data listed below:

2.3.7.1. Primary data:

  • Nodal magnetic DOFs (AZ, CURR)

2.3.7.2. Derived data:

  • Nodal magnetic flux density (BX, BY, BSUM)

  • Nodal magnetic field intensity (HX, HY, HSUM)

  • Nodal magnetic forces (FMAG: components X, Y, SUM)

  • Nodal reaction current segments (CSGZ)

  • Element source current density (JSZ)

  • Total electric current density (JT)

  • Joule heat per unit volume (JHEAT)

Additional data, specific to each element type, also is available. See the Element Reference for details.

You can review analysis results in POST1, the general postprocessor, by choosing either in the following:

Command(s): /POST1
GUI: Main Menu> General Postproc

The following section, "Reading In Results Data," discusses some typical postprocessing operations for a static magnetic analysis. For a complete description of all postprocessing functions, see the Basic Analysis Guide.

2.3.8. Reading in Results Data

To review results in POST1, the database must contain the same model for which the solution was calculated. Also, the results file (Jobname.rmg) must be available.

To read the data from the results file into the database, use either in the following:

Command(s): SET
GUI: Utility Menu> List> Results> Load Step Summary

If the model is not in the database, restore it using the command or menu path listed below and then use the SET command or its equivalent menu path to read in the desired set of results.

Command(s): RESUME
GUI: Utility Menu> File> Resume Jobname.db

To review the solutions available in the results file, specify the LIST option. You can identify the data set by the load step and substep numbers or by time. If you specify a time value for which no results exist, the program performs linear interpolation to calculate the results at that time.

2.3.8.1. Flux Lines

Flux lines show lines of constant AZ (or constant radius-times-AZ for axisymmetric problems). Display flux lines using either of the following:

Command(s): PLF2D
GUI: Utility Menu> Plot> Results> Flux Lines

2.3.8.2. Contour Displays

You can contour almost any result item (including flux density, field intensity, and total current density (JTZ)) using the following commands or menu paths:

Command(s): PLNSOL, PLESOL
GUI: Utility Menu> Plot> Results> Contour Plot> Elem Solution
Utility Menu> Plot> Results> Contour Plot> Nodal Solution

Caution:  Nodal contour plots for derived data, such as flux density and field intensity, are averaged at the nodes.


In PowerGraphics mode (default), you can visualize nodal averaged contour displays which account for material discontinuities. Should you need to activate PowerGraphics, use either /GRAPHICS,POWER or Utility Menu> PlotCtrls> Style> Hidden-Line Options.

2.3.8.3. Vector Displays

Vector displays (not to be confused with vector mode) offer an effective way to view vector quantities such as B, H, and FMAG. For vector displays, use either of the following:

Command(s): PLVECT
GUI: Utility Menu> Plot> Results> Vector Plot

For vector listings, use either method shown below:

Command(s): PRVECT
GUI: Utility Menu> List> Results> Vector Data

2.3.8.4. Tabular Listings

You can produce tabular listings of results data, either unsorted or sorted by node or by element. To sort data before listing it, use any of the following:

Command(s): ESORT, NSORT
GUI: Main Menu> General Postproc> List Results> Sorted Listing> Sort Nodes
Main Menu> General Postproc> List Results> Sorted Listing> Sort Elems

To produce tabular data listings, use any of the following:

Command(s): PRESOL, PRNSOL, PRRSOL
GUI: Main Menu> General Postproc> List Results> Element Solution
Main Menu> General Postproc> List Results> Nodal Solution
Main Menu> General Postproc> List Results> Reaction Solu

2.3.8.5. Magnetic Forces

Three types of magnetic forces are available when using PLANE13:

  • Lorentz forces (the J x B forces) are calculated automatically for all current carrying elements. (Exercise caution in interpreting Lorentz forces in permeable r > 1r ) materials.) To list these forces, select all current-carrying elements and use either the PRNSOL,FMAG command or its equivalent menu path. You can also sum these forces. First, move them to the element table using either of the following:

    Command(s): ETABLE,tablename,FMAG,X (or Y)
    GUI: Main Menu> General Postproc> Element Table> Define Table

    Then, calculate the sum using either method below:

    Command(s): SSUM
    GUI: Main Menu> General Postproc> Element Table> Sum of Each Item
  • Maxwell forces are calculated for all elements at which the surface flag MXWF is specified as a surface "load." To list Maxwell forces, select all such elements, then select either of the following:

    Command(s): PRNSOL, FMAG
    GUI: Main Menu> General Postproc> List Results> Nodal Solution

    The sum of these forces gives the total force on the surface. To sum the forces, use the procedure described in the foregoing for Lorentz forces.

  • Virtual work forces are calculated for all air elements with an MVDI specification adjacent to the body of interest. To extract these forces, select these elements and use the ETABLE command along with the sequence number (snum) for the data requested to store the forces from the element NMISC record (see Table 4.13-3 in the Element Reference). Do so by choosing either of the following:

    Command(s): ETABLE,tablename,NMISC,snum
    GUI: Main Menu> General Postproc> Element Table> Define Table

    Once you move the data to the element table, you can list them using the PRETAB command (shown with its menu path equivalent below) and sum them with the SSUM command or its menu path equivalent. You can also access the force data using the PLESOL and PRESOL commands (or their equivalent menu paths) with the NMISC item label.

    Command(s): PRETAB
    GUI: Main Menu> General Postproc> Element Table> List Elem Table

    The sum of these forces gives the total force on the surface. To sum the forces, use the procedure described in the foregoing for Lorentz forces.

For information on calculating magnetic forces when using PLANE233, see Older vs. Current 2D Magnetic Element Technologies.

2.3.8.6. Magnetic Torque

Lorentz, Maxwell and virtual work torque computations are available when using PLANE13:

  • Lorentz torque (the J x B torque) is calculated automatically for all current carrying elements. (Exercise caution in interpreting Lorentz torque values in permeable (mr > 1) materials.) To extract these torque values, select all current-carrying elements and use the ETABLE command along with the sequence number (snum) for the data requested to store the torque values from the element NMISC record (see Tables 4.13-3 and 4.53-3 in the Element Reference). Do so by choosing either of the following:

    Command(s): ETABLE,tablename,NMISC,snum
    GUI: Main Menu> General Postproc> Element Table> Define Table

    Once you move the data to the element table, you can list the torque values using the following command:

    Command(s): PRETAB
    GUI: Main Menu> General Postproc> Element Table> List Elem Table

    The torque data can also be listed using the PLESOL and PRESOL commands, respectively, with the NMISC item label.

    You can also sum the torque values to obtain the total torque on the body. To calculate the sum use the following:

    Command(s): SSUM
    GUI: Main Menu> General Postproc> Element Table> Sum of Each Item
  • Maxwell torque values are calculated for all elements at which the surface flag MXWF is specified as a surface "load." To extract and sum Maxwell torque values, you can use the procedure described in the foregoing for extracting and summing Lorentz torque values.

  • Virtual work torque values are calculated for all air elements with an MVDI specification adjacent to the body of interest. To extract and sum virtual work torque values, you can use the procedure described in the foregoing for extracting and summing Lorentz torque values.

For information on calculating magnetic torques when using PLANE233, see Older vs. Current 2D Magnetic Element Technologies.

2.3.8.7. Coil Resistance and Inductance

For stranded coils with the voltage-fed or circuit-fed options, you can calculate the resistance and inductance of the coil. Each element stores values of resistance and inductance. Summing these values gives the total resistance and inductance of the modeled region of the conductor. To store and sum these values, select the conductor elements using the ETABLE,tablename,NMISC,n command or its equivalent menu path. (For the n value, use 8 for resistance and 9 for inductance.) Use the SSUM command or its menu path equivalent to sum the data.

2.3.8.8. Calculating Other Items of Interest

You can calculate many other items of interest (such as global forces, torque, source input energy, inductance, flux linkages, and terminal voltage) from the data available in the database in postprocessing. The APDL command set supplies the following macros for these calculations:

  • The CURR2D macro calculates current flow in a 2D conductor.

  • The EMAGERR macro calculates the relative error in an electrostatic or electromagnetic field analysis.

  • The FLUXV macro calculates the flux passing through a closed contour.

  • The MMF macro calculates magnetomotive force along a path.

  • The PLF2D macro generates a contour line plot of equipotentials.

  • The SENERGY macro determines the stored magnetic energy or co-energy.

For more discussion of these macros, see Electric and Magnetic Macros.

For information on the macros applicable to PLANE233, see the element's description in the Element Reference.