Abaqus CAE Python后處理提取每一幀最大等效應力
瀏覽:3026 評論:1 收藏:13
使用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()
技術鄰APP
工程師必備
工程師必備
- 項目客服
- 培訓客服
- 平臺客服
TOP
3
1
13




















