Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Abaqus exits with error when executed by Matlab script 1

Status
Not open for further replies.

Biomech_Max

Bioengineer
Mar 28, 2017
2
Hi,

I am trying to solve an inverse analysis problem in abaqus by using matlab and python scripts. The basic idea is to use matlabs optimization toolbox to optimize the mean square error between experimentally measured strain and results from an abaqus simulation.

I use matlab to update the material parameters and write them into a pyhton file; then matlab starts abaqus and executes a pyhton script that updates the model, submits a job and writes the strain into a txt file. matlab again reads this txt file and uses it to calculate the error and update the material properties for the next step.

I use the system() command in matlab to run the script in abaqus:

Code:
system(['abaqus cae ',mo='noGUI','=Cylindrical.py']);

The links to the rest of the code are below.

My code runs fine on one PC and finds the right material parameters for given strain values that I previously got from the same model.

The problem is that the same code does not run on a different workstation. I would like to use a more powerful workstation, since every iteration of the optimization requires a full simulation. I get the following error code in matlab that unfortunately does not give much information on whats wrong:

[tt]Run pre.exe
3/28/2017 11:50:12 AM
Abaqus Error: Analysis Input File Processor exited with an error.
Abaqus/Analysis exited with errors
Abaqus/Analysis exited with error.

Abaqus Error: cae exited with an error.[/tt]

While the bigger workstation has more cores available I used only 4 cores on both computers.

I would greatly appreciate any suggestions on what the error might be and can share the code when it works.

Max

Files:
 
Replies continue below

Recommended for you

Thanks for the answer!
I don't create or edit the .inp file with the script, but use the script to update the model in the abaqus cae and submit the job there. I attached the model below.

I also attached the input files after 2 steps of the optimization that worked, and one after an error. Honestly, I don't know much about their structure, but they look fine to me.

Might it be better to edit the input deck directly?

Abaqus model:

Input files:
 
Hello Biomech_Max,

I ran the input file input_error.inp in my workstation and everything went ok. It seems that the culprit is in the Python script that you use for the generation and execution of the input file. Instead of submitting the job directly, you can firstly write the input file by using a suitable Python command, then execute the input file in Abaqus with the next Python command. It is recommended to impose a time delay in the Python script after the generation of the input file and before its execution.

Another completely different approach would be to use Abaqus2Matlab which is a new toolbox for effective coupling of Abaqus and Matlab. It is an open source code which can be downloaded for free at
Best regards,

George Papazafeiropoulos
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor