8.2. Performing a Transient Edge-Based Analysis

Follow these steps to perform a transient edge-based magnetic analysis:

  1. Specify the electromagnetics edge formulation by choosing Main Menu> Preferences> Electromagnetics: Magnetic-Edge from the GUI. Doing so lets you filter out other Mechanical APDL commands not involved in an edge-based magnetic analysis.

  2. Define a jobname and title for your analysis. To do so, use the commands or GUI paths shown below:

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

  3. Enter the preprocessor to begin defining your model:

    Command(s): /PREP7
    GUI: Main Menu> Preprocessor

  4. Choose element type SOLID236 or SOLID237 via either of the following:

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

  5. Select the formulation option suitable for the specified element type and physics region.

    Command(s): KEYOPT
    GUI: Main Menu> Preprocessor> Element Type> Add/Edit/Delete
  6. Define material properties. 2D Static Magnetic Analysis describes the material properties you can use and tells you how to specify them. For an eddy current region, you must specify the electric resistivity, RSVX.

  7. Build the model. For instructions on building and meshing models, see the Modeling and Meshing Guide.

  8. Assign attributes to the volumes (that is, associate the element types, the conducting and nonconducting regions, the material properties, etc. with the appropriate volumes).

    Command(s): VATT
    GUI: Main Menu> Preprocessor> Meshing> Mesh Attributes> Define
  9. Mesh the model, specifying brick or tetrahedral element shape.

    Command(s): VMESH
    GUI: Main Menu> Preprocessor> Meshing> Mesh> Volumes> Mapped

  10. Enter the SOLUTION processor, using either of the following:

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

  11. Apply flux-parallel and flux-normal solid model boundary conditions to the boundaries.

    Command(s): DA
    GUI: Main Menu> Solution> Define Loads> Apply> Magnetic> Boundary

    For edge-based analyses, the label AZ (when set to zero) applies the flux-parallel boundary condition. No prescription is required to set flux-normal, because it is the natural boundary condition. In the rare case where the AZ = 0 condition is not general enough for flux-parallel conditions, you can prescribe constraints using individual D commands (or the equivalent GUI path).

  12. Apply source loading. See Characteristics and Settings for Physical Regions of a Model for more information on source loading.


    Note:  You can use constraint equations to define cyclic symmetry.


  13. Choose the transient analysis type.

    Command(s): ANTYPE,TRANSIENT,NEW
    GUI: Main Menu> Solution> Analysis Type> New Analysis> Transient

    To restart a previous analysis (for example, to specify additional loads), issue the command ANTYPE,TRANSIENT,REST. You can restart an analysis only if you previously completed a 3D edge-based magnetic analysis, and the files Jobname.emat, Jobname.esav, and Jobname.db from the previous run are available.

  14. Define analysis options.

    Next, you define which solution method and which solver you want to use.

    To select a solution method, use either of the following:

    Command(s): TRNOPT
    GUI: Main Menu> Solution> Analysis Type> New Analysis>Transient

    Transient magnetic analyses require the full solution method.

    Edge formulation analyses can use the sparse solver (default), the Jacobi Conjugate Gradient (JCG) solver, or the Incomplete Cholesky Conjugate Gradient (ICCG) solver. Select an equation solver using either of the following:

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

  15. Choose load step options. Load step options are described in the following sections.

8.2.1. Time Option

This option specifies time at the end of the load step.

Command(s): TIME
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Time/Frequenc> Time - Time Step
Main Menu> Solution> Load Step Opts> Time/Frequenc> Time - Time Step

8.2.2. Number of Substeps or Time Step Size

The integration time step is the time increment used in the time integration scheme. You can specify it directly via the DELTIM command or its equivalent menu path, or indirectly via NSUBST or its menu path equivalent.

Time step size determines the accuracy of your solution. The smaller the time step size, the higher the accuracy. The size of the first integration time step following any large step change in loading conditions is especially critical. You can reduce inaccuracies such as thermal overshoot by reducing the integration time step size.


Caution:   Avoid using extremely small time steps, especially when establishing initial conditions. Very small numbers can cause calculation errors. For instance, on a problem time scale of unity, time steps smaller that 1E-10 can cause numerical errors.


If you step-apply loads, the program applies the entire load value at the first substep and holds it constant for the remainder of the load step. If you ramp loads (the default), the program increments the load values at each substep.

Command(s): NSUBST, DELTIM
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Time/Frequenc> Time and Substps
Main Menu> Solution> Load Step Opts> Time/Frequenc> Time and Substps
Main Menu> Solution> Load Step Opts> Time/Frequenc> Time - Time Step

