Vous êtes sur la page 1sur 9

(844)8255971 ContactUs(/contactus) (https://www.youtube.

com/c/SimuTechGroup)
Follow 4,246
(h
p
tsw
/:wws.m
i ue
tchgroupc.om)

Get Our Latest Tips & Tricks

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.

PERFORMING EKILL ELEMENT DEATH IN AN ANSYS WORKBENCH


MECHANICAL MODEL
PostedinTips&TricksFiniteElementAnalysis(FEA)articles(/tipsandtricks/feaarticles)

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.

Industry Solutions ...Continued ANSYS Programs Company


Aerospace(/feacfdaerospace) IndustrialProducts(/feacfd ANSYS18.0ReleaseUpdate CaseStudies(/casestudies)
industrialproducts) (http://go.simutechgroup.com/ansys
Automotive(/feacfdautomotive) CustomerTestimonials
18updaterecordings)
Oil&Gas(/oilgas) (/customertestimonials)
BuildingConstruction&HVAC
ANSYSStartup(/ansysstartup)
(/feacfdbuildingconstruction) PlasticandRubber(/feacfd SearchOurWebsite(/search
plasticrubber) ANSYSStudent(/ansysstudent) ourwebsite)
Electronics(/feacfdelectronics)
PowerGeneration(/feacfd AdvantageMagazine PrivacyPolicy(/privacypolicy)
Healthcare(/feacfdhealthcare)
powergeneration) (http://www.ansys.com/About
SiteMap(/sitemap)
ANSYS/AdvantageMagazine)
Water&Waste(/feacfdwater
wastemanagement) DimensionsMagazine
(http://www.ansys.com/About
ANSYS/dimensionsmagazine)

Copyright2017SimuTechGroup.AllRightsReserved.
(h
p
tsw
/:wws.m
i ue
tchgroupc.om)

Vous aimerez peut-être aussi