source: issm/trunk-jpl/test/NightlyRun/test803.py@ 19527

Last change on this file since 19527 was 19527, checked in by Eric.Larour, 10 years ago

CHG: moved md.surfaceforcings to md.smb.
By doing so, had to rename the SMB class to SMBforcing class (it's just that, a mass_balance forcing inside
a SMB class, hence the name).
We also now have an smb_core solution, taken out of the mass transport core. Makes more sense long term.
Synced all enums according to the new changes, and operated the adjustments in all the test decks.

In addition, progressing in terms of GEMB integration into ISSM, specifically at the SMBgemb level (which
is spurring all the changes described above). Brought the class up to the level of the GEMB.m call in Alex's
code. Starting the C integration now.

File size: 2.7 KB
Line 
1#Test Name: ValleyGlacierLevelsetEnthalpyHO3d
2from model import *
3from triangle import *
4from squaremesh import *
5from setmask import *
6from parameterize import *
7from setflowequation import *
8from EnumDefinitions import *
9from solve import *
10from MatlabFuncs import *
11
12md=triangle(model(),'../Exp/Square.exp',50000)
13md=setmask(md,'','')
14md=parameterize(md,'../Par/ValleyGlacierShelf.py')
15md.extrude(3,2.)
16md=setflowequation(md,'HO','all')
17md.cluster=generic('name',oshostname(),'np',3)
18
19#Thermal model
20pos_surf=numpy.nonzero(md.mesh.vertexonsurface)[0]
21md.thermal.spctemperature[pos_surf]=md.initialization.temperature[pos_surf]
22md.thermal.isenthalpy=True
23md.thermal.isdynamicbasalspc=True
24
25#Transient
26md.transient.isstressbalance=True
27md.transient.islevelset=True
28md.transient.iscalving=True
29md.transient.ismasstransport=True
30md.transient.issmb=True
31md.transient.isthermal=True
32md.transient.isgroundingline=True
33md.transient.isgia=False
34
35md=solve(md,TransientSolutionEnum())
36
37#Fields and tolerances to track changes
38field_names =['Vx1','Vy1','Vel1','Pressure1','Thickness1','Surface1','MaskIceLevelset1','Enthalpy1','Watercolumn1',\
39 'Vx2','Vy2','Vel2','Pressure2','Thickness2','Surface2','MaskIceLevelset2','Enthalpy2','Watercolumn2',\
40 'Vx3','Vy3','Vel3','Pressure3','Thickness3','Surface3','MaskIceLevelset3','Enthalpy3','Watercolumn3']
41field_tolerances=[1e-10,1e-10,1e-10,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,\
42 1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,\
43 1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10]
44field_values=[\
45 md.results.TransientSolution[0].Vx,\
46 md.results.TransientSolution[0].Vy,\
47 md.results.TransientSolution[0].Vel,\
48 md.results.TransientSolution[0].Pressure,\
49 md.results.TransientSolution[0].Thickness,\
50 md.results.TransientSolution[0].Surface,\
51 md.results.TransientSolution[0].MaskIceLevelset,\
52 md.results.TransientSolution[0].Enthalpy,\
53 md.results.TransientSolution[0].Watercolumn,\
54 md.results.TransientSolution[1].Vx,\
55 md.results.TransientSolution[1].Vy,\
56 md.results.TransientSolution[1].Vel,\
57 md.results.TransientSolution[1].Pressure,\
58 md.results.TransientSolution[1].Thickness,\
59 md.results.TransientSolution[1].Surface,\
60 md.results.TransientSolution[1].MaskIceLevelset,\
61 md.results.TransientSolution[1].Enthalpy,\
62 md.results.TransientSolution[1].Watercolumn,\
63 md.results.TransientSolution[2].Vx,\
64 md.results.TransientSolution[2].Vy,\
65 md.results.TransientSolution[2].Vel,\
66 md.results.TransientSolution[2].Pressure,\
67 md.results.TransientSolution[2].Thickness,\
68 md.results.TransientSolution[2].Surface,\
69 md.results.TransientSolution[2].MaskIceLevelset,\
70 md.results.TransientSolution[2].Enthalpy,\
71 md.results.TransientSolution[2].Watercolumn,\
72 ]
Note: See TracBrowser for help on using the repository browser.