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