av久久久-av九九九-av九九-av激情网-欧美三级在线-欧美三级一区二区三区

APDL實(shí)現(xiàn)ANSYS的結(jié)果或中間變量值打印輸出到txt文件

2017-05-26  by:CAE仿真在線  來源:互聯(lián)網(wǎng)

APDLAPDL實(shí)現(xiàn)ANSYS的結(jié)果或中間變量值打印輸出到文件



總結(jié)重點(diǎn)如下:

1、apdl運(yùn)行過程中的數(shù)據(jù)(包括節(jié)點(diǎn),位置,函數(shù)返回值,變量等)通過vwrite輸出到txt文件

2、使用命令相關(guān)命令:vwrite,mwrite,cfopen,cfclos,/output等


output本來是寫standard output的,即那個黑窗口,但也可以通過這個命令改為寫到文件,vwrite就是把變量數(shù)組寫到output

如果不想與標(biāo)準(zhǔn)輸出窗口那些內(nèi)容相互混合,你可以通過cfopen,cfclos來建立獨(dú)立的文件,然后通過vwrite寫入


*VWRITE, Par1, Par2, Par3, Par4, Par5, Par6, Par7, Par8, Par9, Par10, Par11, Par12, Par13, Par14, Par15, Par16, Par17, Par18, Par19
Writes data to a file in a formatted sequence.
APDL: Array Parameters
MP ME ST PR PRN <> EM DY PP EME MFS
Argument Descriptions
Par1, Par2, Par3, . . . , Par19
You can write up to 19 parameters (or constants) at a time. Any Par values after a blank Par value are ignored. If you leave them all blank, one line will be written (to write a title or a blank line). If you input the keyword SEQU, a sequence of numbers (starting from 1) will be written for that item.

Notes
You use *VWRITE to write data to a file in a formatted sequence. Data items (Par1, Par2, etc.) may be array parameters, scalar parameters, character parameters (scalar or array), or constants. You must evaluate expressions and functions in the data item fields before using the *VWRITE command, since initially they will be evaluated to a constant and remain constant throughout the operation. Unless a file is defined with the *CFOPEN command, data is written to the standard output file. Data written to the standard output file may be diverted to a different file by first switching the current output file with the /OUTPUT command. You can also use the *MWRITE command to write data to a specified file. Both commands contain format descriptors on the line immediately following the command. The format descriptors can be in either Fortran or C format.

/OUTPUT, Fname, Ext, --, Loc
Redirects text output to a file or to the screen.


1 概述

ANSYS作為通用有限元仿真計(jì)算軟件應(yīng)用非常普遍,其強(qiáng)大的參數(shù)化功能更是使得ANSYS的使用方便很多。在計(jì)算過程中,通常需要對計(jì)算結(jié)果進(jìn)行統(tǒng)計(jì),ANSYS計(jì)算的模型大多時候節(jié)點(diǎn)單元數(shù)目很多,結(jié)果數(shù)據(jù)也很多,因此在GUI界面的查詢操作不太方便,工作量太大,而且結(jié)果不好記錄。而且很多時候需要借助第三方軟件比如MATLAB等數(shù)據(jù)處理軟件對結(jié)果進(jìn)行處理,此情況下需要ANSYS能夠?qū)⒂?jì)算結(jié)果輸出到文件中,再通過對結(jié)果文件進(jìn)行處理得到想要的結(jié)果。

APDL不僅在參數(shù)化建模、加載和求解有很大的發(fā)揮,在后處理時同樣有發(fā)揮。本次借助APDL編寫后處理命令流,將需要的計(jì)算結(jié)果以設(shè)置好的格式輸出為txt文件。

2 應(yīng)用

將編寫好的前處理和求解APDL命令流在ANSYS里面運(yùn)行,命令流文件如圖1所示,該段命令流為兩根梁的求解計(jì)算,如圖2所示。

APDL實(shí)現(xiàn)ANSYS的結(jié)果輸出

