ANSYS 經(jīng)典:內(nèi)嵌函數(shù)大全

2017-03-02  by:CAE仿真在線  來(lái)源:互聯(lián)網(wǎng)

ansys中可以用*get命令獲取信息。如:

*get,xx,node,i,loc,x 可以獲取第i個(gè)節(jié)點(diǎn)的x坐標(biāo),即把第i個(gè)節(jié)點(diǎn)的x坐標(biāo)賦給xx.
通過(guò)內(nèi)嵌函數(shù),我們可以很方便的實(shí)現(xiàn)上述過(guò)程: xx=nx(i), nx(i)就是ansys的一個(gè)內(nèi)嵌函數(shù)。
下面我把a(bǔ)nsys所有的內(nèi)嵌函數(shù)都列舉出來(lái)供各位師兄師姐們參考:
1. distnd( i,j) — I,j 兩點(diǎn)的距離
2. node(x,y,z) — 提取距離位置(x,y,z)最近的節(jié)點(diǎn)號(hào)
3. kp(x,y,z) — 提取距離位置(x,y,z)最近的關(guān)鍵點(diǎn)號(hào)
4.基本函數(shù):
ABS(x) Absolute value of x.
SIGN(x,y) Absolute value of x with sign of y. y=0 results in positive sign.
EXP(x) Exponential of x (ex).
LOG(x) Natural log of x (ln (x)).
LOG10(x) Common log of x (log10(x)).
SQRT(x) Square root of x.
NINT(x) Nearest integer to x.
MOD(x,y) Remainder of x/y. y=0 returns zero (0).
RAND(x,y) Random number (uniform distribution) in the range x to y (x = lower bound, y = upper bound).
GDIS(x,y) Random sample of a Gaussian (normal) distribution with mean x and standard deviation y.
SIN(x), COS(x), TAN(x) Sine, Cosine, and Tangent of x. x is in radians by default, but can be changed to degrees with *AFUN.
SINH(x), COSH(x), TANH(x) Hyperbolic sine, Hyperbolic cosine, and Hyperbolic tangent of x.
ASIN(x), ACOS(x), ATAN(x) Arcsine, Arccosine, and Arctangent of x. x must be between -1.0 and +1.0 for ASIN and ACOS. Output is in radians by default, but can be changed to degrees with *AFUN. Range of output is -pi/2 to +pi/2 for ASIN and ATAN, and 0 to pi for ACOS.
ATAN2(y,x) Arctangent of y/x with the sign of each component c*****idered. Output is in radians by default, but can be changed to degrees with *AFUN. Range of output is -pi to +pi.
VALCHR (CPARM Numerical value of CPARM (if CPARM is non-numeric, returns 0.0).
CHRVAL (PARM) Character value of numerical parameter PARM. Number of decimal places depends on magnitude.
UPCASE CPARM Upper case equivalent of CPARM.
LWCASE (CPARM) Lower case equivalent of CPARM.
5. kx(i) :表示關(guān)鍵點(diǎn)i 的x坐標(biāo)值;同理:ky(i);kz(i)
6. nx(i) :表示節(jié)點(diǎn)i 的x坐標(biāo)值;同理:ny(i);nz(i)
7. nsel(k)是節(jié)點(diǎn)k在就是1,不在就是0
8. NDNEXT(N).: Next higher node number above N in selected set (or zero if none found).
9. NELEM(ENUM,NPOS): returns the node number in position NPOS for element ENUM. Node number at position 1,2,... or 20 of elementN, where npos is 1,2,...20
10. UX(N), UY(N), UZ(N). :X, Y, or Z structural displacement or vector sum.
11. ROTX(N), ROTY(N), ROTZ(N):X, Y, or Z structural rotation or vector sum
12. TEMP(N).:Temperature
13. PRES(N).:Pressure
14. VX(N), VY(N), VZ(N).:X, Y, or Z fluid velocity or vector sum
15. ENKE(N):Turbulent kinetic energy (FLOTRAN).
16. ENDS(N).:Turbulent energy dissipation (FLOTRAN).
17. CENTRX(N), CENTRY(N), and CENTRZ(N) always retrieve the element centroid in global Cartesian coordinates, and are determined from the selected nodes on the elements.
18. ELADJ(N,face):Element number adjacent to face 1,2,...6.。Number assigned to the attribute Name, where Name = MAT, TYPE, REAL, ESYS, PSTAT, LIVE attribute. A zero is returned if the element is unselected. If Name = PSTAT (valid for p-elements only), a 1 is returned if the element
19. ESEL(N).:Select status of element N: -1 = unselected, 0 = undefined
20. ELNEXT(N):Next higher element number above N in selected set (or zero if none found).
21. KSEL(N).:Select status of keypoint N: -1 = unselected, 0 = undefined, 1 = selected.
22. KPNEXT(N).:Next higher keypoint number above N in selected set (or zero if none found).
23. LSEL(N).:Select status of line N: -1=unselected, 0=undefined, 1=selected.
24. LSNEXT(N):Next higher line number above N in the selected set (or zero if none found).
25. LX(n,lfrac):return the X coordinate location of line N at the length fraction lfrac (0.0 to 1.0).同理,LY(n,lfrac);LZ(n,lfrac)
26.
LSX(L,LFRAC) X slope of line L at length fraction LFRAC (0.0 to 1.0).
LSY(L,LFRAC) Y slope of line L at length fraction LFRAC (0.0 to 1.0).
LSZ(L,LFRAC) Z slope of line L at length fraction LFRAC (0.0 to 1.0).
27. ASEL(N).:Select status of area N: -1=unselected, 0=undefined, 1=selected.
28. VSEL(N).:Select status of volume N: -1=unselected, 0=undefined, 1=selected.
29. VLNEXT(N).:Next higher volume number above N in selected set (or zero if none found).
30.距離函數(shù):
DISTND(N1,N2) Distance between nodes N1 and N2.
DISTKP(K1,K2) Distance between keypoints K1 and K2.
DISTEN(E,N) Distance between the centroid of element E and node N. Centroid is determined from the selected nodes on the element.
31.角度函數(shù) (缺省單位為弧度,單位變換用 *AFUN 命令)
ANGLEN(N1,N2,N3) Subtended angle between two lines (defined by three nodes where N1 is the vertex node). Default is in radians.
ANGLEK(K1,K2,K3) Subtended angle between two lines (defined by three keypoints where K1 is the vertex keypoint). Default is in radians.
32.最近實(shí)體函數(shù)
NNEAR(N) Selected node nearest node N.
KNEAR(K) Selected keypoint nearest keypoint K.
ENEARN(N) Selected element nearest node N. The element position is calculated from the selected nodes
33.面積函數(shù)
AREAND(N1,N2,N3) Area of the triangle with vertices at nodes N1, N2, and N3.
AREAKP(K1,K2,K3) Area of the triangle with vertices at keypoints K1, K2, and K3.
ARNODE(N) Area at node N apportioned from selected elements attached to node N. For 2-D planar solids, returns edge area associated with the node. For axisymmetric solids, returns edge surface area associated with the node. For 3-D volumetric solids, returns face area associated with the node.
34.法向函數(shù):
NORMNX(N1,N2,N3) X-direction cosine of the normal to the plane containing nodes N1, N2, and N3.
NORMNY(N1,N2,N3) Y-direction cosine of the normal to the plane containing nodes N1, N2, and N3.
NORMNZ(N1,N2,N3) Z-direction cosine of the normal to the plane containing nodes N1, N2, and N3.
NORMKX(K1,K2,K3) X-direction cosine of the normal to the plane containing keypoints K1, K2, and K3.
NORMKY(K1,K2,K3) Y-direction cosine of the normal to the plane containing keypoints K1, K2, and K3.
NORMKZ(K1,K2,K3) Z-direction cosine of the normal to the plane containing keypoints K1, K2, and K3.
35.相鄰實(shí)體函數(shù)
ENEXTN(N,LOC) Element connected to node N. LOC is the position in the resulting list when many elements share the node. A zero is returned at the end of the list.
NELEM(E,NPOS) Node number in position NPOS (1--20) of element E.
36.面函數(shù)
ELADJ(E,FACE) Element adjacent to a face (FACE) of element E. The face number is the same as the surface load key number. Only elements of the same dimensionality and shape are c*****idered. A -1 is returned if more than one is adjacent.
NDFACE(E,FACE,LOC) Node in position LOC of a face number FACE of element E. The face number is the same as the surface load key number. LOC is the nodal position on the face (for an IJLK face, LOC=1 is at node I, 2 is at node J, etc.)
NMFACE(E) Face number of element E containing the selected nodes. The face number output is the surface load key. If multiple load keys occur on a face (such as for line and area elements) the lowest load key for that face is output.
ARFACE(E) For 2-D planar solids and 3-D volumetric solids, returns the area of the face of element E containing the selected nodes. For axisymmetric elements, the area is the full (360 degree) area.


開放分享:優(yōu)質(zhì)有限元技術(shù)文章,助你自學(xué)成才

相關(guān)標(biāo)簽搜索:ANSYS 經(jīng)典:內(nèi)嵌函數(shù)大全 Ansys有限元培訓(xùn) Ansys workbench培訓(xùn) ansys視頻教程 ansys workbench教程 ansys APDL經(jīng)典教程 ansys資料下載 ansys技術(shù)咨詢 ansys基礎(chǔ)知識(shí) ansys代做 Fluent、CFX流體分析 HFSS電磁分析 Abaqus培訓(xùn) 

編輯
在線報(bào)名:
  • 客服在線請(qǐng)直接聯(lián)系我們的客服,您也可以通過(guò)下面的方式進(jìn)行在線報(bào)名,我們會(huì)及時(shí)給您回復(fù)電話,謝謝!
驗(yàn)證碼

全國(guó)服務(wù)熱線

1358-032-9919

廣州公司:
廣州市環(huán)市中路306號(hào)金鷹大廈3800
電話:13580329919
          135-8032-9919
培訓(xùn)QQ咨詢:點(diǎn)擊咨詢 點(diǎn)擊咨詢
項(xiàng)目QQ咨詢:點(diǎn)擊咨詢
email:kf@1cae.com