Show Menu
Cheatography

Abaqus Python for post-processing Cheat Sheet (DRAFT) by

Cheatsheet for post-processing Abaqus results with Python

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Open the output database (.odb)

Import the post-p­roc­essing library
>>> from odbAccess import *
open the output database
>>>­myOdb = openOd­b(p­ath­='p­ath­\my­fil­e.odb')
Once you've created your odb object, you can access all the variables throught the different attributes of the class. In the following cheats­heet, we only point out the way to access the results that mostly interest us such as Field Outputs and History Outputs

Accessing to Field Outputs

In the odb object we will access the steps attribute, then the frames attribute to get our field output.

>>>­steps = myOdb.s­teps

>>>­frames = steps[­'my­_st­ep_­nam­e'].frames

List of the main attributes in a step

descri­ption
domain
frames
histor­yRegion
inerti­aAb­out­Center
inerti­aAb­out­Origin
loadCases
mass
massCenter
name
number
previo­usS­tepName
procedure
timePeriod
totalTime

List of the main attributes in a frame

frames.de­scr­iption
Return descrition if given
frames.domain
TIME or FREQUENCY
frames.fi­eld­Outputs
return all the different outputs you specified in the simulation for each node and element
frames.fr­ameId
frames.fr­ame­Value
return the simulation time as a float
frames.in­cre­men­tNumber
return the increment number as an integer
 

Which field outup do we usualy encounter

NODAL OUTPUTS
U
displa­cement
UR
rotational displa­cement
COORD
coordi­nates
RF
Reaction force
ELEMENT OUTPUT
S
SMISES
Exemple to access the displa­cement along the x axis (U1), for a given node:
>>>­myOdb = openOd­b(p­ath­='p­ath­\my­odb.odb')

>>>­frame1 = myOdb.s­te­ps[­'St­ep-­1'].fr­ame­s[-1]

>>>t = frame1.fr­ame­Value

>>>u1 = frame1.fi­eld­Out­put­['U­'].v­al­ues­[27­].d­ata[0]


For all possible outputs, see the official Abaqus docume­ntation

Main attributes in a fieldO­utput object

compon­ant­Labels
descri­ption
name
type
values
all the main values are stored in
values­[my­Nod­e].data
 

What about the instance

the Root Assembly
The odb object has an attribute rootAs­sembly, which gives inform­ations about assembly such as:
elemen­tSets
elements
instances
name
nodeSets
nodes
rigidB­odies
sectio­nAs­sig­nement
surfaces

Access History Output results

In your simula­tion, you may have specify History Outputs for several sets. Your odbStep object has an attribute named histor­yRegion in which you will find all the sets that have history output, as histor­yOuptut Objects. In such objets are stored all the history outputs specified in your simula­tion.
region = myOdb.s­te­ps[­'st­epN­ame­'].h­is­tor­yRe­gio­ns[­'Node PART-1­-1.15']

Here is a quick exemple to access to time and volume in a fluid cavity:
>>>­myS­tep.hi­sto­ryR­egi­ons­['Node PART-1­-1.1­56­5'].hi­sto­ryO­utp­uts­[CV­OL].data

returns a tuple organized as:
((t1,C­VOL­1),­(t2­,CV­OL2­)...)