1 前處理與求解APDL命令流

APDL實(shí)現(xiàn)ANSYS的結(jié)果輸出
2 模型

首先將所有節(jié)點(diǎn)的坐標(biāo)位置輸出,命令流如圖3所示。

APDL實(shí)現(xiàn)ANSYS的結(jié)果輸出
3 輸出節(jié)點(diǎn)位移APDL命令流

ANSYS還可以將結(jié)果保存為數(shù)組,如圖4所示,數(shù)組可以仿照圖3的循環(huán)部分輸出,數(shù)組中的數(shù)據(jù)可以繼續(xù)在ANSYS里面反復(fù)調(diào)用。

APDL實(shí)現(xiàn)ANSYS的結(jié)果輸出
4 輸出數(shù)組

同樣的,其他的結(jié)果參數(shù)也可以輸出。如圖5所示,為節(jié)點(diǎn)應(yīng)力結(jié)果的輸出。

APDL實(shí)現(xiàn)ANSYS的結(jié)果輸出
5 APDL獲取其他的結(jié)果

基本思路是通過循環(huán)語句獲取所有節(jié)點(diǎn)的參量,保存成數(shù)組,也可以不保存,然后新建一個文件用于輸出節(jié)點(diǎn)的參量,主要的命令是*CREATE*GET


本文轉(zhuǎn)發(fā)自http://blog.sina.com.cn/s/blog_6465f2ed0102wzvz.html


開放分享:優(yōu)質(zhì)有限元技術(shù)文章,助你自學(xué)成才

相關(guān)標(biāo)簽搜索:APDL實(shí)現(xiàn)ANSYS的結(jié)果或中間變量值打印輸出到txt文件 Ansys有限元培訓(xùn) Ansys workbench培訓(xùn) ansys視頻教程 ansys workbench教程 ansys APDL經(jīng)典教程 ansys資料下載 ansys技術(shù)咨詢 ansys基礎(chǔ)知識 ansys代做 Fluent、CFX流體分析 HFSS電磁分析 Abaqus培訓(xùn) 

編輯
在線報(bào)名:
  • 客服在線請直接聯(lián)系我們的客服,您也可以通過下面的方式進(jìn)行在線報(bào)名,我們會及時給您回復(fù)電話,謝謝!
驗(yàn)證碼

全國服務(wù)熱線

1358-032-9919

廣州公司:
廣州市環(huán)市中路306號金鷹大廈3800
電話:13580329919
          135-8032-9919
培訓(xùn)QQ咨詢:點(diǎn)擊咨詢 點(diǎn)擊咨詢
項(xiàng)目QQ咨詢:點(diǎn)擊咨詢
email:kf@1cae.com




主站蜘蛛池模板: 87版七仙女台湾| 捉弄电影| 斑点狗动画片| 281封信电视剧演员表| 《冰灯》原文| 汤晶锦| 潘雨辰主演的电视剧大全| 微信头像男生| 播放凯登克罗斯演的全部影片| 内蒙古电视台节目表| 教师政治学习笔记| 复仇女王 电视剧| 红海行动2在线观看| 赵士杰| 大浴女电视剧所有演员表| 黄姓的研究报告| 性感瑜伽| 古铜| 周星驰国产凌凌漆| 电影白日梦2| 北京宝哥打小混混视频| 洪熙官个人资料简介| 大班安全教案《教室里不乱跑》| 羞羞片| douyin.com| 刘雪莹| 帕巴拉呼图克图| 拔萝卜电视剧高清免费观看全集| 女人香韩国电影| 第三套广播体操七彩阳光完整版视频| 《特种兵之霹雳火》| 喻繁图片| 浙江卫视全天节目单| 春江花月夜理解性默写及答案| 38在线电影| 历史转折中的| 歌曲串烧串词| 新妈妈2| 珍珠传奇 电视剧| 狐狸的夏天第二季 2017 谭松韵| 保证书怎么写才有法律效力|