14
9/28/2009 SimuTech/ROI Proprietary Workshop 16a Workshop 16a: Command Snippets Goal: Use Command Snippets to: o Apply offset nodal coupling for static cyclic symmetry. o Generate an expanded solution image in Mechanical. Workshop 16a: Command Snippets 1 3

Cyclic Symmetry

Embed Size (px)

Citation preview

Page 1: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a

Workshop 16a: Command Snippets

• Goal:

• Use Command Snippets to:o Apply offset nodal coupling for static cyclic symmetry.

o Generate an expanded solution image in Mechanical.

Workshop 16a: Command Snippets 1

3

Page 2: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a

1. Launch ANSYS Workbench (Start -> All Programs -> ANSYS 12.0 -> Workbench)

2. Import the file “Complex Cut Sector.mechdat”

3. RMB click the SetupCell and choose Edit… to launch Mechanical.

Workshop 16a: Command Snippets 2

2

2

3

Page 3: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a• Model Description:

• The model is a single sector that has matching complex non-planar radial cuts on the low and high sides.

• We want to analyze the single sector undergoing a static rotational velocity of 5000 RPM. The Mesh, Loading and BCs have been predefined. However, we need to apply proper boundary conditions at the radial cuts as planar symmetry is NOT appropriate (recall the discussion from Chapter 6: Loading & Solution).

Workshop 16a: Command Snippets 3

• As there is currently no direct way to achieve the boundary conditions required from the WB Mechanical GUI, we will use a Command Snippet and APDL to do so.

Page 4: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a• Model Description cont’d:

• Recall that for non-planar radial cuts, we need to Couple the nodal DOFs at the cut boundaries w.r.t. a cylindrical coordinate system.

• To achieve this, we need to have matching nodal patterns on the cut boundaries (i.e. the low and high cut boundaries).

Workshop 16a: Command Snippets 4

• Fortunately, WB Mechanical has a mesh method that achieves this very requirement called Match Control. Review the predefined definition.

Page 5: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a• Define the Cyclic Symmetry BCs via Command Snippet:

• We want to select the nodes on the cut boundaries. To do so, create a Named Selection of these two faces.1. Select the two cut boundary faces.

2. RMB click in the graphics window and choose Create Named Selection.

3. Enter the name “Cut_Faces” (creates an ANSYS nodal component of the same name)

Workshop 16a: Command Snippets 5

1

2

3

Page 6: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a• Define the Cyclic Symmetry BCs via Command Snippet cont’d:

• Insert a Command Snippet in the Environment branch.1. Select the Environment branch “Static Structural – Rotational Velocity” and from the

Context Sensitive Toolbar insert a Command Snippet.

2. Select the Command Snippet object and Import the file “CP_SECTOR.MAC”.

Workshop 16a: Command Snippets 6

1

2

Page 7: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a• Review the contents of the Command Snippet:

Workshop 16a: Command Snippets 7

1

1. Notice that we need to be in the Preprocessor (/PREP7) to perform the coupling operation. Since we are at the Environment level, we must switch this back to the Solution processor (/SOLU) at the end of the script. Failing to do so will cause a general error in Mechanical.

2. The CPCYC command is used to couple the offset nodes (refer to the Mechanical APDL online help for syntax). Notice that we have specified a 45 degree offset w.r.t. local cylindrical coordinate system #12. This has been predefined in Mechanical with manual numbering.

2

Page 8: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a• Create a static image of the Expanded Total Displacement:

• Insert a Command Snippet in the Solution branch.1. Select the Solution branch and from the Context Sensitive Toolbar insert a Command

Snippet.

2. Select the Command Snippet object and Import the file “EXPAND_SECTOR.MAC”.

Workshop 16a: Command Snippets 8

1

2

Page 9: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a• Review the contents of the Command Snippet:

Workshop 16a: Command Snippets 9

1. At first glance this set of commands may look complicated, but really is not. Most of the commands are for model orientation, background color, window legend setup, and image pixel resoltion.

2. The /EXPAND command is used in conjunction with local cylindrical system 12 to expand the image to the full model.

3. The /SHOW,PNG command block is used to generate the image to file. This static image is automatically imported to Mechanical as a child object to the Command Snippet.

4. Notice that we turn OFF the expansion via /EXPAND,0 at the end of the script so as not to interfere with WB Mechanical processes.

1

2

3

4

Page 10: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

• Verify the nodal coupling operation in Mechanical APDL:

Workshop 16a

Workshop 16a: Command Snippets 10

1. Go to the WB GUI.

2. From the WB GUI, drag and drop a Mechanical APDL Component system onto the Setup Cell of the Structural System.

3. RMB click on the Linked Setup Cell and choose Update.

4. RMB click on the Analysis Cell of the Mechanical APDL Component system and choose Edit in Mechanical APDL…

2

3

4

Page 11: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

1. The model should now be open in Mechanical APDL. If you can’t see the model, just perform a Fit View.

2. If required, turn ON BC Symbols. Offset nodal coupling shows up as green links on node pairs from the low to high side. Plot nodes for clarity.

HINT: A more definitive check is that the total number of nodes in the coupled sets generated should match the number associated with both cut faces. Verify that the number of selected nodes is equal for:

1. Select nodes by component: CMSEL,S,Cut_Faces

2. Select nodes by coupled set: NSEL,S,CP,,ALL

Use /STAT,GLOBAL to list the current selection status after each command.

Workshop 16a• Verify the nodal coupling operation in Mechanical APDL cont’d:

Workshop 16a: Command Snippets 11

2

Page 12: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a• Solve the Model and view the results:

Workshop 16a: Command Snippets 12

1. Go back to the Mechanical GUI.

2. Select the Solution branch and RMB click to Solve.

3. Review the results. Be sure to click on the static imagegenerated by the command snippet in Solution!

3

2

Page 13: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a• Time permitting, suppress the Command Snippet with the nodal

coupling definition and rerun:

Workshop 16a: Command Snippets 13

1. RMB click on the Command Snippet under the Environment and choose Suppress.

2. Select the Solution branch, RMB click to Solve, and review the results.

1

Notice the differences in the response from the original run, particularly the boundary mismatch in the expanded plot.

This is totally incorrect!

Page 14: Cyclic Symmetry

9/28/2009 SimuTech/ROI Proprietary

Workshop 16a• Time permitting, use the advanced CYCLIC command in a Command

snippet and rerun:

Workshop 16a: Command Snippets 14

1. Insert a new Command Snippet under the Environment and type in the commands as shown.

2. Select the Solution branch, RMB click to Solve, and review the results.

Notice that results are identical to our original setup, all via a single command! The CYCLIC command automatically finds and correctly sets up the required sector boundary conditions. Now that’s powerful! This is available for Structural licenses and above.

1