Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

run abaqus script

Status
Not open for further replies.

mustapha1234

Mechanical
Mar 31, 2014
8
hello,
I tried to run an abaqus script (myscript.py) using the instructions: abaqus cae script=myscript.py and abaqus viewer script=myscript.py and a get the sytaxeror:invalid syntax
I tried also to use file->run script but i get Syntax error:('unexpected character after line continuation character')
that in one hand, in auther hand i need help to tell me how i can import a Matlab file results to abaqus script.
think you
 
Replies continue below

Recommended for you

It sounds like you have a syntax error in your python script. It should give you a line number where the error is to aid in debugging.

For import matlab file results, you could try getting the SciPy package working with Abaqus (I tried, but not too hard since I didn't have long to spend on it). Alternatively, if you don't have a ton of information to pass from MATLAB to Abaqus, you can write the MATLAB results to a file (.dat, .txt, etc) and then load them in your python script using the numpy package that comes with Abaqus and the numpy.loadtxt function
 
you can also use python, numpy and scipy instead of matlab.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor