import numpy from model import * from EnumDefinitions import * from MatlabFuncs import * from triangle import * from setmask import * from parameterize import * from setflowequation import * from solve import * md=triangle(model(),'../Exp/Square.exp',180000.) md=setmask(md,'../Exp/SquareShelf.exp','') md=parameterize(md,'../Par/SquareSheetShelf.py') md.extrude(5,1.) md=setflowequation(md,'pattyn','all') md.diagnostic.isnewton=1 md.diagnostic.restol=0.0001 md.cluster=generic('name',oshostname(),'np',3) md=solve(md,DiagnosticSolutionEnum()) #Fields and tolerances to track changes field_names =['Vx','Vy','Vz','Vel','Pressure'] field_tolerances=[1e-09,1e-09,1e-09,1e-09,1e-09] field_values=[\ md.results['DiagnosticSolution'][1]['Vx'],\ md.results['DiagnosticSolution'][1]['Vy'],\ md.results['DiagnosticSolution'][1]['Vz'],\ md.results['DiagnosticSolution'][1]['Vel'],\ md.results['DiagnosticSolution'][1]['Pressure'],\ ]