Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-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
Joined
Mar 7, 2016
Messages
14
Location
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..




 
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')
 
Look at the output. Your command string is still wrong.
 
Yup, still looking for the solution
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top