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
- Sarah A. Eassa's blog
- Log in or register to post comments
- 3948 reads

Comments
Python
Subscribe to and seek assistance from the
ABAQUS mailing list
https://groups.yahoo.com/group/ABAQUS
Search the archive before posting.
Good luck
Frank
The "writeInput" command will
The "writeInput" command will create a new file for you.