source: issm/trunk-jpl/test/NightlyRun/test121.py@ 21060

Last change on this file since 21060 was 21060, checked in by Mathieu Morlighem, 9 years ago

CHG: no more enums in python

File size: 1.5 KB
Line 
1#Test Name: SquareShelfConstrainedEnthalpyTran
2from model import *
3from triangle import *
4from setmask import *
5from parameterize import *
6from setflowequation import *
7from solve import *
8from MatlabFuncs import *
9
10md=triangle(model(),'../Exp/Square.exp',180000)
11md=setmask(md,'all','')
12md=parameterize(md,'../Par/SquareShelfConstrained.py')
13md.extrude(3,1.)
14md=setflowequation(md,'SSA','all')
15md.cluster=generic('name',oshostname(),'np',3);
16md.initialization.waterfraction=numpy.zeros((md.mesh.numberofvertices,1))
17md.initialization.watercolumn=numpy.zeros((md.mesh.numberofvertices,1))
18md.transient.isstressbalance=False
19md.transient.ismasstransport=False
20md.transient.issmb=True
21md.transient.isthermal=True
22md.transient.isgroundingline=False
23md.thermal.isenthalpy=1
24md.thermal.isdynamicbasalspc=1
25md=solve(md,'Transient')
26
27#Fields and tolerances to track changes
28field_names =['Enthalpy1','Waterfraction1','Temperature1',\
29 'Enthalpy2','Waterfraction2','Temperature2',\
30 'Enthalpy3','Waterfraction3','Temperature3']
31field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-9,1e-13]
32field_values=[\
33 md.results.TransientSolution[0].Enthalpy,\
34 md.results.TransientSolution[0].Waterfraction,\
35 md.results.TransientSolution[0].Temperature,\
36 md.results.TransientSolution[1].Enthalpy,\
37 md.results.TransientSolution[1].Waterfraction,\
38 md.results.TransientSolution[1].Temperature,\
39 md.results.TransientSolution[2].Enthalpy,\
40 md.results.TransientSolution[2].Waterfraction,\
41 md.results.TransientSolution[2].Temperature,\
42 ]
Note: See TracBrowser for help on using the repository browser.