Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How can I create and execute iterative Abaqus jobs with a Python script? 1

Status
Not open for further replies.

Sri QUB

Mechanical
May 24, 2023
8
I created a Python script to perform a compression simulation in ABAQUS. After running the script in the command shell, I obtained the reaction force-time results as a text file in the working directory.

Now, I need to vary the modulus values and Poisson's ratio over a finite number of iterations. Instead of manually updating the script for each iteration, I'm looking for a way to define these variations within the script so that it automatically generates multiple input files (jobs) to obtain force-time data for all the jobs.

mdb.models['Model-1'].Material(name='Material-1')
mdb.models['Model-1'].materials['Material-1'].Elastic(table=((0.057, 0.4), ))
mdb.models['Model-1'].materials['Material-1'].Permeability(
inertialDragCoefficient=0.142887, specificWeight=9.81e-06, table=((
1.67e-08, 4.0), ))

I need to change the above properties in bold.
If anyone did a similar approach for optimisation in Abaqus, please share the knowledge of how I can implement the same.

Thanks
 
Replies continue below

Recommended for you

Check the article "Abaqus Python Scripting: How Difficult Is It?" on the Technia Simulation blog. It shows how to create such parameters.
 
@FEA way That is helpful for integers but not working for my case, as my property values are in decimal.
I obtained a float error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor