4.7. Doing an Example Transient Magnetic Analysis (GUI Method)

www.kxcad.net Home > CAE Index > ANSYS Index > Release 11.0 Documentation for ANSYS


Your Ad Here

This section describes how to do a 2-D transient magnetic analysis of a solenoid actuator by choosing items from the ANSYS GUI menus. Doing an Example Transient Analysis (Command Method) explains how to perform the same example analysis by issuing ANSYS commands, either manually during a session or in batch mode.

4.7.1. The Example Described

The analysis, based on a solenoid actuator, analyzes the actuator as a 2-D axisymmetric model. The example calculates the force on the armature (the moving component of the actuator), inductance of the coil, and the coil current in response to a voltage excitation. Figure 4.2: "Diagram of a Solenoid Actuator" below shows you the solenoid actuator:

Figure 4.2  Diagram of a Solenoid Actuator

4.7.2. Analysis Parameters

The analysis uses the parameters listed below to model the actuator geometry:

Parameter Description
n = 650 Number of turns in the coil; used in postprocessing
ta = .75 Thickness of inner leg of magnetic circuit
tb = .75 Thickness of lower leg of magnetic circuit
tc = .50 Thickness of outer leg of magnetic circuit
td = .75 Armature thickness
wc = 1 Width of coil
hc = 2 Height of coil
gap = .25 Gap
space = .25 Space around coil
ws = wc+2*space  
hs = hc+.75  
w = ta+ws+tc Total width of model
hb = tb+hs  
h = hb+gap+td Total height of model
acoil = wc*hc Coil area

4.7.3. Approach and Assumptions

The solenoid actuator model for this transient example is identical to the solenoid example described in "2-D Static Magnetic Analysis". Instead of a DC current excitation, the coil is supplied a voltage excitation which varies over time.

The coil is supplied a voltage which ramps from 0 volts to 12 volts over a .01 second time frame. After that, the voltage is held constant and the analysis runs until a time of .06 seconds. The coil requires additional characterization, including cross-section area and fill factor. Resistivity for copper is also provided. The armature is assumed to be solid steel, so it requires the input of electrical resistivity as well.

The purpose of the example analysis is to track the coil current, armature force, and coil inductance over time in response to the applied voltage excitation. (The coil inductance will change slightly due to the eddy currents developed in the armature.)

The solution uses constant time stepping over three load steps ending at .01, .03, and .06 seconds respectively. In the time-history postprocessor (POST26), the desired results are computed for the defined element components using the PMGTRAN command or equivalent GUI menu options. You can review the results graphically using the DISPLAY program from the filemg_trns.plt created by the PMGTRAN command.

Step 1: Begin the Analysis

In this step, you specify a title for the example analysis and set analysis preferences.

  1. Enter the ANSYS program. To do so, use the procedures described in the Operations Guide.

  2. Choose Utility Menu> File> Change Title. The Change Title dialog box appears.

  3. Enter the title 2-D Solenoid Actuator Transient Analysis.

  4. Click on OK.

  5. Choose Main Menu> Preferences. The Preferences for GUI Filtering dialog box appears.

  6. Click the "Magnetic-Nodal" option on.

  7. Click on OK.


Back To Top

Step 2: Define the Element Types

This example uses the preferred higher-order element PLANE53.

  1. Choose Main Menu> Preprocessor> Element Type> Add/Edit/Delete. The Element Types dialog box appears.

  2. Click on Add. The Library of Element Types dialog box appears.

  3. In the scrollable fields, click on (highlight) Magnetic Vector and Vect Quad 8nod53 (PLANE53). Then, check that the element type reference number is set to 1 (default).

  4. Click on Apply. The Element Types dialog box now lists element type 1. In the Library of Element Types dialog box, the PLANE53 element remains selected but the element type reference number will change to 2. (If the element type reference number does not change automatically, set it to 2.)

  5. Click on OK. The Element Types dialog box now lists element type 2 (also PLANE53).

  6. With element type 1 selected, click on Options. The PLANE53 Element Type Options dialog box appears.

  7. Change the "Element Behavior" field to axisymmetric.

  8. Click on OK. ANSYS returns you to the Element Types dialog box.

  9. With element type 2 selected, click on Options. The PLANE53 Element Type Options dialog box appears.

  10. Change the "Element Behavior" field to axisymmetric.

  11. Change the "Element degree(s) of freedom" field to "AZ CURR."

  12. Click on OK.

  13. In the Elements Types dialog box, click Close.


