资源描述:
《ansys内嵌函数总汇》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、ANSYS内嵌函数总汇AppendixB.GETFunctionSummaryA"getfunction"isavailableforsomeitems,andcanbeusedinsteadofthe*GETcommand.Thefunctionreturnsthevalueandusesitwherethefunctionisinput(bypassingtheneedforstoringthevaluewithaparameternameandinputtingtheparameternamewher
2、ethevalueistobeused).Forexample,assumetheaverageX-locationoftwonodesistobecalculated.Usingthe*GETcommand,parameterL1canbeassignedtheXlocationofnode1(*GET,L1,NODE,1,LOC,X),andparameterL2canbeassignedtheXlocationofnode2,thenthemidlocationcanbecomputedfromMID
3、=(L1+L2)/2.However,usingthenodelocation"getfunction"NX(N),whichreturnstheXlocationofnodeN,MIDcanbecomputeddirectlyfromMID=(NX(1)+NX(2))/2,withouttheneedforintermediateparametersL1andL2.Getfunctionsreturnvaluesintheactivecoordinatesystemunlessstatedotherwis
4、e.Getfunctionargumentsmaythemselvesbeparametersorothergetfunctions.ThegetfunctionNELEM(ENUM,NPOS)returnsthenodenumberinpositionNPOSforelementENUM.Combiningfunctions,NX(NELEM(ENUM,NPOS))returnstheXlocationofthatnode.Getfunctions(whereavailable)areshownwitht
5、hecorresponding*GETitemsinthetablesbelowandaresummarizedattheendofthiscommanddescription.Getfunctionsaredescribedatthebeginningofthiscommand(see"Notes")andareshownasalternativestothe*GETitemswheretheyapply.Theyaresummarizedhere(groupedbyfunctionality)forco
6、nvenience.Table B.1 *GET-GetFunctionSummary"GetFunction"SummaryEntityStatusGetFunctionDescriptionNSEL(N)StatusofnodeN:-1=unselected,0=undefined,1=selected.ESEL(E)StatusofelementE:-1=unselected,0=undefined,1=selected.KSEL(K)StatusofkeypointK:-1=unselected,
7、0=undefined,1=selected.LSEL(L)StatusoflineL:-1=unselected,0=undefined,1=selected.ASEL(A)StatusofareaA:-1=unselected,0=undefined,1=selected.VSEL(V)StatusofvolumeV:-1=unselected,0=undefined,1=selected.NextSelectedEntityNDNEXT(N)Nextselectednodehavinganodenum
8、bergreaterthanN.ELNEXT(E)NextselectedelementhavinganelementnumbergreaterthanE.KPNEXT(K)NextselectedkeypointhavingakeypointnumbergreaterthanK.LSNEXT(L)NextselectedlinehavingalinenumbergreaterthanL.ARNEXT(A)Nex