资源预览内容
第1页 / 共7页
第2页 / 共7页
第3页 / 共7页
第4页 / 共7页
第5页 / 共7页
第6页 / 共7页
第7页 / 共7页
亲,该文档总共7页全部预览完了,如果喜欢就下载吧!
资源描述
ANSYS内嵌函数总汇Appendix B. GET Function SummaryA get function is available for some items, and can be used instead of the *GET command. The function returns the value and uses it where the function is input (bypassing the need for storing the value with a parameter name and inputting the parameter name where the value is to be used). For example, assume the average X-location of two nodes is to be calculated. Using the *GET command, parameter L1 can be assigned the X location of node 1 (*GET, L1, NODE, 1, LOC, X), and parameter L2 can be assigned the X location of node 2, then the mid location can be computed from MID = (L1+L2)/2. However, using the node location get function NX(N), which returns the X location of node N, MID can be computed directly from MID = (NX(1)+NX(2)/2, without the need for intermediate parameters L1 and L2. Get functions return values in the active coordinate system unless stated otherwise. Get function arguments may themselves be parameters or other get functions. The get function NELEM(ENUM,NPOS) returns the node number in position NPOS for element ENUM. Combining functions, NX(NELEM(ENUM,NPOS) returns the X location of that node. Get functions (where available) are shown with the corresponding *GET items in the tables below and are summarized at the end of this command description. Get functions are described at the beginning of this command (see Notes) and are shown as alternatives to the *GET items where they apply. They are summarized here (grouped by functionality) for convenience. TableB.1*GET - Get Function SummaryGet Function Summary Entity Status Get FunctionDescriptionNSEL(N)Status of node N: -1=unselected, 0=undefined, 1=selected.ESEL(E)Status of element E: -1=unselected, 0=undefined, 1=selected.KSEL(K)Status of keypoint K: -1=unselected, 0=undefined, 1=selected.LSEL(L)Status of line L: -1=unselected, 0=undefined, 1=selected.ASEL(A)Status of area A: -1=unselected, 0=undefined, 1=selected.VSEL(V)Status of volume V: -1=unselected, 0=undefined, 1=selected.Next Selected EntityNDNEXT(N)Next selected node having a node number greater than N.ELNEXT(E)Next selected element having an element number greater than E.KPNEXT(K)Next selected keypoint having a keypoint number greater than K. LSNEXT(L)Next selected line having a line number greater than L.ARNEXT(A)Next selected area having an area number greater than A.VLNEXT(V)Next selected volume having a volume number greater than V.LocationsCENTRX(E)Centroid X-coordinate of element E in global Cartesian coordinate system. Centroid is determined from the selected nodes on the element.CENTRY(E)Centroid Y-coordinate of element E in global Cartesian coordinate system. Centroid is determined from the selected nodes on the element.CENTRZ(E)Centroid Z-coordinate of element E in global Cartesian coordinate system. Centroid is determined from the selected nodes on the element.NX(N)X-coordinate of node N in the active coordinate system.NY(N)Y-coordinate of node N in the active coordinate system.NZ(N)Z-coordinate of node N in the active coordinate system.KX(K)X-coordinate of keypoint K in the active coordinate systemKY(K)Y-coordinate of keypoint K in the active coordinate systemKZ(K)Z-coordinate of keypoint K in the active coordinate systemLX(L,LFRAC)X-coordinate of line L at length fraction LFRAC (0.0 to 1.0).LY(L,LFRAC)Y-coordinate of line L at length fraction LFRAC (0.0 to 1.0).LZ(L,LFRAC)Z-coordinate of line L at length fraction LFRAC (0.0 to 1.0).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).Nearest to LocationNODE(X,Y,Z)Number of the selected node nearest the X,Y,Z point (in the active coordinate system, lowest number for coincident nodes).KP(X,Y,Z)Number of the selected keypoint nearest the X,Y,Z point (in the active coordinate system, lowest number for coincident nodes).DistancesDISTND(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.Angles (in radians by default - see the *AFUN command)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.Nearest to EntityNNEAR(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.AreasAREAND(N1,N2,N3)Area of the triangle with vertices at nodes N1, N2, and N3.AREAKP(K1
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号