Back To Top

Step 3: Define Material Properties

The material properties for the example analysis are assumed to be linear; they are magnetic permeability of air, iron, coil and armature. (Typically, you specify iron as a nonlinear B-H curve.) The air elements are material 1, material 2 is the iron elements, material 3 represents the coil elements, and material 4 is the armature elements.

  1. Choose Main Menu> Preprocessor> Material Props> Material Models. The Define Material Model Behavior dialog box appears.

  2. In the Material Models Available window, double-click on the following options: Electromagnetics, Relative Permeability, Constant. A dialog box appears.

  3. Enter 1 for MURX (Relative permeability) and click on OK. Material Model Number 1 appears in the Material Models Defined window on the left.

  4. Choose menu path Material> New Model, then enter 2 for the Material ID. Click on OK. Material Model Number 2 appears in the Material Models Defined window on the left.

  5. In the Material Models Available window, double-click on Constant again. Another dialog box appears.

  6. Enter 1000 for MURX (Relative permeability), and click on OK.

  7. Choose menu path Edit> Copy. Choose 1 for from Material number, and enter 3 for to Material number. Click on OK. Material Model Number 3 appears in the Material Models Defined window on the left.

  8. In the Material Models Defined window, click on Material Model Number 3 to highlight it.

  9. In the Material Models Available window, double-click on the following options: Resistivity, Constant. A dialog box appears.

  10. Enter 3e-8 for RSVX (Electrical resistivity), and click on OK.

  11. Choose menu path Edit> Copy. Choose 3 for from Material number, and enter 4 for to Material number. Click on OK. Material Model Number 4 appears in the Material Models Defined window on the left.

  12. In the Material Models Defined window, double-click on Material Model Number 4, and Permeability (constant). A dialog box appears and includes the data specified for this material.

  13. Replace the MURX (Relative permeability) field with 2000, and click on OK.

  14. In the Material Models Defined window, under Material Model Number 4, double-click on Resistivity (constant). A dialog box appears and includes the data specified for this material.

  15. Replace the RSVX field (Electrical resistivity) with 70e-8, and click on OK.

  16. Choose menu path Material> Exit to remove the Define Material Model Behavior dialog box.


Back To Top

Step 4: Define Parameters for Geometry and Load Input

Use of parameters enables you to rerun the analysis from the log file with new parameter values. For convenience, the example enters the solenoid dimensions in centimeters. However, before solving the model, you must scale the geometry to meters because the MKS system of units is required.

  1. Choose Utility Menu> Parameters> Scalar Parameters. The Scalar Parameters dialog box appears.

  2. Type in the parameter values listed below. After typing each value, press the ENTER key. If you make a mistake while entering a parameter, just retype it before you press ENTER. To erase an incorrect parameter after you have entered it, click on it and then click on Delete.

    Parameter Description
    n = 650 Number of coil turns
    ta = .75 Thickness of inner leg of magnetic circuit
    tb = .75 Thickness of lower leg of magnetic circuit
    tc = .50 Thickness of outer leg of magnetic circuit
    td = .75 Armature thickness
    wc = 1 Width of coil
    hc = 2 Height of coil
    gap = .25 Gap
    space = .25 Space around coil
    ws = wc+2*space  
    hs = hc+.75  
    w = ta+ws+tc Total width of model
    hb = tb+hs  
    h = hb+gap+td Total height of model
    acoil = wc*hc Coil area
  3. Review the parameter values you entered, then click on Close. (If you did not end each parameter definition by pressing ENTER, you can click on Accept instead.)

  4. Click SAVE_DB on the ANSYS Toolbar.


Back To Top

Step 5: Define Real Constants

In this step, you define four real constants for the coil.

  1. Choose Main Menu> Preprocessor> Real Constants> Add/Edit/Delete. The Real Constants dialog box appears.

  2. Click on Add. The Element Type for Real Constants dialog box appears.

  3. Choose element type 2 and click on OK. The Real Constant Set Number 1, for PLANE53 dialog box appears.

  4. Enter the following field values:

    • "Coil cross-sectional area" (CARE) field: enter acoil*(0.01**2)

    • "Total number of coil turns" (TURN) field: enter n (recall that n = 650)

    • "Current in z-direction" (DIRZ) field: enter 1

    • "Coil fill factor" (FILL) field: enter .95

  5. Click on OK. The Real Constants dialog box now lists constant set 1.

  6. Click on Close in the Real Constants dialog box.


Back To Top

Step 6: Create Rectangular Areas

You create the example model by overlapping six rectangles. You can create a rectangle either by entering its dimensions in a dialog box or by picking points on the working plane. (This example uses the "create by dimensions" method.)

  1. Choose Main Menu> Preprocessor> Modeling> Create> Areas> Rectangle> By Dimensions. The Create Rectangle By Dimensions dialog box appears.

  2. Enter the following values in the appropriate fields. You can use the Tab key to move from field to field.

    • X1 field: enter 0

    • X2 field: enter w

    • Y1 field: enter 0

    • Y2 field: enter tb

  3. Click on OK.

  4. Choose Utility Menu> PlotCtrls> Numbering. The Plot Numbering Controls dialog box appears.

  5. Click "Area Numbers" to on.

  6. Click on OK.

  7. Choose Utility Menu> Plot> Areas.

  8. To create the second rectangle, repeat steps 1 and 2. In place of the input values for step 2, enter these:

    • X1 field: enter 0

    • X2 field: enter w

    • Y1 field: enter tb

    • Y2 field: enter hb

  9. Click on Apply.

  10. To create the third rectangle, enter these values:

    • X1 field: enter ta

    • X2 field: enter ta+ws

    • Y1 field: enter 0

    • Y2 field: enter h

  11. Click on Apply.

  12. Create the fourth rectangle by entering these values:

    • X1 field: enter ta+space

    • X2 field: enter ta+space+wc

    • Y1 field: enter tb+space

    • Y2 field: enter tb+space+hc

  13. Click on OK.

  14. Choose Utility Menu> Plot> Replot.

  15. Click SAVE_DB on the ANSYS Toolbar.


Back To Top

Step 7: Overlap the Areas

In this step, a Boolean overlap operation creates new areas at all intersections of the four rectangles and remaining areas.

  1. Choose Main Menu> Preprocessor> Modeling> Operate> Booleans> Overlap> Areas. The Overlap Areas picking menu appears.

  2. Click on Pick All. The display of areas refreshes automatically.

  3. Click on SAVE_DB in the ANSYS Toolbar.


Back To Top

Step 8: Create the Last Two Areas

  1. Choose Main Menu> Preprocessor> Modeling> Create> Areas> Rectangle> By Dimensions. The Create Rectangle By Dimensions dialog box appears.

  2. Create the fifth area by entering the following values:

    • X1 field: enter 0

    • X2 field: enter w

    • Y1 field: enter 0

    • Y2 field: enter hb+gap

  3. Click on Apply.

  4. Create the sixth area by entering the values shown below:

    • X1 field: enter 0

    • X2 field: enter w

    • Y1 field: enter 0

    • Y2 field: enter h

  5. Click on OK.


Back To Top

Step 9: Overlap the Last Two Areas

  1. Choose Main Menu> Preprocessor> Modeling> Operate> Booleans> Overlap> Areas. The Overlap Areas picking menu appears.

  2. Click on Pick All. The display of areas refreshes automatically.


Back To Top

Step 10: Compress Unused Area Numbers

  1. Choose Main Menu> Preprocessor> Numbering Ctrls> Compress Numbers. The Compress Numbers dialog box appears.

  2. Switch “Nodes” to “All” in the Label field. Click on OK.

  3. Choose Utility Menu> Plot> Replot. The new display shows the compressed area number set.

  4. Click on SAVE_DB in the Toolbar.


Back To Top

Step 11: Assign Attributes to the Areas

