Python从Abaqus输出数据库读取历史输出数据(Abaqus帮助文档学习笔记)

        History output is output defined for a single point or for values calculated for a portion of the model as a whole, such as energy. Depending on the type of output expected,  the historyRegions repository contains data from one of the following:

  • a node

  • an integration point

  • a region

  • a material point

Note:                      Note: History data from an analysis cannot contain multiple points. 

The history data object model.

         In contrast to field output, which is associated with a frame, history output is associated with a step. History output data are stored in the historyRegions repository under an OdbStep object.  Abaqus creates keys to the historyRegions repository that describe the region; for example,

  • 'Node PART-1-1.1000'

  • 'Element PART-1-1.2 Int Point 1'

  • 'Assembly ASSEMBLY'

        The output from all history requests that relate to a specified point is collected in one HistoryRegion object. A HistoryRegion object contains multiple HistoryOutput objects. Each HistoryOutput object, in turn, contains a sequence of (frameValuevalue) sequences. In a time domain analysis (domain=TIME) the sequence is a tuple of (stepTimevalue). In a frequency domain analysis (domain=FREQUENCY) the sequence is a tuple of (frequencyvalue). In a modal domain analysis (domain=MODAL) the sequence is a tuple of (modevalue). 

        In the analysis that generated the Abaqus/CAE Visualization module tutorial output database, the user asked for the following history output:

        At the rigid body reference point (Node 1000)

  • U

  • V

  • A

        At the corner element

  • MISES

  • LE22

  • S22

        The history output data can be retrieved from the HistoryRegion objects in the output database. The tutorial output database contains HistoryRegion objects that relate to the rigid body reference point and the integration points of the corner element as follows:

  • 'Node PART-1-1.1000'

  • 'Element PART-1-1.1 Int Point 1'

  • 'Element PART-1-1.1 Int Point 2'

  • 'Element PART-1-1.1 Int Point 3'

  • 'Element PART-1-1.1 Int Point 4'

        The following statements read the tutorial output database and write the U2 history data from the second step to an ASCII file that can be plotted by Abaqus/CAE:The output in this example is a sequence of tuples containing the frame time and the displacement value. The example uses nodal history data output. If the analysis requested history output from an element, the output database would contain one HistoryRegion object and one HistoryPoint object for each integration point.

from odbAccess import *

odb = openOdb(path='viewer_tutorial.odb')
step2 = odb.steps['Step-2']
region = step2.historyRegions['Node PART-1-1.1000']
u2Data = region.historyOutputs['U2'].data
dispFile = open('disp.dat','w')
for time, u2Disp in u2Data:
    dispFile.write('%10.4E   %10.4E\n' % (time, u2Disp))
dispFile.close()

  • 11
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值