0

I would like to launch successive calculations with Abaqus via Python.

Between each calculations i have to apply some python code to extract some results but i dont know how to achieve that...

To launch a calculation with cmd in windows :

C:\SIMULIA\Abaqus\Commands\abq6131.bat job=Fish1 

So my command file in python looks like that :

  • calculation1
  • my code to extract some data
  • calculation 2...

I try with :

from subprocess import call

path="C:\SIMULIA\Abaqus\Commands\abq6131.bat"
param_name="job='"
p="Fish1"
call([path, param+p])

But it doesnt work...

user3601754
  • 3,792
  • 11
  • 43
  • 77

1 Answers1

0

By using os.system, i think i can reach my aim...

import os
os.system("abq6131 job=Fish1")
user3601754
  • 3,792
  • 11
  • 43
  • 77