In this step, you assign attributes first to the coil area, then to the armature, and finally to the iron areas.

  1. Choose Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Areas. The Area Attributes picking menu appears.

  2. Click on the coil area (Area 2), then click on OK in the picking menu. The Area Attributes dialog box appears.

  3. In the "Material number" drop down menu, set the number to 3.

  4. Set the "Element type number" drop down menu to 2.

  5. Click on Apply. You return to the picking menu.

  6. Click the Box button on.

  7. Press and drag the left mouse button to draw a box around Areas 1,12, and 13.

  8. Click on OK in the picking menu. The Area Attributes dialog box reappears.

  9. Change the material number to 4.

  10. Change the element type number to 1.

  11. Click on Apply.

  12. Click on areas 3, 4, 5, 7, and 8, then click on OK in the picking menu. The Area Attributes dialog box reappears.

  13. Change the material number to 2 and click on OK.

  14. Choose Main Menu> PlotCtrls> Numbering. The Plot Numbering Controls dialog box appears.

  15. Click the "Elem/Attrib numbering" button to "Material numbers," then click on OK.

  16. Click on the SAVE_DB button in the Toolbar.


Back To Top

Step 12: Mesh the Model

In this step, you use the smart meshing feature of ANSYS to specify a uniform (moderately fine) mesh for your model.

  1. Choose Main Menu> Preprocessor> Meshing> MeshTool. The MeshTool appears.

  2. Turn SmartSizing on and move the SmartSize slider to 4.

  3. Choose Areas, Quad, and Free. Then click on MESH. The Mesh Areas picking menu appears.

  4. Click on Pick All. The display changes to show the meshed areas.

  5. Click Close on the MeshTool.


Back To Top

Step 13: Define the Armature as a Component

  1. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  2. Change the "entities to pick" button from Nodes to Elements, and check that the selection method is set to By Num/Pick.

  3. Click on OK. The Select Elements picking menu appears.

  4. Click the Box picking button on.

  5. In the Graphics Window, press and drag the left mouse button to draw a box around the armature, making sure to select only elements in the armature!

  6. In the picking menu, click on OK.

  7. Choose Utility Menu> Select> Comp/Assembly> Create Component. The Create Component dialog box appears.

  8. In the "Component name" field, enter arm.

  9. Change the "Component is made of" field to Elements.

  10. Click on OK.

  11. Choose Utility Menu> Select> Everything.


Back To Top

Step 14: Apply Force Boundary Conditions to the Armature

  1. Choose Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Flag> Comp. Force/Torq. The Apply Magnetic Force Boundary Conditions dialog box appears.

  2. The name arm will appear in the "Component name" field. Click on the name, and then click on OK. A window appears, notifying you that force boundary conditions have been applied. Read the window contents and then click on Close.


Back To Top

Step 15: Defining the Coil as a Component

  1. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  2. Set the "entities to be picked" button to Elements and the picking method button to By Num/Pick.

  3. Click on OK. The Select Elements picking menu appears.

  4. Click the Box picking button on.

  5. Press and drag the left mouse button to draw a box around the coil elements.

  6. Click on OK.

  7. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  8. Change the "entities to be picked" button to Nodes and the picking method button to By Num/Pick. Click OK. The Select Nodes picking menu appears.

  9. Click the Box picking button on.

  10. Press and drag the left mouse button to draw a box around the coil nodes.

  11. Click on OK.

  12. Choose Main Menu> Preprocessor> Coupling/Ceqn> Couple DOFs. The Define Coupled DOFs picking menu appears.

  13. Click the Box picking button on. Press and drag the left mouse button to draw a box around the coil nodes.

  14. Click on OK. The Define Coupled DOFs dialog box appears.

  15. Type 1 in the "Set reference number" field.

  16. Set the "Degree-of-freedom label" field to CURR.

  17. Click on OK.

  18. Choose Utility Menu> Select> Comp/Assembly> Create Component. The Create Component dialog box appears.

  19. In the "Component name" field, type coil.

  20. Change the "Component is made of" field to Elements. Click OK.

  21. Choose Utility Menu> Select> Everything.


Back To Top

Step 16: Scale the Model to MKS Units (Meters)

  1. Choose Main Menu> Preprocessor> Modeling> Operate> Scale> Areas. The Scale Areas picking menu appears.

  2. Click on Pick All. The Scale Areas dialog box appears.

  3. In the fields for RX, RY, and RZ scale factors, enter .01, .01, and 1 respectively.

  4. Leave the "Items to be scaled" field set on Areas and Mesh, but change "Existing areas will be" to Moved.

  5. Click on OK.


Back To Top

Step 17: Apply Loads and Solve the Model

  1. Choose Main Menu> Solution> Analysis Type> New Analysis. The New Analysis dialog box appears.

  2. Click the Transient button on and click on OK.

  3. When the Transient Analysis dialog box appears, click OK to accept the default of Full.

  4. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.

  5. Set the "entities to be picked" button to Nodes and the picking method button to Exterior.

  6. Click on OK.

  7. Choose Main Menu> Solution> Define Loads> Apply> Magnetic> Boundary> Flux Par'l> On Nodes. The Apply Flux-Parallel Condition on Nodes picking menu appears.

  8. Click on Pick All.

  9. Choose Utility Menu> Select> Comp/Assembly> Select Comp/Assembly. The Select Component or Assembly dialog box appears.

  10. In the "Select entities belonging to Component or Assembly" field, click on COIL.

  11. Click on OK.

  12. Choose Main Menu> Solution> Define Loads> Apply> Magnetic> Excitation> Voltage Drop> On Elements. The Apply VLTG on Elems picking menu appears.

  13. Click on Pick All. The Apply VLTG on Elems dialog box appears.

  14. In the "Voltage drop mag." (VLTG) field, enter 12.

  15. Click on OK.

  16. Choose Utility Menu> Select> Everything.

  17. Choose Main Menu> Solution> Load Step Opts> Time/Frequenc> Time and Substps. The Time and Substep Options dialog box appears.

  18. In the "Time at end of load step" field, enter .01. Click on OK.

  19. Choose Main Menu> Solution> Load Step Opts> Time/Frequenc> Time - Time Step. The Time and Time Step Options dialog box appears.

  20. In the "Time step size" field, enter .002. Click on OK.

  21. Choose Main Menu> Solution> Load Step Opts> Output Ctrls> DB/Results File. The Controls for Database and Results File Writing dialog box appears.

  22. If the "Item to be controlled" field is not set to All Items, set it to that value.

  23. In the "File write frequency" field, click "Every substep" on.

  24. Click on OK.

  25. Choose Main Menu> Solution> Solve> Current LS. Review the information in the /STATUS window; then click on Close to close it. Click OK in the Solve Current Load Step dialog box to start the solution. Click Close when you receive the Solution is done message.

  26. Choose Main Menu> Solution> Load Step Opts> Time/Frequenc> Time and Substps. The Time and Substep Options dialog box appears.

  27. In the "Time at end of load step" field, enter .03. Click on OK.

  28. Choose Main Menu> Solution> Solve> Current LS. Review the information in the /STATUS window; then click on Close to close it. Click OK in the Solve Current Load Step dialog box to start the solution. Click Close when you receive the Solution is done message.

  29. Choose Main Menu> Solution> Load Step Opts> Time/Frequenc> Time - Time Step. The Time and Time Step Options dialog box appears.

  30. In the "Time step size" field, enter .005. Click on OK.

  31. Choose Main Menu> Solution> Load Step Opts> Time/Frequenc> Time and Substps. The Time and Substep Options dialog box appears.

  32. In the "Time at end of load step" field, enter .06. Click on OK.

  33. Choose Main Menu> Solution> Solve> Current LS. Review the information in the /STATUS window; then click on Close to close it. Click OK in the Solve Current Load Step dialog box to start the solution. Click Close when you receive the Solution is done message.


Back To Top

Step 18: Reviewing Analysis Results

In this part of the example, the ANSYS program calculates and summarizes armature force, coil current, and coil inductance.

  1. Choose Main Menu> TimeHist Postpro> Elec&Mag> Magnetics.

  2. Specify arm as the element component for force calculation.

  3. Specify coil as the element component for current and inductance.

  4. Click on OK. The ANSYS program calculates and summarizes the results data you selected, then brings up a window displaying the information. It may take a few minutes for the window to appear.

  5. Review the results summaries, then click on Close.


Back To Top

Step 19: Exit from ANSYS

To leave the ANSYS program, do the following:

  1. Click on Quit in the Toolbar. The Exit from ANSYS dialog box appears.

  2. Choose "Quit - No Save!"

  3. Click on OK.

Your Ad Here