Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How running with noGUI and a .py file with arguments ?

Status
Not open for further replies.

alexemse

Mechanical
Feb 24, 2009
12
Hi all,

I'd like to run Abaqus without GUI (Graphical User Interface) but I have a python file with arguments required.

The following command line doesn't work :

abaqus viewer noGUI=writeDisp.py /home/workspace/test.odb

(writeDisp has a path as argument)

Does anybody know how using the noGUI option ? I have few difficulties to understand the help provided by Abaqus (something with '--' ?).

Thanks
 
Replies continue below

Recommended for you

Hi Alex,
I think the command is only:
abaqus viewer noGUI=writeDisp.py
without specifying the Odb file

In the Python script you should start by opening the odb file with the following command:
myOdb = visualization.openOdb(path='test.odb')


Hope it'll help

RGX
 
Thanks RGX for your answer,

Indeed, I could do that. But in fact, this command is included in a loop.

This is something like :

for myodb in ODBbase:
abaqus viewer noGUI=writeDisp.py myodb
end

(This is just ti illustrate)

So the question is, how giving an argument to my python file...

Thanks again.
rgds
 
have you tried using two dashes (e.g. --) followed by your args?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor