×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Accessing the mdb without GUI

Accessing the mdb without GUI

Accessing the mdb without GUI

(OP)
How do I access the mdb object with only the python prompt (without launching the GUI)

I have tried importing in the abaqus module in the python interpreter, and the following happens:

$ abaqus python
Python 2.0 (#0, Sep 24 2005, 01:06:13)
[GCC Intel(R) C++ gcc 3.0 mode] on linux2
Type "copyright", "credits" or "license" for more information.
>>>
>>> from abaqus import *
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "Python/abaqus.py", line 12, in ?
ImportError: ababltin failed to import
>>>

Someone had a similar problem in the thread thread799-152996: python scripting but I'm not helped by it.
 

RE: Accessing the mdb without GUI

Use the command:

abaqus cae noGUI=my_cae_script.py

from ABAQUS documentation:

"This option specifies the name of a file containing Python scripts to be run without the graphical user interface (GUI). This option is useful for automating pre- or post-analysis processing tasks without the added expense of running a display. Since no interface is provided, the scripts cannot include any user interaction. ABAQUS/CAE runs the commands in the file and exits upon their completion. If no file extension is given, the default extension is .py.

Arguments can be passed into the file by entering -- on the command line, followed by the arguments separated by one or more spaces. These arguments will be ignored by the ABAQUS/CAE execution procedure, but they will be accessible within the Python script."



See, for details:

ABAQUS Analysis User's Manual (v.6.6) -> 3.2.3 Execution procedure for ABAQUS/CAE

RE: Accessing the mdb without GUI

(OP)
abaqus cae noGUI=my_cae_script.py

only executes a python script file and exits, as far as I know.

I want to access an mdb by giving python commands one by one from the keyboard in same was as accessing an odb by

$abaqus python
>>>import odbAccess
>>>odb=odbAccsess.openOdb('..

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources