4.1. Magnetic Analysis of a Solenoid Actuator

4.1.1. Problem Specification

Applicable Products: Ansys Multiphysics, Ansys Emag
Level of Difficulty: Easy
Interactive Time Required: 60 to 75 minutes
Discipline: Electromagnetics
Analysis Type: Linear static
Element Types Used: PLANE13 (archived element)
Features Demonstrated: Axisymmetry, vector plots, element table operations, path operations
Help Resources: Two-dimensional Static Magnetic Analysis, PLANE13.

4.1.2. Problem Description

A solenoid actuator is analyzed as a 2D axisymmetric model.

The element PLANE13 used in this tutorial has been archived. For more information, see Feature Archive.

4.1.2.1. Given

The dimensions of the solenoid actuator are in centimeters.

The armature is the moving component of the actuator.

The back-iron is the stationary iron component of the actuator that completes the magnetic circuit around the coil.

The stranded, wound coil of 650 windings with 1 amp/turn supplies the predefined current. The current per winding is 1 amp.

The air-gap is the thin rectangular region of air between the armature and the pole faces of the back-iron.

Objective: For the given current, determine the force on the armature.

4.1.2.2. Approach and Assumptions

The magnetic flux produced by the coil current is assumed to be so small that no saturation of the iron occurs, allowing a single-iteration linear analysis. The flux leakage out of the iron at the perimeter of the model is assumed to be negligible. This assumption is made simple to keep the model small. The model would normally be created with a layer of air surrounding the iron equal to or greater than the maximum radius of the iron.

The air gap is modeled so that a quadrilateral mesh is possible. A quadrilateral mesh allows for a uniform thickness of the air elements adjacent to the armature where the virtual work force calculation is performed. This is desirable for an accurate force calculation.

The program requires current to be input in the form of current density (current over the area of the coil).

The assumption of no leakage at the perimeter of the model means that the flux is acting parallel to this surface. The assumption is enforced by the flux parallel boundary condition placed around the model, used for models where the flux is contained in an iron circuit.

Forces for the virtual work calculation are stored in an element table and then summed. The force is also calculated by the Maxwell Stress Tensor method and the two values are found to be relatively close.

4.1.2.3. Summary of Steps

Use the information in the problem description and the steps below as a guideline in solving the problem on your own. Or, use the detailed interactive step-by-step solution by choosing the link for step 1.

Input Geometry

1. Read in geometry input file.

Define Materials

2. Set preferences.

3. Specify material properties.

Generate Mesh

4. Define element type and options.

5. Assign material property attributes.

6. Specify meshing-size controls on air gap.

7. Mesh the model using the MeshTool.

8. Scale model to meters for solution.

Apply Loads

9. Define the armature as a component.

10. Apply force boundary conditions to armature.

11. Apply the current density.

12. Obtain a flux parallel field solution.

Obtain Solution

13. Solve.

Review Results

14. Plot the flux lines in the model.

15. Summarize magnetic forces.

16. Plot the flux density as vectors.

17. Plot the magnitude of the flux density.

18. Exit the program.

4.1.3. Input Geometry

4.1.3.1. Step 1: Read in geometry input file.

Read in the file that includes the model geometry.

  1. Utility Menu> File> Read Input from ...

  2. File name: solenoid.inp (Click the link to download the file in .zip format.)

  3. [OK]

4.1.4. Define Materials

4.1.4.1. Step 2: Set preferences.

Set preferences to filter quantities that pertain to this discipline only.

  1. Main Menu> Preferences

  2. (check) "Magnetic-Nodal"

  3. [OK]

4.1.4.2. Step 3: Specify material properties.

Specify the material properties for the magnetic permeability of air, back-iron, coil, and armature. For simplicity, all material properties are assumed to be linear. (Typically, iron is input as a nonlinear B-H curve.)

Material 1 is used for the air elements, Material 2 for the back-iron elements, Material 3 for the coil elements, and Material 4 for the armature elements.

  1. Main Menu> Preprocessor> Material Props> Material Models

  2. (double-click) "Electromagnetics", then "Relative Permeability", then "Constant"

  3. "MURX" = 1

  4. [OK]

  5. Edit> Copy

  6. [OK] to copy Material Model Number 1 to become Material Model Number 2.

  7. (double-click) "Material Model Number 2", then "Permeability (Constant)"

  8. "MURX" = 1000

  9. [OK]

  10. Edit> Copy

  11. "from Material Number" = 1

  12. "to Material Number" = 3

  13. [OK]

  14. Edit> Copy

  15. "from Material Number" = 2

  16. "to Material Number" = 4

  17. [OK]

  18. (double-click) "Material Model Number 4", then "Permeability (Constant)"

  19. "MURX" = 2000

  20. [OK]

  21. Material> Exit

  22. Utility Menu> List> Properties> All Materials

  23. Review the list of materials, then:

    File> Close (Windows),

    or

    Close (Linux) to close the window.

4.1.5. Generate Mesh

4.1.5.1. Step 4: Define element types and options.

Define element types and specify options associated with those element types.

  1. Main Menu> Preprocessor> Element Type> Add/Edit/Delete

  2. [Add...]

  3. "Magnetic Vector" (left column)

  4. "Vect Quad 4nod13 (PLANE13" (right column)

  5. [OK]

  6. [Options...]

  7. (drop down) "Element behavior" = Axisymmetric

  8. [OK]

  9. [Close]

4.1.5.2. Step 5: Assign material properties.

Assign material properties to air gaps, iron, coil, and armature areas.

  1. Main Menu> Preprocessor> Meshing> MeshTool

  2. (drop down) "Element Attributes" = Areas; then [Set]

  3. Pick four areas of air gaps, A13, A14, A17, and A18 (the picking "hot spot" is at the area number label).

  4. [OK]

  5. (drop down) "Material number" = 1

  6. [Apply]

  7. Pick the five back-iron areas, A7, A8, A9, A11, A12.

  8. [OK]

  9. (drop down) "Material number" = 2

  10. [Apply]

  11. Pick coil area, A4.

  12. [OK]

  13. (drop down) "Material number" = 3

  14. [Apply}

  15. Pick armature area, A10, A15, A16.

  16. [OK]

  17. (drop down) "Material number" = 4

  18. [OK]

  19. Toolbar: SAVE_DB

4.1.5.3. Step 6: Specify meshing-size controls on air gap.

Adjust meshing size controls to obtain two element divisions through the air gap.

  1. Main Menu> Preprocessor> Meshing> Size Cntrls> ManualSize> Lines> Picked Lines

  2. Pick four vertical lines through air gap.

  3. [OK]

  4. "No. of element divisions" = 2

  5. [OK]

4.1.5.4. Step 7: Mesh the model using the MeshTool.

  1. "Size Control Global" = [Set]

  2. "Element edge length" = 0.25

  3. [OK]

  4. (drop down) "Mesh" = Areas

  5. [Mesh]

  6. [Pick All]

  7. [Close]

    For a simplified model, select a coarse mesh. For production, however, use a finer mesh, especially in the air-gap region.

  8. Utility Menu> PlotCtrls> Numbering

  9. (drop down) "Elem / attrib numbering" = Material numbers

  10. [OK]

Your mesh may vary slightly from the mesh shown here. As a result, you may see slightly different results during postprocessing. For a discussion of results accuracy, see Planning Your Approach in the Modeling and Meshing Guide.

4.1.5.5. Step 8: Scale model to meters for solution.

For a magnetic analysis, a consistent set of units is necessary. This analysis uses MKS units; therefore, scale the model from centimeters to meters.

  1. Main Menu> Preprocessor> Modeling> Operate> Scale> Areas

  2. [Pick All]

  3. "RX,RY,RZ Scale Factors" = 0.01, 0.01, 1

  4. (drop down) "Existing areas will be" = Moved

  5. [OK]

  6. Toolbar: SAVE_DB

4.1.6. Apply Loads

4.1.6.1. Step 9: Define the armature as a component.

