Skip to main content

Extracting Load proportionality factor from odb file in ABAQUS using python script

Submitted by ssha6693 on

Dear firends,

I run some abaqus input files and got my odb files(for example 100 odb files in a specific folder with the name of try). I want to extract LPF (load proportionality factor for whole model) using python script (In my analysis I used static riks). I used the following commands but when I run my script I get an error :



#!usr/bin/python

from abaqusConstants import*

from odbAccess import*

import string

import sys, os

import glob

FOLDER="C:/ABAQUS_WORK/try"

os.chdir(FOLDER)

for filename in glob.glob('*odb'):

    odb=session.openOdb(name=filename)

    session.XYDataFromHistory(name='LoadFactor',odb=odb,outputVariableName='Load propotionality factor:LPF for Whole Model',steps=('apply load',))

    x0=session.xyDataObjects['LoadFactor']

    session.writeXYReport(fileName="C:\\ABAQUS_WORK\try\LoadFactor.dat",xyData=(x0,)) 

session.odbs[filename].close()

 The error is:XypError:History output cannot be located for the variable'Load propotionality factor:LPF for Whole Model' in the step(s) specified

Does anyone know why I got this error ?or dose anyone have a python script to extract LPF which I can follow ?It will really help me to go further in my research. Thanks in advanced.

Shabnam 

Hi

first of all check your dat file whether there is any error or not. Sometimes the analysis may complete with the error and this may cause the abscence of required output in our ODB. See the file size of ODB, is it quite approval, see error in dat file and correct and ru again and see what happens.

This is a first check.

Let me know if it worked or not

Wed, 09/08/2010 - 20:59 Permalink