Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

run incremental input files

Status
Not open for further replies.

matmeanla

Mechanical
Mar 7, 2016
14
0
0
MY
Hi there,

I am developing a python script to generate new input file from deformed geometry.

However, to run in multiple/ for incremental input file, i have a problem in command line. Anyone had a similar experience before?

##python script input file generated
....................
....................
with open('rene%s.inp' % m, 'w') as f_new:
...................
...................


##to run the input file in command line

os.system('abaqus job=job input='rene%s.inp' % m cpus=6 -verbose 1 standard_parallel=all mp_mode=mpi interactive')


I have problem in the input syntax..




 
Replies continue below

Recommended for you

You should create your name string first and then add it into the command with a + to connect strings.

Example:

inpname = 'test.inp'

os.system('abaqus job='+inpname+' cpus=6 interactive')
 
Status
Not open for further replies.
Back
Top