#=========== Job ============# #Create job mdb.Job(model=modelName, name=modelName, numCpus=cpus, numDomains=cpus, explicitPrecision=precision, nodalOutputPrecision=nodalOpt) #Run job if run: mdb.saveAs(pathName = mdbName + '.cae') func.runJob(modelName) func.readStaFile(modelName, 'results.txt') #=========== Post proccesing ============# print 'Post processing...' # #Contour # func.countourPrint(modelName, defScale, printFormat) #Animation #func.animate(modelName, defScale, frameRate= animeFrameRate) #Energy func.xyEnergyPlot(modelName)
#Create job precision = SINGLE #SINGLE/ DOUBLE/ DOUBLE_CONSTRAINT_ONLY/ DOUBLE_PLUS_PACK nodalOpt = SINGLE #SINGLE or FULL mdb.Job(model=modelName, name=modelName, numCpus=cpus, numDomains=cpus, explicitPrecision=precision, nodalOutputPrecision=nodalOpt) #Run job if run: func.runJob(modelName) #Write CPU time to file func.readStaFile(modelName, 'results.txt') #===================================================# #===================================================# # Post # #===================================================# #===================================================# print 'Post processing...' #Clear plots for plot in session.xyPlots.keys(): del session.xyPlots[plot] # #=========== Contour ============# # func.countourPrint(modelName, defScale, printFormat)