Ezio88
Mechanical
- Jun 3, 2015
- 14
Hi,
I want to restart a job after a step. Doing it in the cae viewer works well. But i need to restart the job many times. So i want to implement a python script.
By Creating a Macro, i got the commands:
mdb.Job(name=JobName, model=modelName, description='', type=RESTART,
atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=70,
memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True,
explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF,
modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='',
scratch='', resultsFormat=ODB)
but if i run the python script i get the error message:
mdb.Job(name=JobName, model=modelName, description='', type=RESTART,
NameError: name 'RESTART' is not defined
I dont find my way with this message.
Could anybody help me, please?
Many thx
I want to restart a job after a step. Doing it in the cae viewer works well. But i need to restart the job many times. So i want to implement a python script.
By Creating a Macro, i got the commands:
mdb.Job(name=JobName, model=modelName, description='', type=RESTART,
atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=70,
memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True,
explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF,
modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='',
scratch='', resultsFormat=ODB)
but if i run the python script i get the error message:
mdb.Job(name=JobName, model=modelName, description='', type=RESTART,
NameError: name 'RESTART' is not defined
I dont find my way with this message.
Could anybody help me, please?
Many thx