[13679] | 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.extrude(3,2.)
|
---|
[15565] | 15 | md=setflowequation(md,'SSA','all')
|
---|
[13679] | 16 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
| 17 | md.timestepping.time_step=0
|
---|
| 18 | md=solve(md,SteadystateSolutionEnum())
|
---|
| 19 |
|
---|
| 20 | #Fields and tolerances to track changes
|
---|
| 21 | field_names =['Vx','Vy','Vz','Vel','Pressure','Temperature','BasalforcingsMeltingRate']
|
---|
[15609] | 22 | field_tolerances=[1e-09,1e-09,1e-09,1e-09,1e-13,1e-10,1e-06]
|
---|
[13679] | 23 | field_values=[\
|
---|
[13967] | 24 | md.results.SteadystateSolution.Vx,\
|
---|
| 25 | md.results.SteadystateSolution.Vy,\
|
---|
| 26 | md.results.SteadystateSolution.Vz,\
|
---|
| 27 | md.results.SteadystateSolution.Vel,\
|
---|
| 28 | md.results.SteadystateSolution.Pressure,\
|
---|
| 29 | md.results.SteadystateSolution.Temperature,\
|
---|
| 30 | md.results.SteadystateSolution.BasalforcingsMeltingRate,\
|
---|
[13679] | 31 | ]
|
---|