8.2.3. Automatic Time Stepping

Also called time step optimization in a transient analysis, automatic time stepping allows Mechanical APDL to determine the size of load increments between substeps. It also increases or decreases the time step size during solution, depending on how the model responds.

For most problems, you should turn on automatic time stepping and set upper and lower limits for the integration time step. The limits help to control how much the time step varies.

Command(s): AUTOTS
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Time/Frequenc> Time and Substps
Main Menu> Solution> Load Step Opts> Time/Frequenc>Time and Substps
Main Menu> Solution> Load Step Opts> Time/Frequenc>Time - Time Step

8.2.4. Newton-Raphson Options

These options specify how often the tangent matrix is updated during a nonlinear solution. Available options are:

  • Program-chosen (default)

  • Full

  • Modified

  • Initial-stiffness.

For a nonlinear analysis, the full Newton-Raphson option is recommended. The adaptive descent option may help convergence in transient problems. To specify Newton-Raphson options, use either of the following:

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

8.2.5. Number of Equilibrium Iterations

This option obtains a converged solution at each substep. The default is up to 25 equilibrium iterations, but you may need to increase the number depending on the degree of nonlinearity. For linear transient analysis, specify one iteration.

Command(s): NEQIT
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Nonlinear> Equilibrium Iter
Main Menu> Solution> Load Step Opts> Nonlinear> Equation Iter

8.2.6. Convergence Tolerances

Mechanical APDL considers a nonlinear solution to be converged whenever specified convergence criteria are met. Convergence checking may be based on magnetic potential (A), magnetic current segment (CSG), or both. You specify a typical value for the desired item (VALUE field) and a tolerance about the typical value (TOLER field). The program then calculates the convergence criterion via VALUE X TOLER. For example, it you specify 5000 as the typical value for magnetic current segment and 0.001 as the tolerance, the convergence criterion for magnetic flux would be 5.0.

Ansys, Inc. recommends that VALUE be left to the default (program-calculated) and that TOLER be set to 1.0E-3.

For potentials, the program compares the change in nodal potentials between successive equilibrium iterations (ΔA = Ai - Ai-1) to the convergence criterion.

For magnetic current segment, Mechanical APDL compares the out-of-balance load vector to the convergence criterion. If the solution dies not converge within the specified number of equilibrium iterations, the program either stops or moves on to the next load step, depending on whether you activated the option to terminate an unconverged solution (see below).

Command(s): CNVTOL
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Nonlinear> Convergence Crit.
Main Menu> Solution> Load Step Opts> Nonlinear> Convergence Crit.

8.2.7. Terminate an Unconverged Solution

If the solution does not converge within the specified number of equilibrium iterations, the program either stops the solution or moves on to the next load step, depending on what you specify as the stopping criteria.

8.2.8. Control Printed Output

This option enables you to include any results data in the printed output file (Jobname.out).

Command(s): OUTPR
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Output Ctrls> Solu Printout
Main Menu> Solution> Load Step Opts> Output Ctrls> Solu Printout

8.2.9. Control Database and Results File Output

This option controls what data goes to the results file (Jobname.RMG).


Note:  By default, the program writes only the last substep of each load step to the results file. If you want all substeps (that is, the solution at all frequencies) on the results file, specify a frequency or ALL or 1.


Command(s): OUTRES
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Nonlinear> Convergence Crit
Main Menu> Solution> Load Step Opts> Nonlinear> Convergence Crit

8.2.10. 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

8.2.11. Starting the Solution

In this step, you initiate the solution for all loads steps using one of the following:

Command(s): LSSOLVE
GUI: Main Menu> Solution> Solve> From LS Files

If only a single load step is used, you may use one of the following:

Command(s): SOLVE
GUI: Main Menu> Solution> Solve> Current LS

When you use the edge-element formulation, by default the program gauges the problem domain over all selected elements and nodes. Gauging removes unneeded degrees of freedom by setting them to zero; this in turn reduces solution time. You can control gauging using either of the following:

Command(s): GAUGE
GUI: Main Menu> Solution> Load Step Opts> Magnetics> Options Only> Gauging

Gauging is required for static electromagnetic analyses with elements using an edge formulation. Therefore, in most cases you should not turn automatic gauging off. The GAUGE,OFF command is designed for expert Mechanical APDL users who wish to apply their own gauging. The program removes the extra constraints set by gauging after solution; therefore, gauging is transparent to users.

  1. To leave the SOLUTION processor, use one of the following:

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

  2. Do postprocessing and review the analysis results, as described below.