[13681] | 1 | import numpy
|
---|
| 2 | from model import *
|
---|
| 3 | from EnumDefinitions import *
|
---|
| 4 | from MatlabFuncs import *
|
---|
| 5 | from triangle import *
|
---|
| 6 | from setmask import *
|
---|
| 7 | from parameterize import *
|
---|
| 8 | from setflowequation import *
|
---|
| 9 | from solve import *
|
---|
| 10 |
|
---|
| 11 | md=triangle(model(),'../Exp/Square.exp',150000.)
|
---|
| 12 | md=setmask(md,'../Exp/SquareShelf.exp','')
|
---|
| 13 | md=parameterize(md,'../Par/SquareSheetShelf.py')
|
---|
| 14 | md=setflowequation(md,'macayeal','all')
|
---|
| 15 | md.diagnostic.isnewton=1
|
---|
| 16 | md.diagnostic.restol=0.0001
|
---|
| 17 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
| 18 | md=solve(md,DiagnosticSolutionEnum())
|
---|
| 19 |
|
---|
| 20 | #Fields and tolerances to track changes
|
---|
| 21 | field_names =['Vx','Vy','Vel','Pressure']
|
---|
| 22 | field_tolerances=[1e-13,1e-13,1e-13,1e-13]
|
---|
| 23 | field_values=[\
|
---|
| 24 | md.results['DiagnosticSolution'][1]['Vx'],\
|
---|
| 25 | md.results['DiagnosticSolution'][1]['Vy'],\
|
---|
| 26 | md.results['DiagnosticSolution'][1]['Vel'],\
|
---|
| 27 | md.results['DiagnosticSolution'][1]['Pressure'],\
|
---|
| 28 | ]
|
---|