You are on page 1of 5

3/5/2016

UsingUserDefinedResultsinANSYSMechanical|PADT,Inc.TheBlog

PADT,Inc.TheBlog
WeMakeInnovationWork

UsingUserDefinedResultsinANSYSMechanical
PostedonJune27,2011byDougOatis

Ifirststartedcontemplatingthisarticleseveralweeksago,andIwasplanningonsomehowworkingina
JerseyShorereference.ButnowthatIverelocatedtoColoradoandamrecoveringfromaclimbingtripthat
wasabitabovemyability,mycreativejuicesarealittlelow(theywereuseduptryingtoimprovisemyway
upanoverhangingroofpitch).

HmmImnoticingtherearentalotoffootholdstogetmeoverthere,prussiktotherescue!
Anyways,UserDefinedresultswerefirstintroducedinR12togranttheuseraccesstoelementtableitems.

Whenyouinsertauserdefinedresult,youarerequiredtofillintheexpressionlineinthedetailswindow.

http://www.padtinc.com/blog/thefocus/usinguserdefinedresultsinansysmechanical

1/5

3/5/2016

UsingUserDefinedResultsinANSYSMechanical|PADT,Inc.TheBlog

JustlikeJohnny5,ANSYSneedsinput

Youcanlookupeverythingthatsavailablethroughthedocumentation,butweallknowthatnoonereads
theinstructions.

ReadingisboringIllwaituntilthemoviecomesout,IhearitstarstheguywhovoicedJohnny5

TheresamucheasierwaytoautopopulatetheexpressionlinetheWorksheetview!Toaccessthis,first
clickontheSolutionbranchandthenselectWorksheet(tabinR12,buttoninR12.1andnewer).Thiswill
showyoualistofalltheuserdefinedresultexpressions.Findoneyoulike,rightmouseclickonitand
selectCreateUserDefinedResult.

Thatsmorelikeit

ThiswillinsertaUserDefinedResult,theonlyworkyouneedtodoisscopeittoabody(ifnecessary).The
onlytrickypartofthisprocessisthatyouneedtosolvethemodelfirstbeforeusingtheWorksheetview.
Thisisbecausebeforethemodelhasbeensolved,Mechanicaldoesntknowwhatisintheresultfile.Soif
theworksheetviewisblankorgrayedout,itsbecauseyouhaventsolvedthemodel.

SowhatsthebenefitofusingtheUserDefinedResults?Sayyouwantedtolookattotalstrain,kinetic
energy,orreactionforcecontourplotsjusttonameafew.Inordertoviewanyofthose,youwouldeither
havetoopenthe.rstfileinMAPDLorusetheUserDefinedResult.
http://www.padtinc.com/blog/thefocus/usinguserdefinedresultsinansysmechanical

2/5

3/5/2016

UsingUserDefinedResultsinANSYSMechanical|PADT,Inc.TheBlog

Left=FX,Right=TotalStrain
HeresaquickdescriptionoftheheadersavailableontheWorksheettab.
U

Displacement

Stress

EPTO

TotalStrain

EPEL

ElasticStrain

EPPL

PlasticStrain

EPTT

ThermalStrain

ENFO

ElementNodalReactionForces

NDIR

NodalOrientationValues

Therearemoreheadersthatarelistedinthedocumentation(Iknow,weallagreedthatwasboring).
HoweverifyourelookingforitemsstoredintheNMISCorSMISC(forregularorcontactelements),those
areaccessibleprovidedyouproperlyformattheexpressionline.

Sonowletsgothroughanexamplewhereweactuallyusethisfunctionality.Acustomercalledinasking
howtocalculatethevolumeofapartaboveaspecifiedstresslevel.Interestingquestion

FirstwecreateauserdefinedresultandusetheVOLUMEexpression.Sowerehalfwaythere.Next,we
needtounderstandabouthowtheresultsarestoredforaresultitemintheSolutionbranch.Eachcontour
plotisactuallyavectorintheformofelement/nodevsresult.Youcanseethisforyourselfbyrightmouse
clickingontheiteminthetreeandselectingexport.Sorightnowwehaveavectordefinedofelementvs
volume.Nowwejustneedanotherlistingofelementvsstress.

WhenyoucreateastressresultinMechanical,thedefaultbehavioristoshowthenodalstress,which
representtheaverageoftheadjacentelements.Thatsnotwhatwewant.IfwelookintotheIntegration
PointResultsweseetherearemoreoptions.Elementmeanseemslikeitmightworkforus,butwhenwe
exportit,weseethatitsstillreportingstressesatthenode,onlynowitsusingadifferentintegration
scheme.

http://www.padtinc.com/blog/thefocus/usinguserdefinedresultsinansysmechanical

3/5

3/5/2016

UsingUserDefinedResultsinANSYSMechanical|PADT,Inc.TheBlog

Averaged

ElementalMean

Inordertoaccesstheaveragestressvalueoftheelement(notnode),weneedtousetheUserDefined
Results.Wellasktoevaluatetheexpressionseqv(vonMises)andsettheintegrationoptionofusingthe
elementalmean.

Nowwhenweexportthatresultitemwegetwhatwewantelementvsstress:

Nowwejustneedtoexportbothvectors(volumeandstress),thencopy/paste/sort/sumandyouredone.
Dontforgetthemostimportantstepbillingfor4hoursofpostprocessingwork.
Longstoryshort,allyouMAPDLuserswhohavebeencomplainingaboutnotbeingabletoaccesselement
tablesshouldtakealookattheUserDefinedfunctions.
Sharethis:

Likethis:

Like
Be the first to like this.

Related

UsingtheIdentifierforMechanicalPost
Processing
September1,2011
In"TheFocus"

AFurtherAssessmentofDesign
Assessment
May25,2011
In"TheFocus"

http://www.padtinc.com/blog/thefocus/usinguserdefinedresultsinansysmechanical

PostProcessingFEAResultsinANSYS
CFDPost
October26,2011
In"TheFocus"

4/5

3/5/2016

UsingUserDefinedResultsinANSYSMechanical|PADT,Inc.TheBlog

ThisentrywaspostedinTheFocus.Bookmarkthepermalink.

PADT,Inc.TheBlog
ProudlypoweredbyWordPress.

http://www.padtinc.com/blog/thefocus/usinguserdefinedresultsinansysmechanical

5/5