Define the armature as a component by selecting its elements.

  1. Utility Menu> Select> Entities

  2. (first drop down) "Elements"

  3. (second drop down) "By Attributes"

  4. "Min, Max, Inc" = 4

  5. [OK]

  6. Utility Menu> Plot> Elements

  7. Utility Menu> Select> Comp/Assembly> Create Component

  8. "Component name" = ARM

  9. (drop down) "Component is made of" = Elements

  10. [OK]

4.1.6.2. Step 10: Apply force boundary conditions to armature.

  1. Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Flag> Comp. Force/Torq

  2. (highlight) "Component name" = ARM

  3. [OK]

  4. Utility Menu> Select> Everything

  5. Utility Menu> Plot> Elements

4.1.6.3. Step 11: Apply the current density.

The current density is defined as the number of coil windings times the current, divided by the coil area. This equals (650)(1)/2, or 325. To account for scaling from centimeters to meters, the calculated value needs to be divided by .01**2.

  1. Utility Menu> Plot> Areas

  2. Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Excitation> Curr Density> On Areas

  3. Pick the coil area, which is the area in the center.

  4. [OK]

  5. "Curr density value" = 325/.01**2

  6. [OK]

    Close any warning messages that appear.

4.1.6.4. Step 12: Obtain a flux parallel field solution.

Apply a perimeter boundary condition to obtain a "flux parallel" field solution. This boundary condition assumes that the flux does not leak out of the iron at the perimeter of the model. Of course at the centerline this is true due to axisymmetry.

  1. Utility Menu> Plot> Lines

  2. Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Boundary> Vector Poten> Flux Par'l> On Lines

  3. Pick all lines around perimeter of model (14 lines).

  4. [OK]

  5. Toolbar: SAVE_DB

4.1.7. Obtain Solution

4.1.7.1. Step 13: Solve.

  1. Main Menu> Solution> Solve> Electromagnet> Static Analysis> Opt & Solve

  2. [OK] to initiate the solution.

  3. [Close] the information window when solution is done.

4.1.8. Review Results

4.1.8.1. Step 14: Plot the flux lines in the model.

Note that a certain amount of undesirable flux leakage occurs out of the back-iron.

  1. Main Menu> General Postproc> Plot Results> Contour Plot> 2D Flux Lines

  2. [OK]

    Close any Notes or Warnings.

Your results may vary slightly from what is shown here due to variations in the mesh.

4.1.8.2. Step 15: Summarize magnetic forces.

  1. Main Menu> General Postproc> Elec & Mag Calc> Component Based> Force

  2. (highlight) "Component name(s)" = ARM

  3. [OK]

  4. Review the information, then choose:

    File> Close (Windows),

    or

    Close (Linux), to close the window.

4.1.8.3. Step 16: Plot the flux density as vectors.

  1. Main Menu> General Postproc> Plot Results> Vector Plot> Predefined

  2. "Flux & gradient" (left column)

  3. "Mag flux dens B" (right column)

  4. [OK]

4.1.8.4. Step 17: Plot the magnitude of the flux density.

Plot the magnitude of the flux density without averaging the results across material discontinuities.

  1. Main Menu> General Postproc> Plot Results> Contour Plot> Nodal Solu

  2. Select "Magnetic Flux Density," then "Magnetic flux density vector sum."

  3. [OK]

    Next, you will see how the flux density is distributed throughout the entire actuator.

    Up to this point, the analysis and all associated plots have used the 2D axisymmetric model, with the axis of symmetry aligned with the left vertical portion of the device.

    Mechanical APDL continues the analysis on the 2D finite element model, but enables you to generate a three-quarter expanded-plot representation of the flux density throughout the device, based on the defined axisymmetry. The function is purely graphical, and no changes to the database occur.

  4. Utility Menu> PlotCtrls> Style> Symmetry Expansion> 2D Axi-Symmetric

  5. (check) "3/4 expansion"

  6. [OK]

    Obtain an isometric view for a more meaningful representation.

  7. Utility Menu> PlotCtrls> Pan,Zoom,Rotate

  8. [Iso]

  9. [Close]

4.1.8.5. Step 18: Exit the program.

  1. Toolbar: QUIT

  2. (check) "Quit - No Save!"

  3. [OK]