source: issm/branches/trunk-larour-NatGeoScience2016/test/NightlyRun/test225.py@ 21243

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

CHG: no more enums in python

File size: 2.5 KB
Line 
1#Test Name: SquareShelfStressHOTransientIncrNonHydro
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',200000.)
11md=setmask(md,'all','')
12md=parameterize(md,'../Par/SquareShelf.py')
13md.geometry.base=md.geometry.base+50.
14md.geometry.surface=md.geometry.surface+50.
15md.extrude(3,1.)
16md=setflowequation(md,'HO','all')
17md.cluster=generic('name',oshostname(),'np',3)
18md.masstransport.hydrostatic_adjustment='Incremental'
19md=solve(md,'Transient')
20
21#Fields and tolerances to track changes
22field_names =['Vx1','Vy1','Vz1','Vel1','Pressure1','Bed1','Surface1','Thickness1','Temperature1','BasalforcingsGroundediceMeltingRate1', \
23 'Vx2','Vy2','Vz2','Vel2','Pressure2','Bed2','Surface2','Thickness2','Temperature2','BasalforcingsGroundediceMeltingRate2', \
24 'Vx3','Vy3','Vz3','Vel3','Pressure3','Bed3','Surface3','Thickness3','Temperature3','BasalforcingsGroundediceMeltingRate3']
25field_tolerances=[\
26 1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-05,\
27 2e-09,1e-09,1e-08,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-05,\
28 1e-08,1e-08,1e-08,1e-08,1e-09,1e-09,1e-09,1e-09,1e-09,1e-05]
29field_values=[\
30 md.results.TransientSolution[0].Vx,\
31 md.results.TransientSolution[0].Vy,\
32 md.results.TransientSolution[0].Vz,\
33 md.results.TransientSolution[0].Vel,\
34 md.results.TransientSolution[0].Pressure,\
35 md.results.TransientSolution[0].Base,\
36 md.results.TransientSolution[0].Surface,\
37 md.results.TransientSolution[0].Thickness,\
38 md.results.TransientSolution[0].Temperature,\
39 md.results.TransientSolution[0].BasalforcingsGroundediceMeltingRate,\
40 md.results.TransientSolution[1].Vx,\
41 md.results.TransientSolution[1].Vy,\
42 md.results.TransientSolution[1].Vz,\
43 md.results.TransientSolution[1].Vel,\
44 md.results.TransientSolution[1].Pressure,\
45 md.results.TransientSolution[1].Base,\
46 md.results.TransientSolution[1].Surface,\
47 md.results.TransientSolution[1].Thickness,\
48 md.results.TransientSolution[1].Temperature,\
49 md.results.TransientSolution[1].BasalforcingsGroundediceMeltingRate,\
50 md.results.TransientSolution[2].Vx,\
51 md.results.TransientSolution[2].Vy,\
52 md.results.TransientSolution[2].Vz,\
53 md.results.TransientSolution[2].Vel,\
54 md.results.TransientSolution[2].Pressure,\
55 md.results.TransientSolution[2].Base,\
56 md.results.TransientSolution[2].Surface,\
57 md.results.TransientSolution[2].Thickness,\
58 md.results.TransientSolution[2].Temperature,\
59 md.results.TransientSolution[2].BasalforcingsGroundediceMeltingRate,\
60 ]
Note: See TracBrowser for help on using the repository browser.