User login

You are here

Abaqus Script Manual/Tutorial

Johannes T.B. Overvelde's picture

I have written a introduction manual/tutorial on Abaqus Scripting. I got some good feedback from my colleagues. Therefore, I would like to share the manual.The manual should give a short introduction (it will not take more than one hour) to Abaqus script in Python.

You can find the manual here:

Abaqus Script Manual

Via the same link you can also find more information on the connection between Matlab and Abaqus

Good luck!

Comments

Dear Johannes , your work is admirable and a great help for us to learn , unfortunately in the Sample files , to run abaqus from Matlab , there is a module named : Numerical , that I think you have constructed it , but abaqus doesn't know it , I think it is not defined somewhere in your files right ? I tried to run the files according to the help file : 

 

First the Matlab file with MainBrutePois.m is called. This will call for the other Matlab files.

The matlab files will create the variables used in Abaqus. These variables are written to a text file in MakeVar.m.

Next Modelcalc.m will call Abaqus and runs the Python script files. 

The Python script files will first read the variables from the text file and create the model according to these variables.

After the simulation is done, Abaqus writes the interesting data to an output files (I create the output file myself, it is not a standard Abaqus output file).

Then Abaqus quites and Matlab will continue by reading the output text file from Abaqus. 

 

 

and I got this error :

 

Error using cd

Cannot CD to ./AbaqusFiles (Name is nonexistent or not a directory).

 

Error in FileNameSave (line 6)

cd('./AbaqusFiles');

 

Error in MainBrutePois (line 7)

FileNameSave 

 

it is not very clear to me what the first line is doing , I appreciate very much your guide

nhannguyenminh's picture

I agree with you about the Nummerical modul import error. I met this error too. Delete it and run again.

nhannguyenminh's picture

<p>Hi Johannes. Thank you so much. You did a great job.<\p> <p>I'm new to ABAQUS scripting, so your sample code helps me a lot. </p><p>As far as I am concerned, there are two methods of scripting which are writing job file (.inp) and writing journal code (.py)Let's call the former job-method and the later journal-method. I think each method has their own advantage and difficulty.</p> 

  • journal-method uses python language to create commands for every manipulation that users conduct in ABAQUS GUI. We can learn from the journal file (.jnl) to convert complex GUI based manipulation into code.
  • job-method use ABAQUS syntax to write input file. That means the users have to write down the mesh, nodal coordinate... by their own. It's not easy and take efforts. 

 <p>I have just tried scripting for one day so I just make a snap judgment. It may be wrong. Could you give me your opinion about the advantage and difficulty of the two methods? Which one is better? In addition, could you give me some good reference for ANSYS-Matlab connection and ANSYS scripting? </p>  <p>Best regards,</p> <p>Nhan</p>

nhannguyenminh's picture

Hi JohannesThank you so much. You did a great job.

I'm new to ABAQUS scripting, so your sample code helps me a lot. 

As far as I am concerned, there are two methods of scripting which are writing job file (.inp) and writing journal code (.py)

Let's call the former job-method and the later journal-method. I think each method has their own advantage and difficulty. 

  • journal-method uses python language to create commands for every manipulation that users conduct in ABAQUS GUI. We can learn from the journal file (.jnl) to convert complex GUI based manipulation into code.
  • job-method use ABAQUS syntax to write input file. That means the users have to write down the mesh, nodal coordinate... by their own. It's not easy and take efforts. 

I have just tried scripting for one day so I just make a snap judgment. It may be wrong. Could you give me your opinion about the advantage and difficulty of the two methods? Which one is better? In addition, could you give me some good reference for ANSYS-Matlab connection and ANSYS scripting?  

Best regards,

Nhan

Subscribe to Comments for "Abaqus Script Manual/Tutorial"

Recent comments

More comments

Syndicate

Subscribe to Syndicate