Académique Documents
Professionnel Documents
Culture Documents
com/c/SimuTechGroup)
Follow 4,246
(h
p
tsw
/:wws.m
i ue
tchgroupc.om)
ReceivethelatestupdatestoourpopularTips&TricksarticlesandvideosbysubscribingtoourMonthlyNewsletter
(http://go.simutechgroup.com/simutechnewslettersubscribe)and channel(https://www.youtube.com/c/SimuTechGroup).
ForevenmoreadvancedANSYSinstruction,checkoutourconsulting(/consultingservices)andtraining(/training)services.Orsimply
contactus(/contactus)todiscussanyofyourANSYSneeds.
WhenrunningstructuralmodelsinANSYSWorkbenchMechanical,userssometimeswanttoperformelementbirthanddeathbetweenload
steps.AlthoughtheMechanicalAPDLinterfacepermitsbirthanddeath,itisnotdirectlysupportedintheWorkbenchinterface.
AnAPDLCommandsObjectcanbeinsertedinastructuralenvironmenttoconsiderthecurrentstateofamodelateachloadstep,andto
performanEKILLcommandbasedoncurrentelementresults,loadstepnumber,orothercriteria.Theexampleinthisarticleconsidersequivalent
stressasacriterionforkillingelements.Inothersituations,theloadstepatwhichelementbirthordeathshouldtakeplaceisknowninadvance.
TheelementscanbeselectedbyreferringtoanelementNamedSelectionattherighttime,andperformingEKILLorEALIVE,asappropriate.A
nullloadstep(singlesubstepsolvewithnochangeinloading)issuggestedforpreplannedelementbirthordeathataknownloadstep.
Inordertoidentifythebodyorbodiesinamodelthataretobecheckedforelementbirthordeath,aNamedSelectionofoneormorebodiescan
(h
p
tsw
/:wws.m
i ue
tchgroupc.om)
becreated.ThenameusedshouldbecompatiblewiththerulesforComponentnamesinAPDL.Startwithaletter,useonlyletters,digitsand
underscores,andusenomorethan32characters:
(h
p
tsw
/:wws.m
i ue
tchgroupc.om)
Itiseasiertoevaluatethestateofelementsinamodelwhileremaininginsidethe/SOLUsolutionprocessorinANSYS.Ifreviewofresultsis
doneinthe/POST1processor,thenrestartshavetobeexecutedinordertocontinuethesolution,introducingcomplexities,writingfilestothe
harddrive,andincreasingsolutiontime.InWorkbenchMechanical,inordertoreducememoryanddiskspaceused,commandsareexecutedin
thebackgroundANSYSBatchjobtopreventdatabaseinformationfrombeingwrittenintotheinmemorydatabase.Writingdatatotheinmemory
databasehastobereenabledbeforethefirstSOLVEcommandinordertocheckresultswithoutleavingthe/SOLUsolutionprocessor.
AusercouldcreateanAPDLCommandsObjecttoexecutethecommandtosaveresultsintheinmemorydatabase.Thecommandscouldbein
aspecialobjectthatexecutesbeforethefirstloadstepSOLVE,oritcouldbeinanobjectthatcheckswhetherthefirstloadstepisaboutto
execute,andgivesthecommandonlyinthefirststep.Theapproachinthisexampleistocheckwhetherthefirstloadstepisabouttosolve,and
tocommandresultstobewrittenintotheinmemorydatabaseonlywhenthefirstloadstepisabouttoexecute.Thecommandstowritesolution
dataare:
fini
/config,noeldb,0!writeresultsintothedatabase
/solu!continuewithsolution
TheAPDLexamplebelow,whichchecksforloadstepnumber,executesthecommandtowriteresultsintothedatabaseifthefirstloadstepis
abouttobetaken.Otherwise,itselectsnodeswithstressesaboveastatedlevel,andkillselementsattachedtothosenodes.TheAPDL
CommandsObjectissettoexecuteateveryanalysisloadsteptaken:
(h
p
tsw
/:wws.m
i ue
tchgroupc.om)
Hereisthesetofcommandsthatexecutes.UsersmightinputthelowerlevelofthecheckonstresseswithaninputargumenttotheCommands
Objectifdesired.
!killelementsforwhichnodeshavevaluesaboveadesignatedvalue...
!
/com,#############################################
/com,#
*get,myncmls,active,,solu,ncmls!cumulativenumberofloadsteps
*if,myncmls,gt,0,then!ifthisisafterthefirst
cmsel,s,elem_to_kill_body!ELEMENTcomponenttobechecked
nsle!nodesontheseelements (h
p
tsw
/:wws.m
i ue
tchgroupc.om)
SELTOL,1.0e12!staywithinrangebelow
!#########
nsel,r,s,eqv,230,2000000!reselectnodeswithresultsaboveavalue<<<
!#########
SELTOL!selectiontolerancebacktodefault
*get,numnode,node,,count!howmanynodeswithresultabove?
*if,numnode,gt,0,then
esln!elementswithanynodeselected
*get,numelem,elem,,count
*if,numelem,gt,0,then
ekill,all
*endif
*endif
allsel
*else
!iffirstloadstep,haveresultwrittentoinmemorydatabase
fini
/config,noeldb,0!writeresultsintothedatabase
/solu!continuewithsolution
*endif
/com,#
/com,#############################################
!
Intheabovecommands,notetheSELTOLcommandthatensuresthatthetoleranceonthesetofstressesenteredwillbetight.Theupperlimit
onthestressesisexpectedtobewellaboveanystressproducedinthismodel.TheUnitsinthismodelaremillimeters,sothestressvaluesare
inMPa.WhenusingAPDLCommandsObjects,usersmustbeverycarefulthatappropriateunitsareentered,andchosenforsolutionofthe
model.
(h
p
tsw
/:wws.m
i ue
tchgroupc.om)
Notethecommandthatcheckshowmanyloadstepshavebeenexecutedpriortothecurrentloadstep:
*get,myncmls,active,,solu,ncmls!cumulativenumberofloadsteps
Thisishowthecheckisdoneastowhetherthefirstloadstepisabouttosolve,inwhichcasethe/CONFIGcommandisexecutedforthis
particularanalysis.
Inthisway,ausercanincludeacheckforelementdeathateveryloadstep.Thecheckscanonlybeperformedattheendsofloadsteps,so
usersmaywanttousemanyloadsteps,withloadsincreasinggraduallyoverthoseloadsteps.Belowisanexamplethatuses20loadsteps:
(h
p
tsw
/:wws.m
i ue
tchgroupc.om)
Loadscanuseformulastomakethenincreasegradually,forexample,overthe20secondsabove,adisplacementisrampedupaccordingtothe
formulaYcomponent=time*0.05.Theunitsherearemillimeters:
Inthisway,thestresseswillbechecked20timesasloadsareincreased,andelementskilledwhentheirstressexceedsthelimitusedinthe
NSELcommand.Ofcourse,elementdeathlikethiscausesasolutiontobenonlinear,andmodelconvergenceisleftasachallengefortheuser.
(h
p
tsw
/:wws.m
i ue
tchgroupc.om)
Inothertypesofanalysis,aparticularloadstepcouldbechosenasthetimeforanEKILLorEALIVEcommandtobeexecutedforselected
elementsthatareindicatedwithaNamedSelection.Inthisway,certainconstructionsequencestepscouldbeincludedinananalysis.Recallthat
elementdeathandbirthannealstheelementssothattheycontainnostresseswhentheyarebroughttolife,whichcouldcapturethe
solidificationofaweld,concrete,epoxy,orthecomingintoexistenceofsomesortofspringorboltconnection.Ensurethatthefirstloadstepkills
theelementsthataretobebroughttolifelater.No/CONFIGcommandisrequiredinsuchacase,ofcourse.
WehopethatyoucanmakeproductiveuseofelementbirthanddeathinyourWorkbenchMechanicalmodels.
Copyright2017SimuTechGroup.AllRightsReserved.
(h
p
tsw
/:wws.m
i ue
tchgroupc.om)