phd-scripts/Biomaterials13/Sample_ParamSweep/PyWrapperB.py

16 lines
435 B
Python
Raw Normal View History

2024-05-13 19:50:21 +00:00
# Import Neccesary Abaqus Modules
from abaqusConstants import *
import sys
import os
import subprocess
#
resFile=sys.argv[-1]
paramFile=sys.argv[-2]
jobName=paramFile.encode("hex")
# Run Preprocessor
os.system("abaqus cae noGUI=OptB.py -- "+paramFile)
# Run Job
os.system('abaqus j='+jobName+' cpus=6 inter user=ALE20 mp_mode=mpi')
# Run Postprocessor
os.system('abaqus python OptPostB1.py -- '+jobName+' '+resFile)