当前位置:服务支持 >  软件文章 >  Abaqus CAE Python后处理提取最大等效应力教程

Abaqus CAE Python后处理提取最大等效应力教程

阅读数 10
点赞 0
article_banner

使用Python语言对Abaqus CAE后处理结果进行分析,并提取一个分析步中每一帧的最大等效应力,其中Python代码如下:

from abaqus import *
from abaqusConstants import *
from odbAccess import *
import visualization

myFile=open('DATA.txt','w')

print('********************************\n')
myFile.write('********************************\n')

myOdb=openOdb(path='viewer_tutorial.odb')
myStepValue=myOdb.steps.values()

for step in myStepValue:
    print('The current step is: %s.\n'%step.name)
    myFile.write('The current step is: %s.\n'%step.name)
    frameID=0
    for frame in step.frames:
        print('The current frame is: %d.\n'%frameID)
        myFile.write('The current frame is: %d.\n'%frameID)
        frameID=frameID+1
        stressValue=frame.fieldOutputs['S'].values
        maxMisesValue=0
        for misesValue in stressValue:
            if misesValue.mises>maxMisesValue:
                maxMisesValue=misesValue.mises
        print('The maximum mises value of the current frame in current step is: %10.6f\n'%maxMisesValue)
        myFile.write('The maximum mises value of the current frame in current step is: %10.6f\n'%maxMisesValue)

print('********************************\n')
myFile.write('********************************\n')
myFile.close()

免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删
相关文章
QR Code
微信扫一扫,欢迎咨询~

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 155-2731-8020
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

手机不正确

公司不为空