Professional Documents
Culture Documents
Eric Miller
Co-Owner Principal, Simulation and Business Technologies
04/12/2012 PADT, Inc.
DX R13: 02/17/2011 1
Agenda
Note: This presentation is being recorded Introductions Fundamentals Defining Variables Viewing Variables Calculating Other POST26 Tools Suggestions and Recommendations
DX R13: 02/17/2011 2
Introductions
DX R13: 02/17/2011 3
Upcoming Webinars
Upcoming Webinars
Feb 9, 2012 - 12:00 MST Working Directly with Nodes and Elements in ANSYS Mechanical Feb 23, 2012 - 12:00 MST Assembly Meshing in ANSYS R14 CANCELED March 8, 2012 - 12:00 MST Intro to Workbench Framework Scripting - Controlling projects, materials, and solution execution with python March 22, 2012 - 12:00 MST Mastering the Remote Solver Manager (RSM) at R14
April 12, 2012 12:00 MST A POST26 Primer: Post Processing over Multiple Time/Load Steps in Mechanical APDL April 26, 2012 12:00 MST A Constraint Equation Primer: How to Tie Degrees of Freedom Together May 10, 2012 12:00 MST Optimization with ANSYS DesignXplorer at R14 May 24, 2012 12:00 MST Modeling Moisture Diffusion in ANSYS Summer Break: June & July (maybe August)
About PADT
PADT is an Engineering Services Company
Mechanical Engineering 18 Years of Growth and Happy customers 70ish Employees
3 Business Areas
CAE Sales & Services
Consulting, Training, Sales, Support
www.CUBE-HVPC.com
DX R13: 02/17/2011 6
DX R13: 02/17/2011 7
Twitter: #padtinc
Web: www.PADTINC.com
DX R13: 02/17/2011 8
Fundamentals
DX R13: 02/17/2011 9
Assumptions
You know the basics of MAPDL You are not an MAPDL expert or guru
Need reminders on where some of the commands are
That you will be accessing this via the MAPDL GUI, APDL macros, and code snippets in Workbench
DX R13: 02/17/2011 10
ANSYS Results
The ANSYS RST file stores results at various points
A point can be at a given time in a transient run or it can be a location on a load curve for a static run Not necessarily every point that a solution is calculated at
User determines how often results are saved
Each record has a time, load step, and sub step associated with it Static or Transient, even modal results are stored the same way
Header and analysis type tell you what type of solution you have
Do a SET,LIST to see what is in the file Results are stored by node or element
DOF stuff by node Stresses/Strains/etc by element at each corner node So to get at Stress/Strains/etc you must
Average over an element Un-averaged for a corner node Average over all elements attached to a node
DX R13: 02/17/2011 11
Conventions/Words
We will refer to a given loadstep/substep, time point, or frequency as a point Solution set is the collection of result solutions stored in the RST file. It is made up of solution points. The database is not the *.db file.
It is the model and result information currently stored in memory
DX R13: 02/17/2011 12
Use it to make contour plots, animations, list results at a given point SET,LS,SS,FACT,KIMG,TIME to store a given point in the database
DX R13: 02/17/2011 13
DX R13: 02/17/2011 14
You tell POST26 what variables you want to create Whole set of commands for defining, modifying, mathamatizing, and controlling variables Also a GUI tool to build the commands
DX R13: 02/17/2011 15
finish /clear /prep7 blc4,-1,-1,2,2,60 et,1,185 mptemp,1,70 mpdata,ex,1,1,20e6 mpdata,nuxy,1,1,.23 mpdata,dens,1,1,.001 alphad,5 esize,.9 vmesh,all /view,1,1,1,1 /vup,1,z eplot
nsel,s,loc,z,0 cm,nbt,node nsel,all d,nbt,uy,0 d,nbt,uz,0 d,nbt,ux,1 time,.1 antype,4 trnopt,full lumpm,0 nlgeom,1 kbc,0 timint,1 nsubst,40,40,40 outres,all,1 lswrite,1 d,nbt,ux,5 time,.2 lswrite,2 d,nbt,ux,0 time,.3 lswrite,3 time,2 lswrite,4 /solu lssolve ,1,4 finish /post1 plnsol,u,sum /POST26 FILE,'p26','rst','.' /UI,COLL,1 NUMVAR,200 SOLU,191,NCMIT STORE,MERGE FILLDATA,191,,,,1,1 REALVAR,191,191 !* NSOL,2,18,U,X, UX_2 STORE,MERGE XVAR,1 PLVAR,2
DX R13: 02/17/2011 16
Defining Variables
DX R13: 02/17/2011 17
Defining Variables
You have to tell POST26 what information you want and how you want it:
Node/Element, Where in an element, What type of result, How to average, etc
Use:
ANSOL, NSOL, ESOL, EDREAD, RFORCE, JSOL, GSSOL, GAPF, SOLU
Control with:
FORCE, LAYERP26, SHELL, CFACT, TVAR
Or use the Tool NOTE: Time or Freq automatically created and is Var=1
DX R13: 02/17/2011 18
DX R13: 02/17/2011 19
Even if you are doing scripting, use the GUI to figure it out
DX R13: 02/17/2011 20
DX R13: 02/17/2011 21
More on Tool
Icons from Left to Right:
ADD | Delete | Graph | List | Properties | Import | Save | Overlay | Clear | Refresh
Variable list shows all the stored variables with name, node/element, what it is, min/max
Note that VAR number is not shown count or do a STAT
DX R13: 02/17/2011 22
DX R13: 02/17/2011 23
DX R13: 02/17/2011 24
CISOL: J-Integral Info ENERSOL: Energies GAPF: Gap Force Data GSSOL: Generalized Plane Strain Length, Rotation, Force, Moment
DX R13: 02/17/2011 25
DX R13: 02/17/2011 26
Number of Variables
By default, in batch, you get room for 10 variables for ANSYS runs
30 for LS-DYNA If you are using the Tool, it automatically raises it to 200
Has to do with how they very quickly get, store, and access the variables efficiency Change from default with:
GUI: TimeHist PostPro->Settings->File Tool: Automatically sets at maximum APDL: NUMVAR,nvar
DX R13: 02/17/2011 27
DX R13: 02/17/2011 28
DX R13: 02/17/2011 29
NPTS
Number of time (frequency) points.
DX R13: 02/17/2011 30
STAT
STAT
Issue a STAT option first, then STAT
PRINT STAT
Find out your listing options and what variables you have Default
DEFINE STAT
Tells you what your settings are and what variables you have defined
OPERATE STAT
Lists any operation settings you may have, and variables defined
PLOTTING STAT
Shows the POST26 display settings.
DX R13: 02/17/2011 31
Displaying Variables
DX R13: 02/17/2011 32
Plotting
Most of the time you will be making a line graph Time on X axis, value on Y You can stack multiple Variables Tool: Use the graph button GUI: TimeHist Postpro->Graph Variables APDL: PLVAR
DX R13: 02/17/2011 33
PLVAR
PLVAR, NVAR1, NVAR2, NVAR3, NVAR4, NVAR5, NVAR6, NVAR7, NVAR8, NVAR9, NVAR10 Allows you to plot up to 10 variables against each other
Just give the variable number
Related Commands:
XVAR: Allows you to change X axis to a variable PLCPLX: Change to allow for complex portion of results PLTIME: Specify time range
DX R13: 02/17/2011 34
Simple
The number of points you use with store, and your data, determine graph resolution Great for quick plots ANSYS Mechanical?
If your code post processing snippet has a /show,png and you make plots, those come back to ANSYS Mechanical
DX R13: 02/17/2011 35
Listing
GUI: TimeHist Postpro->List Variables TOOL: Little sheet of paper (List) icon APDL: PRVAR
PRVAR, NVAR1, NVAR2, NVAR3, NVAR4, NVAR5, NVAR6
Also EXTREM
It lists the min and max for all variables
Related commands:
PRCPLX: Display complex values PRTIME: Time range
DX R13: 02/17/2011 36
*DEL,_P26_EXPORT *DIM,_P26_EXPORT,TABLE,160,1 VGET,_P26_EXPORT(1,0),1 VGET,_P26_EXPORT(1,1),2 /OUTPUT,'foo','txt','.' *VWRITE,'TIME','UX_2' %14C %14C *VWRITE,_P26_EXPORT(1,0),_P26_EXPORT(1,1) %14.5G %14.5G /OUTPUT,TERM
DX R13: 02/17/2011 37
Calculating
DX R13: 02/17/2011 38
Operations
The calculator has a purpose: you can build calculations with it
Uses standard operators Variables use their names in {}
DX R13: 02/17/2011 39
Example: FSUM
SQRT of the sum of the squares Do it in the tool using the calculator or by writing in equation Our put in commands Good way to do a script is use calculator, then look at code generated
Max is in 21 at end
DX R13: 02/17/2011 41
*GET tools
There is a whole set of *GET commands that read a variable and return a scalar value
*get,myval,VARI,nvar,Item1,Item2 Item1,Item 2 can be:
EXTREM
Min, max, last value or the time that value occurs at If nvar 32 is stresses, to get max stress and when it occurs: *get,mxs,vari,32,extrem,vmax *get,mxt,vari,32,extrem,tmax Covariance between two variables
RTIME,t
Real Values at a given time
ITIME,t
Imaginary Values at a given time
DX R13: 02/17/2011 42
DX R13: 02/17/2011 43
DX R13: 02/17/2011 45
DX R13: 02/17/2011 46
PSD
POST26 will take Mode Shapes and PSD data and calculate Covariance and Response PSD Covariance
Get variable for the nodes and quantities you want covariance on Use CVAR on two variables Then use *get,par,VARI,nvar,extrem,cvar
Response PSD
Store PSD file information with STORE,PSD Get variable for the nodes and quantities you want response at Use RPSD to calculate the response PSD
DX R13: 02/17/2011 47
You fill a variable with the time dependent result you want a response spectrum for Use RESP to get U, V, A See Theory Manual for details Or run using Tool
DX R13: 02/17/2011 48
Smoothing Data
SMOOTH command SMOOTH, Vect1, Vect2, DATAP, FITPT, Vect3, Vect4, DISP Lots of options Vect1 is the Independent value, Vect2 is the time variable
Backwards
Vect3 and Vect4 contain the smoothed data after the command is run Not a button in calculator, you have to type in:
Smoothed_response = SMOOTH ({UY_AT_MIDPOINT},{TIME},2)
DX R13: 02/17/2011 49
DX R13: 02/17/2011 50
DX R13: 02/17/2011 51
DX R13: 02/17/2011 52
Resources
Go the Focus Blog (www.padtinc.com/focus) and Ill post the macro I used and a workbench example
This PowerPoint as well
DX R13: 02/17/2011 53
Thank You
PADT Enjoys doing these webinars Please consider us as your partner ANSYS Related
Training, Mentoring Consulting Services Customization Sales (if in AZ, NM, CO, UT, NV)
Rapid Prototyping
SLA, SLS, FDM, PolyJet, CNC, Soft Tooling, Injection Molding
DX R13: 02/17/2011 54