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