User login

You are here

generate an input file through python

hi

I would like to generate an input file with python.

I have written my python script, and i want to write an input file without submitting the job.

I write at the end of the script:

mdb.Job(atTime=None, contactPrint=OFF, description='', echoPrint=OFF, explicitPrecision=SINGLE, getMemoryFromAnalysis=True, historyPrint=OFF, memory=90, memoryUnits=PERCENTAGE, model='Model-2', modelPrint=OFF, multiprocessingMode=DEFAULT, name='3D1-100', nodalOutputPrecision=SINGLE, numCpus=1, numGPUs=0, queue=None, scratch='', type=ANALYSIS, userSubroutine='', waitHours=0, waitMinutes=0)
mdb.jobs['3D1-100'].writeInput(consistencyChecking=OFF)

The model name is Model-2
and the job name is 3D1-100

Do i have to create an .inp file before writing those commands?

Thanks

Subscribe to Comments for "generate an input file through python"

Recent comments

More comments

Syndicate

Subscribe to Syndicate