【问题标题】:How to define history region in history output definition for Abaqus Python scripting?如何在 Abaqus Python 脚本的历史输出定义中定义历史区域?
【发布时间】:2017-01-30 07:15:30
【问题描述】:

我准备了一个 Python 脚本来从 CAE 文件中获取初始数据并对其进行修改以进行另一次分析。为此,我创建了一个 historyOutput 命令来获取压力强度因子,我需要在 python 代码内部的后处理中使用这些值,但是我对 historyRegion 的定义有疑问,请你给我一个关于为什么会发生这种情况的建议?

下面是对应的代码行:

破解提示集

myAssembly.Set(nodes = crackTipNode, name = 'crackTip')

轮廓积分定义:

a.engineeringFeatures.ContourIntegral(name='Crack-1',对称=OFF,crackFront=crackFront,crackTip=crackTip, extensionDirectionMethod=Q_VECTORS, qVectors=((v11[7], a.instances['crackedPart'].InterestingPoint(edge=e11[8], rule=MIDDLE)), ), midNodePosition=0.5, collapsedElementAtTip=NONE)

请求破解历史输出

myModel.HistoryOutputRequest(name = 'SIF', createStepName = crackStep, contourIntegral = 'Crack-1',numberOfContours = 轮廓, contourType = K_FACTORS,kFactorDirection = KII0,rebar = EXCLUDE,sectionPoints = DEFAULT)

从历史输出中读取

crackODB = session.openOdb(name = jobName, path = jobName + '.odb', readOnly = True) histRegion = crackODB.steps[crackStep].historyRegions['Crack-1']

我为historyRegions 输入了contourIntegral 名称,但出现“KeyError: Crack-1”错误。我不知道还能做什么? 任何建议将不胜感激。

谢谢,

【问题讨论】:

    标签: python scripting abaqus odb


    【解决方案1】:

    问题解决了! 我不得不使用 'ElementSet 。 ALL ELEMENTS' 而不是 'ElementSet ALL ELEMENTS',在这一行:

    histRegion = crackODB.steps[crackStep].historyRegions['ElementSet .所有元素']

    【讨论】:

      猜你喜欢
      • 2016-05-26
      • 2020-04-01
      • 2019-08-25
      • 2021-01-06
      • 2011-06-27
      • 2021-11-01
      • 2019-02-06
      • 1970-01-01
      • 2010-10-27
      相关资源
      最近更新 更多