PYTHON SCRIPTS FOR ABAQUS LEARN BY EXAMPLE

ABAQUS / Abaqus Python / Automate utilizing Python / FEM / Finite Element Method, FEM / PYTHON / Python scripting

If you are reading this, you are more than likely searching for some tips to increase your efficiency while working through FEA. Using Python scripts for an FE Analysis in ABAQUS help you perform that precisely. It have the right to automate all the boring and repetitive work.

You watching: Python scripts for abaqus learn by example

In this short article, I will certainly list out 5 ways to learn composing Python Scripts for ABAQUS efficiently.

Let’s dive in best away.

Understand also ABAQUS Python scripting methodology

The first and also the ideal way is to refer the Python scripting documentation from the developers <1>. For some of you, it could sound evident. Then why am I even placing this at the peak of my list?

Simple. I have viewed many civilization (consisting of yours truly) not referring to the documentation even for standard things. This is a time sink. And not a great idea. On any type of day.

Are you intimidated by the “academic” looking documentation to begin with? Then begin with the area titled “5.4.3 Object-oriented programming and also the Abaqus Scripting Interchallenge – a summary”. And then go directly to “5.2 Abaqus Scripting Interface documentation style” . This page has actually all the details around the regulates and the arguments.

Again, don’t acquire bogged down by the volume of information available there. Absorb all the product skimming throughout the topics. Once you get the bigger photo, it will all begin making sense. Maybe, I am sounding philosophical (!?). So, I will sheight below and also move on to the next allude.

Use the .rpy file

I have actually provided this method a lot once I was a beginner. Though it is not the scientifically correct method, it functions all the moment. Especially once you are impatient to go with the documentation. Let’s view exactly how you can make the finest usage of it.

Open the ABAQUS GUI and also save doing all the work that you desire to execute. After doing what you want to do, head over to your functioning magazine and open the file “abaqus.rpy” in any text editor. ABAQUS actually documents eextremely step that you did so far and also stores them as Python statements in this file. Executing this file is equal to delivering out the operations that you did some time back using the GUI.

Straight from the documentation:

Abaqus/CAE retains the five a lot of recent versions of the replay file. The the majority of current variation of the replay file is called abaqus.rpy; it is produced as soon as you begin a session. The 4 older versions have actually a number appfinished to the finish of the file name; the file name via the lowest number suggests the oldest replay file, and also the file name through the highest number shows the second most recent replay file.

ABAQUS additionally lets you document macros – something like the macros in Microsoft Excel. And conserves the python script as a message file in your working directory. You deserve to likewise have a look at this file to understand the syntax for some commands if it is complicated in the documentation.

Exploit the command line in the GUI

Let’s say you are not a complete beginner and also you have actually composed scripts prior to. But you do not recognize the commands by heart. Don’t worry. Use the command-line interchallenge below the workspace window of ABAQUS.

You deserve to begin keying the command in this area. Pressing “TAB” offers you the autofinish choice if you have started properly. After entering the complete command also through the compelled debates, press “ENTER” to execute the command also.

See more: Rick Ross " Crocodile Python Rick Ross, Crocodile Python By Rick Ross

Carefully observe the error messages

In many instances, the error messeras that pop up when you run an incorrect script disclose the resource of errors. This is conveniently the dumfinest and the the majority of obvious line in this short article. I understand and I am really sorry if you also feel the very same way. But I know (by experience) that civilization never pay close attention to these error messages.

In a lot of instances, these messperiods likewise allude out the specific keywords responsible for the error message. And the line in the manuscript containing the keyword. I have actually wasted the majority of time by easy spelling mistakes which are so noticeable yet not visible to the simple eye, that too after a long and also stressful day.

Some of my heroic moments:

Writing “dislayedViewport” rather of “displayedViewport”

Writing “displayObject” instead of “displayedObject”

I have wasted so much time through comparable typographic mistakes. The list is so significant that I have chose to offer only the 2 examples over. If you are not as foolish as me, you are fine.

Buy my book

A component of me is actually swearing at myself while I type this. I don’t want to sound sales-y and also the aim of this short article is not to promote my book. I read below <3> that list short articles with an odd number of list items obtain received well by the audience. So below we go. Tip number 5 is to buy the book that I composed on this topic.

Crash Course on Python Scripting for ABAQUS: Learn to write python scripts for ABAQUS in 10 days

Python scripting for ABAQUS is an area that has actually incredibly few step-by-action discovering sources that are not expensive. This is among the main reasons why many kind of world begin however ultimately provide up when the going gets difficult. Been tbelow, done that. Trust me.

This is why I took it on myself to publish a book that teaches you a step-by-action structure to write Python scripts for ABAQUS. I have actually composed this also for people that have actually no prior experience in Python scripting for ABAQUS. My goal is to create a universal structure so that it deserve to be applied to any kind of problem regardless of the complexity.

It’s been out there in Amazon for fairly some time and I have actually got mostly positive feedearlier.

Crash Course on Python Scripting for ABAQUS: Find Out to write python scripts for ABAQUS in 10 days

Even though the sales figures aren’t high sufficient that I have the right to actually boast upon, they have neverthemuch less gone beyond my expectations. That as well for a book with zero marketing and also no passist promotion. This only validates the require for a methodical discovering reresource on this topic. Give it a shot and I sincerely think it will certainly assist you turbocharge your python scripting skills for ABAQUS.

Okay. Enough of self-proactivity. Back to the topic now.

Writing Python Scripts for ABAQUS is favor anything else in life. With the best perspective, discovering resources and perseverance, you can learn and also grasp the art.

So, did you uncover this post useful? What was your technique to learn writing Python scripts for ABAQUS? If you recognize some other exciting methods, please do comment below.

If you learned something new from this post, please execute share this with your friends and also coworkers. Thank you so a lot and save smiling.

Prost!

~Renga

PS: Do you desire to have actually a look at an example ABAQUS Python manuscript for a really easy example? Go appropriate below –

References:

<1> http://dsk.ippt.pan.pl/docs/abaqus/v6.13/books/cmd/default.htm

<2> http://dsk.ippt.pan.pl/docs/abaqus/v6.13/books/cmd/default.htm?startat=pt03ch07s01.html