python程序:从odb得到某一点的空间变形轨迹
本帖最后由 JingheSu 于 2011-7-20 21:06 编辑学odbMaxMises.py写了一个python程序
利用他可以从odb中得到分析过程中某一个节点坐标随时间变化的数据,并输出到名为odb+nodeLabel.dat的文件中。
简单改一下也可一得到任意一点变形前后的节点坐标。
"""
nodeDisp.py
Code to determine the current location from an output database.
Usage: abaqus python nodeDisp.py -o odbName -i instanceName -n nodeLabel
Requirements:
1. -o : Name of the output database.
2. -i : Name of the assembly level instanceName such as 'PART-1-1'.
3. -n : Label of the
4. -h : Print usage
"""
把附件与odb放在同一目录下,在abaqus command 中输入 abaqus python nodeDisp.py -o odbName -i instanceName -n nodeLabel
即可 真是赞,学习了,正想搞个批处理提取某个节点变形前后坐标呢 看起来挺有用的诶,顶楼主下,先留着。 odbMaxMises.py 请问想得到最大MISES应力的 有处理文件吗?odbMaxMises.py里面应该怎么修改啊? 4# chenxingjie85
"""
odbMaxMises.py
Code to determine the location and value of the maximum
von-mises stress in an output database.
Usage: abaqus python MaxMises.py -odb odbName
-elset(optional) elsetName
Requirements:
1. -odb : Name of the output database.
2. -elset : Name of the assembly level element set.
Search will be done only for element belonging
to this set. If this parameter is not provided,
search will be performed over the entire model.
3. -help: Print usage
"""
记录每增量步中的最大Mises应力到文件MaxMises.dat中 小弟谢谢啊 我马上试试 有问题不懂再来问。万分感激 thank you for sharing.
It is good tool. 小弟很愚钝, 这怎么用啊?好像和我在帮助文档下载的是一样的。。。。具体的要修改哪些地方啊? 这个已经是改过的了,你直接用就行了 thanks goodman 请问:“把附件与ODB放在同一目录下”,是指哪个目录?ABAQUS的默认工作目录? 11# hong19860928
同一个目录就行,如果这个目录(目录A)不是aba的默认目录,你就得在abaqus command中切换到目录A下才行 出错了,请问版主这是咋回事啊? 你输入的命令是啥? 14# JingheSu
输入的命令是:abaqus python nodeDisp.py -o odbName -i instanceName -n nodeLabel9
莫 14# JingheSu
莫非里面的-o -i -n 要换成我自己的文件名? 本帖最后由 JingheSu 于 2011-4-17 19:54 编辑
odbName改成你的odb文件名字
instanceName 改成你的instance名字
nodeLable改成你的nodelabel
比如:
abaqus python nodeDisp.py -o getstress.odb -i PART-1-1 -n 12
表示提取getstress.odb文件中节点12(位于PART-1-1上)的位移 :loveliness:学习了 好东西,分享大家看学习了,谢谢哥哥 谢谢,后处理用python的好例子