資源描述:
《ansys內(nèi)嵌函數(shù)總匯》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、ANSYS內(nèi)嵌函數(shù)總匯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