User login

Navigation

You are here

python, abaqus, inp file

Hi All!

My problem is quite simple:
I need to change (add arguments) to a inp file, then submit the inp file
for analysis and finally to
read some results from the odb file.

I choose to use python (not the PDE provided by abaqus CAE but the
general python GUI). I’m sure this choice has consequences, perhaps the
import abaqus won’t work? This could bypassed if I run my code using abaqus python in the command window.

To add arguments to the inp file using python is easy, however I’m
struggling to find how to submit the inp file for analysis (w/o going to
CAE), maybe:

import os
os.system('abaqus job=file_name interactive double cpus=2')

and then to extract results from the odb (again w/o going to the
CAE), maybe:
odbfile = ‘full path of inp file’
myOdb = session.openOdb(name=odbfile)
KE = myOdb.steps['Step-1'].frames[-1].fieldOutputs['ALLKE'] (for kinetic energy)

Additionally, the inp has no parts or assemblies so the general
guidance provided in the abaqus help manual is not straightforward in my
case.
Could you please advise me?

Many thanks,

João

Subscribe to Comments for "python, abaqus, inp file"

Recent comments

More comments

Syndicate

Subscribe to Syndicate