分享

Ansys User Defined Result Expressions所支持的数学运算

 萍评书屋 2014-12-19

【注】来自Ansys Help 文件

The following is a list of the mathematical operations currently supported for user defined results. The shorthand notation "s" defines a scalar quantity and "a" defines an array. An array is distinguished by its dimension which includes the length, based on the number of rows (that is, number of nodes or elements), and the width, consisting of 1, 3, or 6 columns depending on the type of result stored.


1.       Addition (+): s1+s2, a1+a2, a+s (s+a is not supported)

2.       Subtraction (-): s1-s2, a1-a2, a-s (s-a is not supported)

3.       Multiplication (*): s1*s2, a1*a2, a*s, s*a

4.       Division (/): s1/s2, a1/a2, a/s (s/a is not supported)

5.       Power (^): s1^s2, a^s, (undefined if s1 = 0 and s2 < 0)

6.       Log base ten (log10): log10(s), log10(a), (s and a > 0.0)

7.       Square root (sqrt): sqrt(s), sqrt(a), (s and a should be >= 0.0)

8.       Dot product (dot): dot(a1,a2) (results in a single-column array consisting of the inner products, one for each row of a1 and a2; thus, a1, a2 should have the same dimensions)

9.       Cross product (cross): cross(a1,a2) (a1, a2 must have 3 columns)

10.   Add Comp (addcomp): addcomp(uvectors) = ux + uy + uz (If the argument uvectors has 3 columns, they are added to produce a single-column array. If the argument is a single-column array, the result will be a scalar summing all the array entries.)

11.   Maximum (max): s = max(s1,s2), a = max(a1,a2)

12.   Minimum (min): s = min(s1,s2), a = min(a1,a2)

13.   Absolute Value (abs): s = abs(s1), a=abs(a1)

14.   Trigonometric Functions (sin, cos, tan): sin(s), cos(s), tan(s), sin(a), cos(a), tan(a) (s and a are both in radians)

15.   Inverse Trigonometric Functions (asin, acos, atan): asin(s), acos(s), atan(s), asin(a), acos(a), atan(a) (return values are in radians; where -1 <= s <= 1 and -1 <= a <=1 for asin and acos)

16.   atan2: atan2(s1,s2), atan2(a1,a2) (return values are in radians; calculates the arctangent of s1/s2 or a1/a2 and uses the sign of the arguments to determine the quadrant of the returned angle)

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多