ANSYS读入txt数组文件.docx

2016-05-12 评论:2 下载:49
下载

大小:22.05KB

分享一个循环加载数组文档 有例子可以参考

节选段落一:
怎么样从ansys里面读入txt文件的相应的数据?


节选段落二:
的help里面察看vread命令,然后看它的用法格式,把你写的小程序写成一个mac文件,倒入mac文件就能从array parameter 里面看到你倒入的txt文件的数组形式
3ansys如何读入txt文本中的地震波数据?


节选段落三:
例如:
*CFOPEN,MYFILE,TXT
X1=4.56
X2=12345.678
X3=1.23E-6
*VWRITE,X1,X2,X3,4567
%14.6f%15.6e%16.6g%10d
*CFCLOSE
文件MYFILE.TXT如下:
4.560000
1.234568E+04
1.230000E-06
4567
二、数组的输出
(一)VWRITE方法
数组输出格式同上,但其输出控制却有很多种形式,且ANSYS按列输出数组。
(1条)
默认 最新
<p style="font-family:宋体, SimSun;font-size:14px;"><label style="font-family:宋体, SimSun;font-size:14px;color: rgb(51, 153, 204); display: block; padding: 0px; line-height: 20px;"><a ng-href="http://www.jishulink.com/content/other/1377" target="_blank" class="ng-binding" href="http://www.jishulink.com/content/other/1377" style="font-family:宋体, SimSun;font-size:14px;text-decoration: none;Microsoft Yahei&#39;; color: rgb(51, 153, 204);">晴儿_fairylovefairy</a></label></p><p style="font-family:宋体, SimSun;font-size:14px;">2013年10月25日</p><p style="font-family:宋体, SimSun;font-size:14px;"><span class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;">ANSYS读入外部的数据文件可以利用数组ARRAY。也就是说,在ansys中建立一个数组,然后把外部指定路径的数据读入到这个数组中,就可以了。但是excell不行,必须是txt数据才可以,而且格式有严格的规定。</span><br class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;"/><span class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;">这个过程中有太多的细节了,附上一个参考文件,可以看一下,然后尝试一下吧。</span><br class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;"/></p><p style="font-family:宋体, SimSun;font-size:14px;"><img src="http://www.jishulink.com/platform/static/ueditor/dialogs/attachment/fileTypeImages/icon_doc.gif" style="font-family:宋体, SimSun;font-size:14px;border: 0px; margin: 10px 2px 10px 0px; max-width: 600px !important; vertical-align: middle;"/><a title="ANSYS读入txt数组文件.doc" href="http://oss.jishulink.com/caenet/forums/upload/2013/10/25/72/179834614304950.doc" style="font-family:宋体, SimSun;font-size:14px;text-decoration: none;Microsoft Yahei&#39;; color: rgb(0, 102, 204);">ANSYS读入txt数组文件.doc</a></p><p style="font-family:宋体, SimSun;font-size:14px;"><img src="http://www.jishulink.com/platform/static/ueditor/dialogs/attachment/fileTypeImages/icon_pdf.gif" style="font-family:宋体, SimSun;font-size:14px;border: 0px; margin: 10px 2px 10px 0px; max-width: 600px !important; vertical-align: middle;"/><a title="ANSYS_数据文件读写的APDL命令详解及实例.pdf" href="http://oss.jishulink.com/caenet/forums/upload/2013/10/25/72/179844974307737.pdf" style="font-family:宋体, SimSun;font-size:14px;text-decoration: none;Microsoft Yahei&#39;; color: rgb(0, 102, 204);">ANSYS_数据文件读写的APDL命令详解及实例.pdf</a></p><p style="font-family:宋体, SimSun;font-size:14px;"><span class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;">数组的用法可以参考帖子</span><br class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;"/><a href="http://forums.caenet.cn/showtopic-548825.aspx" target="_blank" class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;text-decoration: none;Microsoft Yahei&#39;; color: rgb(36, 139, 210);">http://forums.caenet.cn/showtopic-548825.aspx</a><br class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;"/><span class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;">另外:</span><br class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;"/><span class="ng-scope" style="font-family:宋体, SimSun;font-size:14px;">ANSYS其实没有真正意义上类似于PRO/E那样的参数化建模功能,如果读入了一组参数,并且利用这些参数去建立模型,那么改变参数时模型是不会改变的,除非重新用新的参数建模。</span></p><p><br/></p>
评论 1 点赞 3
回复
在哪呢
评论 点赞 1
App下载
技术邻APP
工程师必备
  • 项目客服
  • 培训客服
  • 平台客服

TOP