1 | #Test Name: SquareSheetShelfSteaSSA3d
|
---|
2 | import numpy
|
---|
3 | from model import *
|
---|
4 | from EnumDefinitions import *
|
---|
5 | from MatlabFuncs import *
|
---|
6 | from triangle import *
|
---|
7 | from setmask import *
|
---|
8 | from parameterize import *
|
---|
9 | from setflowequation import *
|
---|
10 | from solve import *
|
---|
11 |
|
---|
12 | md=triangle(model(),'../Exp/Square.exp',150000.)
|
---|
13 | md=setmask(md,'../Exp/SquareShelf.exp','')
|
---|
14 | md=parameterize(md,'../Par/SquareSheetShelf.py')
|
---|
15 | md.extrude(3,2.)
|
---|
16 | md=setflowequation(md,'SSA','all')
|
---|
17 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
18 | md.timestepping.time_step=0
|
---|
19 | md=solve(md,'Steadystate')
|
---|
20 |
|
---|
21 | #Fields and tolerances to track changes
|
---|
22 | field_names =['Vx','Vy','Vz','Vel','Pressure','Temperature','BasalforcingsGroundediceMeltingRate']
|
---|
23 | field_tolerances=[1e-09,1e-09,1e-08,1e-09,1e-13,5e-10,1e-06]
|
---|
24 | field_values=[\
|
---|
25 | md.results.SteadystateSolution.Vx,\
|
---|
26 | md.results.SteadystateSolution.Vy,\
|
---|
27 | md.results.SteadystateSolution.Vz,\
|
---|
28 | md.results.SteadystateSolution.Vel,\
|
---|
29 | md.results.SteadystateSolution.Pressure,\
|
---|
30 | md.results.SteadystateSolution.Temperature,\
|
---|
31 | md.results.SteadystateSolution.BasalforcingsGroundediceMeltingRate,\
|
---|
32 | ]
|
---|