JingheSu 发表于 2011-3-22 22:22:47

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
即可

xiaohang07 发表于 2011-4-4 21:44:35

真是赞,学习了,正想搞个批处理提取某个节点变形前后坐标呢

ligang00772 发表于 2011-4-4 23:59:26

看起来挺有用的诶,顶楼主下,先留着。

chenxingjie85 发表于 2011-4-6 08:24:35

odbMaxMises.py 请问想得到最大MISES应力的 有处理文件吗?odbMaxMises.py里面应该怎么修改啊?

JingheSu 发表于 2011-4-6 19:11:16

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中

chenxingjie85 发表于 2011-4-7 10:19:56

小弟谢谢啊 我马上试试 有问题不懂再来问。万分感激

dhh_1981 发表于 2011-4-7 10:40:03

thank you for sharing.
It is good tool.

chenxingjie85 发表于 2011-4-7 10:45:14

小弟很愚钝, 这怎么用啊?好像和我在帮助文档下载的是一样的。。。。具体的要修改哪些地方啊?

JingheSu 发表于 2011-4-7 11:22:15

这个已经是改过的了,你直接用就行了

hwy87 发表于 2011-4-7 14:13:18

thanks   goodman

hong19860928 发表于 2011-4-17 18:35:37

请问:“把附件与ODB放在同一目录下”,是指哪个目录?ABAQUS的默认工作目录?

JingheSu 发表于 2011-4-17 19:02:12

11# hong19860928
同一个目录就行,如果这个目录(目录A)不是aba的默认目录,你就得在abaqus command中切换到目录A下才行

hong19860928 发表于 2011-4-17 19:29:25

出错了,请问版主这是咋回事啊?

JingheSu 发表于 2011-4-17 19:43:26

你输入的命令是啥?

hong19860928 发表于 2011-4-17 19:50:17

14# JingheSu
输入的命令是:abaqus python nodeDisp.py -o odbName -i instanceName -n nodeLabel9

hong19860928 发表于 2011-4-17 19:51:04

14# JingheSu
莫非里面的-o   -i   -n 要换成我自己的文件名?

JingheSu 发表于 2011-4-17 19:51:59

本帖最后由 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上)的位移

juzi6mei 发表于 2011-5-11 10:12:02

:loveliness:学习了

renning12 发表于 2011-5-11 10:19:53

好东西,分享大家看学习了,谢谢哥哥

zc78 发表于 2011-5-23 09:33:08

谢谢,后处理用python的好例子
页: [1] 2 3
查看完整版本: python程序:从odb得到某一点的空间变形轨迹