找回密码
 注册
Simdroid-非首页
查看: 510|回复: 0

[二次开发] 在USERMAT中调用函数问题

[复制链接]
发表于 2022-5-27 15:08:17 | 显示全部楼层 |阅读模式 来自 广东广州
我想在usermat中获得主程序的单元SMISC数据,可以通过调用函数“emsget”来实现。ansys帮助文档中对emsget的介绍如下:
*deck,emsget
      function emsget (ielem,value)
c *** primary function:    get element misc summable data.

c *** Notice - This file contains ANSYS Confidential information ***

c     input arguments:
c        ielem    (int,sc,in)       - element number

c     output arguments:
c        emsget   (int,func,out)    - status of element.
c                                     = 0 - element is undefined
c                                     > 0 - number of data items returned
c        value    (dp,ar(*),out)    - element misc summed data.

c                                   NOTE: the contents of this record is element
c                                       dependent.  See SMISC on ETABLE command

这里面的value值是我想要获得的,不知道我下面的调用形式正不正确?
      external         emsget
      INTEGER        emsget
      DOUBLE PRECISION wetness,CONCsum,value
      
      value=emsget(elemID)
      wetness=value
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-6-24 19:45 , Processed in 0.070069 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表