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

[命令和APDL] 求助利用*VWRITE命令加载数组力出错

[复制链接]
发表于 2009-5-5 22:59:17 | 显示全部楼层 |阅读模式 来自 四川成都
本帖最后由 umengzhu 于 2009-5-5 23:00 编辑

求助利用*VWRITE命令加载数组力出错

求高手解答为什么会出现这种情况?不胜感激涕零!!!

命令如下:
! 打开新文件mydata.mac(如存在则覆盖原文件)
*cfopen,mydata,mac                    
*vwrite,P(1,1),P(1,2)                 !施加X方向等效节点力
('F,',f6.0,',FX,',f18.4)              !写入格式
*vwrite,P(1,1),P(1,3)                 !施加Y方向等效节点力
('F,',f6.0,',FY,',f18.4)              !写入格式  
*vwrite,P(1,1),P(1,4)                 !施加Z方向等效节点弯矩
('F,',f6.0,',MZ,',f18.4)              !写入格式                                       
*cfclos                               !关闭文件


错误提示如下:

*** WARNING ***                         CP =      12.781   TIME= 22:56:45
In the graphical user interface,the *VWRITE command can only be         
executed from an external file such as /INPUT or *USE.  The command is  
ignored.                                                               

*** WARNING ***                         CP =      12.828   TIME= 22:56:45
Error in format, not enough data format specifiers                     
  .                                                                     
*** WARNING ***                         CP =      12.875   TIME= 22:56:45
'F,',F6.  Is not a recognized PREP7 command, abbreviation, or macro.   
  This command will be ignored.  

*** WARNING ***                         CP =      12.922   TIME= 22:56:46
In the graphical user interface,the *VWRITE command can only be         
executed from an external file such as /INPUT or *USE.  The command is  
ignored.         

*** WARNING ***                         CP =      12.953   TIME= 22:56:46
Error in format, not enough data format specifiers     
                 
  .                                                                     
*** WARNING ***                         CP =      13.000   TIME= 22:56:46
'F,',F6.  Is not a recognized PREP7 command, abbreviation, or macro.   
  This command will be ignored.
 楼主| 发表于 2009-5-5 23:27:14 | 显示全部楼层 来自 四川成都
Simdroid开发平台
补充说明:用宏读入是不出错,分开读入就出错没什么泥??
回复 不支持

使用道具 举报

发表于 2009-5-6 07:59:05 | 显示全部楼层 来自 大连理工大学
以下摘自帮助文件:
If you are in the GUI, the *VWRITE command must be contained in an externally prepared file and read into ANSYS (i.e., *USE, /INPUT, etc.).
回复 不支持

使用道具 举报

发表于 2009-5-6 15:34:37 | 显示全部楼层 来自 瑞典
出错信息已经说的很清楚了

*** WARNING ***                         CP =      12.781   TIME= 22:56:45
In the graphical user interface,the *VWRITE command can only be         
executed from an external file such as /INPUT or *USE.  The command is  
ignored.
回复 不支持

使用道具 举报

 楼主| 发表于 2009-5-7 00:16:19 | 显示全部楼层 来自 四川成都
多谢二位热心解答!
小弟刚入门!
回复 不支持

使用道具 举报

发表于 2009-5-7 19:14:51 | 显示全部楼层 来自 湖北武汉
*vwrite不能直接在命令栏输入,必须作为一个输入文件中的命令来执行,
就像你的命令里面的*cfopen,mydata,mac    ……*cfclos  
这就是创建了一个mydata.ma的宏文件,而*vwrite作为这个文件里面的一条命令,ansys是读入这个宏文件来批处理的,而不是单独去一条一条的读这些命令。

评分

1

查看全部评分

回复 不支持

使用道具 举报

 楼主| 发表于 2009-5-7 23:44:30 | 显示全部楼层 来自 四川成都
*vwrite不能直接在命令栏输入,必须作为一个输入文件中的命令来执行,
就像你的命令里面的*cfopen,mydata,mac    ……*cfclos  
这就是创建了一个mydata.ma的宏文件,而*vwrite作为这个文件里面的一条命令,ansys是 ...
zhafeiyang 发表于 2009-5-7 19:14

多谢兄弟!解释的很清楚,好人啊!
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

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

GMT+8, 2024-9-21 20:49 , Processed in 0.059110 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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