[19049] | 1 | #Test Name: SquareSheetShelfSteaSSA3d
|
---|
[13679] | 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.)
|
---|
[15565] | 16 | md=setflowequation(md,'SSA','all')
|
---|
[13679] | 17 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
| 18 | md.timestepping.time_step=0
|
---|
[21056] | 19 | md=solve(md,'Steadystate')
|
---|
[13679] | 20 |
|
---|
| 21 | #Fields and tolerances to track changes
|
---|
[18068] | 22 | field_names =['Vx','Vy','Vz','Vel','Pressure','Temperature','BasalforcingsGroundediceMeltingRate']
|
---|
[20096] | 23 | field_tolerances=[1e-09,1e-09,1e-08,1e-09,1e-13,5e-10,1e-06]
|
---|
[13679] | 24 | field_values=[\
|
---|
[13967] | 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,\
|
---|
[18068] | 31 | md.results.SteadystateSolution.BasalforcingsGroundediceMeltingRate,\
|
---|
[13679] | 32 | ]
|
---|