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

[二次开发] python程序:从odb得到某一点的空间变形轨迹

[复制链接]
发表于 2011-3-22 22:22:47 | 显示全部楼层 |阅读模式 来自 江苏镇江
本帖最后由 JingheSu 于 2011-7-20 21:06 编辑

学odbMaxMises.py写了一个python程序
利用他可以从odb中得到分析过程中某一个节点坐标随时间变化的数据,并输出到名为odb+nodeLabel.dat的文件中。
简单改一下也可一得到任意一点变形前后的节点坐标。
  1. """
  2. nodeDisp.py
  3. Code to determine the current location from an output database.
  4. Usage: abaqus python nodeDisp.py -o odbName -i instanceName -n nodeLabel
  5. Requirements:
  6. 1. -o   : Name of the output database.
  7. 2. -i   : Name of the assembly level instanceName such as 'PART-1-1'.
  8. 3. -n   : Label of the
  9. 4. -h   : Print usage
  10. """
复制代码


把附件与odb放在同一目录下,在abaqus command 中输入 abaqus python nodeDisp.py -o odbName -i instanceName -n nodeLabel
即可

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×

评分

1

查看全部评分

发表于 2011-4-4 21:44:35 | 显示全部楼层 来自 陕西西安
Simdroid开发平台
真是赞,学习了,正想搞个批处理提取某个节点变形前后坐标呢
回复 不支持

使用道具 举报

发表于 2011-4-4 23:59:26 | 显示全部楼层 来自 湖南长沙
看起来挺有用的诶,顶楼主下,先留着。
回复 不支持

使用道具 举报

发表于 2011-4-6 08:24:35 | 显示全部楼层 来自 福建福州
odbMaxMises.py 请问想得到最大MISES应力的 有处理文件吗?odbMaxMises.py里面应该怎么修改啊?
回复 不支持

使用道具 举报

 楼主| 发表于 2011-4-6 19:11:16 | 显示全部楼层 来自 江苏镇江
4# chenxingjie85
  1. """
  2. odbMaxMises.py
  3. Code to determine the location and value of the maximum
  4. von-mises stress in an output database.
  5. Usage: abaqus python MaxMises.py -odb odbName
  6.        -elset(optional) elsetName
  7. Requirements:
  8. 1. -odb   : Name of the output database.
  9. 2. -elset : Name of the assembly level element set.
  10.             Search will be done only for element belonging
  11.             to this set. If this parameter is not provided,
  12.             search will be performed over the entire model.
  13. 3. -help  : Print usage
  14. """
复制代码


记录每增量步中的最大Mises应力到文件MaxMises.dat中

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×

评分

1

查看全部评分

回复 不支持

使用道具 举报

发表于 2011-4-7 10:19:56 | 显示全部楼层 来自 福建福州
小弟谢谢啊 我马上试试 有问题不懂再来问。万分感激
回复 不支持

使用道具 举报

发表于 2011-4-7 10:40:03 | 显示全部楼层 来自 江苏常州
thank you for sharing.
It is good tool.
回复 不支持

使用道具 举报

发表于 2011-4-7 10:45:14 | 显示全部楼层 来自 福建福州
小弟很愚钝, 这怎么用啊?好像和我在帮助文档下载的是一样的。。。。具体的要修改哪些地方啊?
回复 不支持

使用道具 举报

 楼主| 发表于 2011-4-7 11:22:15 | 显示全部楼层 来自 上海
这个已经是改过的了,你直接用就行了
回复 不支持

使用道具 举报

发表于 2011-4-7 14:13:18 | 显示全部楼层 来自 重庆沙坪坝区
thanks   goodman
回复 不支持

使用道具 举报

发表于 2011-4-17 18:35:37 | 显示全部楼层 来自 安徽合肥
请问:“把附件与ODB放在同一目录下”,是指哪个目录?ABAQUS的默认工作目录?
回复 不支持

使用道具 举报

 楼主| 发表于 2011-4-17 19:02:12 | 显示全部楼层 来自 江苏
11# hong19860928
同一个目录就行,如果这个目录(目录A)不是aba的默认目录,你就得在abaqus command中切换到目录A下才行
回复 不支持

使用道具 举报

发表于 2011-4-17 19:29:25 | 显示全部楼层 来自 安徽合肥
出错了,请问版主这是咋回事啊?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复 不支持

使用道具 举报

 楼主| 发表于 2011-4-17 19:43:26 | 显示全部楼层 来自 江苏
你输入的命令是啥?
回复 不支持

使用道具 举报

发表于 2011-4-17 19:50:17 | 显示全部楼层 来自 安徽合肥
14# JingheSu
输入的命令是:abaqus python nodeDisp.py -o odbName -i instanceName -n nodeLabel9

回复 不支持

使用道具 举报

发表于 2011-4-17 19:51:04 | 显示全部楼层 来自 安徽合肥
14# JingheSu
莫非里面的-o   -i   -n 要换成我自己的文件名?
回复 不支持

使用道具 举报

 楼主| 发表于 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上)的位移

评分

1

查看全部评分

回复 不支持

使用道具 举报

发表于 2011-5-11 10:12:02 | 显示全部楼层 来自 江苏南京
学习了
回复 不支持

使用道具 举报

发表于 2011-5-11 10:19:53 | 显示全部楼层 来自 陕西西安
好东西,分享大家看学习了,谢谢哥哥
回复 不支持

使用道具 举报

发表于 2011-5-23 09:33:08 | 显示全部楼层 来自 美国
谢谢,后处理用python的好例子
回复 不支持

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 05:13 , Processed in 0.056467 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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