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',180000.)
|
---|
12 | md=setmask(md,'../Exp/SquareShelf.exp','')
|
---|
13 | md=parameterize(md,'../Par/SquareSheetShelf.py')
|
---|
14 | md.extrude(5,1.)
|
---|
15 | md=setflowequation(md,'HO','all')
|
---|
16 | md.diagnostic.isnewton=1
|
---|
17 | md.diagnostic.restol=0.0001
|
---|
18 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
19 | md=solve(md,DiagnosticSolutionEnum())
|
---|
20 |
|
---|
21 | #Fields and tolerances to track changes
|
---|
22 | field_names =['Vx','Vy','Vz','Vel','Pressure']
|
---|
23 | field_tolerances=[1e-09,2e-09,1e-09,2e-09,1e-09]
|
---|
24 | field_values=[\
|
---|
25 | md.results.DiagnosticSolution.Vx,\
|
---|
26 | md.results.DiagnosticSolution.Vy,\
|
---|
27 | md.results.DiagnosticSolution.Vz,\
|
---|
28 | md.results.DiagnosticSolution.Vel,\
|
---|
29 | md.results.DiagnosticSolution.Pressure,\
|
---|
30 | ]
|
---|