Scripts and resources for the Abaqus/Python seminar. The script of the course exists in pdf and html form. We will go through the crucial steps for automating Abaqus CAE models using Python. Each of the participants will then apply those skills to an example that she/he presents in the final unit.
We decided to meet up on Thursdays from 1 pm to 4 pm (dates). If you cannot come to one of the dates, please let me know and complete the assignments of this unit on your own.
You need a laptop with Abaqus and an editor like Visual Studio Code, Atom, or Spyder on it. Later on, a Python installation including modules like NumPy and matplotlib would be nice, e.g. by installing Anaconda.
- Record Abaqus CAE commands: .rpy, .jnl, or macro-files.
- Running scripts in Abaqus
- Some general statements and header for Abaqus Python script (import, Mdb(), etc.)
- Looked at some projects from the last years
Create a sketch with a wavy surface using a spline.
- Repeated stuff from unit 1
- Looked at selecting things in Abaqus including masks, findAt, bounding boxes and using other properties of the entities
- Defined the assignment of the first homework
Extend the Abaqus/Python script to do the following things:
- Use the sketch from unit 1 to create a planar part
- cut the geometry at half of the waves' height
- create sets for the bottom, left, right edge. Create one set of the upper halve of the waves and the lower half of the waves. Give the sets names that you can easily remember and use in the further model creation
Extra effort (optional): Create separate sets for the upper and lower bumps and call them 'top-bump-01', ... Note that you can fill a string with zeros from the left using '5'.zfill(3) --> '005'
- Overview of results in the
odb
file and how to extract that - Created contour plot images together
- Looked into modeling & criterions for projects & you shared your ideas
- Continued to look into the model evaluation
- Started with chapter 4 (pdf) or chapter 5 (online), where we discussed how to assemble a scripted model.
- the monitor cable did not work, so the practical use of evaluation is put into the ...
Further evaluate the odb we created from the inp ile in unit 3:
- Evaluate the history output and write it into a dat file: there is output of the contour integrals written to the odb: see how to obtain that.
- (for the motivated ones): Create a path that starts at the crack tip and evaluate stresses in the direction of the last crack increment. Export these data and plot it with the tool of your choice.
Finished with going through the script including deleting unwanted files and working in subfolders. Brought Abaqus/Python cheatsheets that can be also found online.
Discussed your final project ideas and drew model sketches for them.
Continue to work on your projects, I will provide feedback on your homework that you can consider in the scripts you will develop in your projects.
Some resources that can help you with problems you might have using or scripting Abaqus
- 3DS Platform(you can register with a
unileoben.ac.at
address): the Abaqus documentation, some tips and resources for Abaqus - Jorgen Bergström with his homepage PolymerFEM, e.g. with a nice into to FEM: much on material models, but on general FEM theory. Also a forum that can help you.
- Ronald Wagner's YouTube chanel: General FEM, user subroutines, some Abaqus/Python
- Miguel Herráez with some free content: mostly Abaqus/Python, tips & tricks like this one