Understanding DM: Parts and Bodiespadtinc.com/blog/wp-content/uploads/oldblog/PADT_The... · 2006....
Transcript of Understanding DM: Parts and Bodiespadtinc.com/blog/wp-content/uploads/oldblog/PADT_The... · 2006....
www.padtinc.com 1 1-800-293-PADT
April 28, 2006 The Focus Issue 47
By Doug Oatis
You’re working in Workbench when yousuddenly realize you need to write a con-straint equation, define orthotropic coeffi-cients of thermal expansion, modify acontact keyoption, or pull nodal data from acertain location. What’s an analyst to do?Lucky for you, Workbench allows you toeasily perform all those tasks using com-mand snippets, a.k.a. APDL for all you old-schoolers.
Inserting a command snippet is extremelyeasy. Simply right click on the branch inthe Simulation tree, insert, and select Com-mands. You can insert these into just aboutevery branch, as shown in Figure 1.
Depending on where you insert the com-mand snippet, you can perform differentactions, as listed in Table 1.
The header of each command, shown in thegraphics window, will tell you where thecommands are inserted into the ANSYSbatch file. These headers can be helpfulwhen you are using APDL that is processorsensitive (i.e. cerig only works in /prep7).
Now you’re probably asking, “Well that’sjust great, but how can I really use this?”This is where it comes in handy if youunderstand what different objects do interms of ANSYS Classic. A named selec-tion becomes either a nodal or elementcomponent. Coordinate systems are trans-lated as user-defined coordinate systems.The first coordinate system representscsys=0, the next represents csys=11, thefollowing csys=12, and so on. Of course,you can manually specify the coordinatesystem numbers in the details window, butthat can become complex. It’s best to con-sistently and intelligently define your coor-dinate systems and just remember how thecounting works. With these two features,you now have the ability to jump to differ-ent parts of the model, select objects, and do
April 28, 2006 A Publication for ANSYS Users Issue 47
ContentsDM: Parts & Bodies.........................1APDL in Workbench........................1FLUENT Purchase..........................3Rigid Body Rotation........................4
Become a Snippet Master: APDL in Workbench
Understanding DM: Parts and BodiesBy Eric Miller & RodScholl
This article is thefirst in a series ofarticles lookinginto some of the
unique capabilities in the ANSYS, Inc. toolDesignModeler, which the lazy amongst usrefer to as DM. This tool has been writtenfrom the ground up with a powerful set offeatures that address the unique needs ofanalysts and what they need to do to theirgeometry. In this first article we will discussan important concept in DM - Parts andBodies.
If you have used any modern CAD tool youknow that they generally allow you to createsingle solids. Then you can use some sort
of assembly tool to combine the solids intoan assembly. That is great for a designer,but for analysis you often have things suchas curves for beams, surfaces for thin structures(shells) or solids that share areas betweenthem (VGLUE/AGLUE/LADD). The folkswho developed DM came up with a cleverway to support the traditional CAD part-assembly paradigm while allowing for theflexibility that analysts need.
In DM, they call all geometric objects thatcan be lines, surfaces or solids “bodies”, andthen allow you to group a collection of bodiesas “parts.” This concept carries from DMinto the Workbench FE pre/post processor,Simulation. In most cases a given part willhave only one body and this is what youwould see if you attached geometry from
your CAD. So lets learn about this Part vs.Bodies business:
Generally an analyst has 1 of the followingdesires for interfacing two bodies:
A) Bodies are distinct, and related by contact,or constraint equations.
B) Bodies share a surface(s) or edge(s) whereone wants mesh continuity (shared nodes).
C) Wants to perform Boolean operations onthe two bodies.
1) Add, so that internal or shared surfaces,and edges are eliminated
2) Subtract, removing one body fromanother.
3) Intersect, retaining some or all bodies,but creating shared surfaces whereboundaries of one part intersect theother.
Figure 1: Sample Tree with Command Snippets
(Continued on Page 2)
(Continued on Page 3)
www.padtinc.com 2 1-800-293-PADT
April 28, 2006 The Focus Issue 47
Forming a new part is pretty simple. Selectthe bodies you want to either share boundar-ies choose “Form New Part” command inthe Tools menu or in the RMB menu. Youwill see a new part appear in the tree, whichis comprised of the original bodies. Visual-ly in DM you won’t see much difference,but if you are a doubter, do some fancyscoping (‘selection’ in ANSYS-speak) andyou will see that they now share boundaries.Don’t expect to get a BTOL message. Orone about keypoints not lying on lines? Orone about improper “topology”? It really isamazingly robust. I always check it in thetree, because I can’t quite believe it workedthat simply (and quickly).Using ‘Form new Part’ in combination with‘Suppress’ in Simulation allows one toachieve the subtract and intersection Bool-eans from the table above (C2, C3). Afterthe new part is formed, in Simulationchoose which ones you want to eliminate,and suppress it using the RMB menu.
This all may be easier to see in some exam-ples. If you look at Figure 1 you will see asimple model that consists of three boxes.The middle box sits on the top surface of thebottom box. The third box is offset and sitsin the air.
Method AIf you take this into Simulation and mesh ityou get three discrete volumes with meshesthat do not line up, and contact definedbetween the bottom and middle boxes, asshown in Figure 2.
Method BIf we wanted to save computation time andget a more accurate answer, we would want
to merge the bottom and middle boxes toform one continuous mesh. We do this withthe “Form new Part” Command in DM.Figure 3 shows that the volumes on thescreen look the same, but the tree hasgrouped the bodies into a part. Moving overto Simulation and meshing, we now see thatthe bottom and middle box are merged andthe mesh is continuous (Figure 4).
Method C1The simplest operation to do is add all ofthese parts together as you build them, or toboolean add them with a body operation.This is so simple we cut out that picture tosave space.
Method C2 and C3Now, to make things interesting, what if wetook that top box and moved it down so itsits inside the middle box? In a CAD sys-tem you would model this as an assemblywith interference. But in DM you simplymove the boxes to overlap, as shown inFigure 5, ‘Form new Part’, and when youbring it into Simulation a new volume iscreated that is the intersection of the top andmiddle boxes, and they merge to share facesso that you get the continuous mesh shownin Figure 6 (this is equivalent to ANSYS’sVOVLAP). In Simulation if desired, elimi-nate which portion of the new parts areunwanted and suppress them, as exempli-fied in Figure 7.
The tools on solids also apply to surfaces.So if you import or create surfaces it identi-fies them as bodies and lets you do bodyoperations such as adding, imprinting, etc.An example of a surface intersection isshown in Figure 8. Using “Form New Part”
it will mesh with sharednodes in Simulation (Figure9).
As always, the best way toget your mind about theseconcepts is to fire up DMand play with it yourself. Ifyou don’t have a license,contact your salesperson andask for a temp key to try it
(“DM” cont.)
Operation DM Method ANSYS Methods A) Distinct Bodies N/A CPINTF, CERIG, Contact, Etc... B) Share Boundaries Form New Part VGLUE, AGLUE, LADD, NUMMERGE C1) Boolean Add Freeze/Unfreeze
Body OperationsVADD, AADD, LCOMB
C2) Boolean Subtract Form New Part & SuppressBody Operations
VSBV, ASBA, LSBL
C3) Boolean Intersect Form New Part & SuppressBody Operation
VOVLAP, AOVLAP, LOVLAP, VPTN,APTN, LPTN
Table 1: Body Operations
Figure 8: Surface Bodies Figure 9: Meshed Surface Bodies
Figure 1: 3 Separate Blocks
Figure 2: 3 Separate Blocks Meshed
Figure 3: Bottom and Middle Blocks Glued
Figure 4: Bottom and Middle Blocks Glued & Meshed
Figure 5: Top Block Imbedded
Figure6: Top Block Imbedded & Meshed
Figure 7: Imbedded & Meshed with Subtraction
www.padtinc.com 3 1-800-293-PADT
April 28, 2006 The Focus Issue 47
By Eric Miller
As we were rushing to get the February issueof The Focus out the door, just like we arerushing to get the April issue out, we talkedabout the fact that ANSYS, Inc. was attempt-ing to purchase FLUENT. Well, a recent pressrelease announced that the Federal TradeCommission had approved the transaction andthat they will officially announce the purchaseon May 1, 2006.
To say the least, that went very quickly and weall hope that the speed in which the deal wasapproved is indicative of how the integrationof FLUENT’s very talented staff and largecustomer base will go. We know that lots offolks at ANSYS, Inc. have been working very
hard in planning things, but they have not beenallowed to discuss details until after every-thing is approved. The hope isthat we will learn a lotmore at the User Con-ference next week inPittsburgh. We willcertainly share what wecan when we learn more.
In talking to our users here in theSouthwest, it seems that everyone isover the shock of such a big deal and arelooking forward to the technical integrationof the two companies. Adding that many tal-ented developers and support people will cer-tainly help everyone in the ANSYS family.
Because we have so many electronics custom-ers we are especially interested in learningmore about the ICEPAK product as well as
their FLOWizard tool.
Right now we are waiting to seehow things end up, and will
share what we learn withall of you as we go. If
the stock price is anyindication Wall
Street shares our enthusi-asm as well.
Maybe in 12 months we will need toadd another page to The Focus for a monthlyFLUENT article!
just about anything you want. Just realize,however, that any elements you createthrough APDL will not be displayed in theSimulation post processor.
If you have Commands in the‘Environment’ and ‘Solution’, you haveadditional features available in the“Details” window. In ‘Environment’, youcan specify input arguments, just like defin-ing a macro in ANSYS classic (arg1,arg2…up to arg9). In ‘Solution’, you canspecify input and output parameters. Sim-ply set your output prefix correctly, and youcan pull back nodal loads on user-definedelements. You can also read and create filesusing any of the *read/writes, just makesure to include your C/Fortran formattingstatements.
As a tip, If you need help with your APDL,you can always launch ANSYS Classicthrough the project tab Workbench (makesure your Simulation is highlighted), doyour work, then copy out the log file andpaste it into one of the ‘Commands’
As you gain experience in using APDL, youwill quickly find that you have developedsome fairly intricate command snippets.My fanciest macro does the following.
Creates nodes in center of each bolt hole >CERIGs node to flange area > Creates asingle pre-strained beam through the bolthole to apply a preload > Solves for boltload > Write out reactions to a file andcopies it to my c:\ to be used for calibrationpurposes
Then, if I set a single variable to 1, it will goand read the file created > Calculate theratio between defined and actual bolt load >Scale up or down my pre-strained value >Then solve.
This creates a pre-load model that I can use,and reduces the number of elements be-cause I don’t have to model the bolt. Youcan go even further and perform a PSDanalysis, which isn’t currently directly sup-ported in the Workbench GUI. Now get outthere and write some snippets!
Some folks on XANSYS pointed us to this very useful tool for calculating theshape of liquids due to surface tension. Called Surface Evolver, it is perfectfor simulating solder balls and such. It is from the Susquehanna Universityand is free.http://www.susqu.edu/brakke/evolver/Resources
Command Region Operation AvailableGeometry > Part Modify material properties using ‘MATID’ as material numberContact > Contact Region Modify contact keyopts using ‘TID’ and ‘CID” as type or real numbersEnvironment Create loads and/or geometry, change solution settingsSolution Post process and pull parameters back into WB
(“Snippet Master” cont.)
Commentary: FLUENT Purchase Success!
www.padtinc.com 4 1-800-293-PADT
April 28, 2006 The Focus Issue 47
The Focus is a periodic publication of Phoenix Analysis & Design Technologies (PADT).Its goal is to educate and entertain the worldwide ANSYS user community. More informa-tion on this publication can be found at: http://www.padtinc.com/epubs/focus/about
Wonder what the rest of the FE world is up to?NAFEMS is the international organization for Engineer-ing Analysis
www.nafems.org
Master ANSYS Post Processing by reading old The Fo-cus articles on the subject by searching on “post”
www.padtinc.com/epubs/focusLinks
Upcoming Training ClassesMonth Start End # Title Location
May ‘06 8-May 9-May 100 Engineering with FE Analysis Tempe, AZ11-May 12-May 803 Tcl/Tk for ANSYS Tempe, AZ15-May 16-May 604 Introduction to CFX Irvine, CA18-may 19-May 203 Dynamics Irvine, CA25-May 25-May 106 ANSYS WB DesignXplorer Tempe, AZ31-May 31-May 108 Paramesh Tempe, AZ
Jun ‘06 12-Jun 14-Jun 101 Introduction to ANSYS, Part 1 Tempe, AZ19-Jun 20-lJun 201 Basic Structural Nonlinearities Albq., NM21-Jun 22-Jun 204 Advanced Contact & Bolts Albq, NM26-Jun 27-Jun 301 Heat Transfer Irvine, CA28-Jun 29-Jun 107 ANSYS WB DesignModeler Irvine, CA
Jul ‘06 10-Jul 12-Jul 104 ANSYS WB Simulation - Intro Albq, NM13-Jul 13-Jul 105 ANSYS WB Sim - Struct NL Albq, NM20-Jul 21-Jul 801 ANSYS Customization APDL Tempe,AZ
- ANSYS CEO asked to ring NASDAQ bell in recogni-tion of outstanding performance in 2005 link
- Sec. of Tres. Snow hosted a roundtable event at AN-SYS HQ to highlight high-tech industries successesand needs. Link
- ANSYS, Inc. posts another record Q1 financial perfor-mance. LinkNews
By Carlos Shultz
This analysis demonstrates an unusual solu-tion to an atypical requirement…just anoth-er way you can use ANSYS to get answersto life’s difficult questions.
Problem: Given a mesh, determine theamount of rigid body rotation which bestmatches a deformed shape of that mesh.
A test case of SHELL93 elements wascreated. The left side has a row of fixeddisplacements. The right side was connect-ed to a MASS21 element through RBE3constraints. Figure 1 shows the deformedshape with boundary conditions shown.
The next step was to select which nodes to
fit. For this example, the nodes on the topand bottom surface were selected. Figure 2shows the 2 rows of selected nodes. Thesenodes were connected to COMB14 springswith coincident nodes. The coincidentnodes then have displacements appliedfrom the solution shown in Figure 1. Allother boundary conditions are then removed
from the model. The springs are weak andtherefore cannot deform the mesh; the meshwas allowed to float on the springs.
The static solution to this loading minimiz-es the strain energy in the springs. This was
equivalent to finding the minimum leastsquares difference in position between thedeformed mesh and the rigidly rotatedmesh. The results of this solution are shownin Figure 3.
The final step was to determine how muchrotation resulted. This was done by calcu-lating the difference between the averagecylindrical nodal coordinates, before andafter the final solution. Those calculationsincluded a lot of APDL with *vmasks,*vgets, *vopers, and *vscfuns which arebeyond the scope of this article and left asan exercise for the reader (or you can [email protected] and I’ll send itto you).
Determining Equivalent Rigid Body Rotation
RBE3’s, A Visitor from theNASTRAN World
Way back, when you talked to aNASTRAN user, they would com-plain that ANSYS doesn’t haveRBE3’s and therefore sucked. Ifyou pointed out that RBE3’s werejust a class of constraint equationsthat you could create with APDLvery easily it fell on deaf ears.
To solve this blood feud, ANSYSadded an RBE3 command to gener-ate this type of constraint equation.It uses a value supplied by the userin an array that defines the weight-ing factor between the master tothe slaves . Pretty useful for con-necting a point to a model. Tolearn more, read up on the RBE3command in the manual.
Figure 1
Figure 2
Figure 3
www.padtinc.com 5 1-800-293-PADT
April 28, 2006 The Focus Issue 47
Be Cool andKnow whatDay it Is!
Download the 2006 PADTANSYS Calendar
Affordable, effective Dimension 3D Printers
Nothing communicates design ideas faster than a three-dimen-sional part or model. With a Dimension 3D Printer, you can bringCAD files and design ideas to life – right from your desktop. Testform, fit and function – and as many design iterations as you like– with functional ABS parts. For added hands-free convenience,consider the Dimension SST with a water soluble support removalsystem. Starting at $24,900,* Dimension 3D printers represent amajor price breakthrough – with leading 3D printing technology.
Simply connect a Dimension 3D printer to your network. LoadCatalyst software. Insert the self-loading material cartridges andfollow the display panel prompts. That's it. 3D printing with Dimen-sion or Dimension SST is as easy as clicking print. See why aDimension 3D Printer is the fastest selling office-friendly machineof its kind – and start shortening your design and developmentcycle.