source: issm/branches/trunk-larour-NatGeoScience2016/test/NightlyRun/test211.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.4 KB
Line 
1#Test Name: SquareShelfTranFS
2from MatlabFuncs import *
3from model import *
4from numpy import *
5from triangle import *
6from setmask import *
7from parameterize import *
8from setflowequation import *
9from solve import *
10from generic import generic
11
12md=triangle(model(),'../Exp/Square.exp',200000)
13md=setmask(md,'all','')
14md=parameterize(md,'../Par/SquareShelf.py')
15md.extrude(3,1.)
16md=setflowequation(md,'FS','all')
17md.stressbalance.reltol=NaN
18md.cluster=generic('name',oshostname(),'np',3)
19md=solve(md,'Transient')
20
21
22# Fields and tolerances to track changes
23
24field_names=[\
25 'Vx1','Vy1','Vz1','Vel1','Pressure1','Bed1','Surface1','Thickness1','Temperature1','BasalforcingsGroundediceMeltingRate1', \
26 'Vx2','Vy2','Vz2','Vel2','Pressure2','Bed2','Surface2','Thickness2','Temperature2','BasalforcingsGroundediceMeltingRate2', \
27 'Vx3','Vy3','Vz3','Vel3','Pressure3','Bed3','Surface3','Thickness3','Temperature3','BasalforcingsGroundediceMeltingRate3']
28field_tolerances=[\
29 2e-08,2e-08,5e-05,2e-08,1e-08,1e-08,1e-08,1e-08,1e-08,1e-08,\
30 5e-06,5e-06,8e-05,5e-06,1e-07,5e-07,5e-07,5e-07,3e-06,5e-05,\
31 8e-06,8e-06,8e-05,8e-06,5e-07,8e-07,8e-07,8e-07,5e-06,8e-05]
32field_values=[\
33 md.results.TransientSolution[0].Vx,\
34 md.results.TransientSolution[0].Vy,\
35 md.results.TransientSolution[0].Vz,\
36 md.results.TransientSolution[0].Vel,\
37 md.results.TransientSolution[0].Pressure,\
38 md.results.TransientSolution[0].Base,\
39 md.results.TransientSolution[0].Surface,\
40 md.results.TransientSolution[0].Thickness,\
41 md.results.TransientSolution[0].Temperature,\
42 md.results.TransientSolution[0].BasalforcingsGroundediceMeltingRate,\
43 md.results.TransientSolution[1].Vx,\
44 md.results.TransientSolution[1].Vy,\
45 md.results.TransientSolution[1].Vz,\
46 md.results.TransientSolution[1].Vel,\
47 md.results.TransientSolution[1].Pressure,\
48 md.results.TransientSolution[1].Base,\
49 md.results.TransientSolution[1].Surface,\
50 md.results.TransientSolution[1].Thickness,\
51 md.results.TransientSolution[1].Temperature,\
52 md.results.TransientSolution[1].BasalforcingsGroundediceMeltingRate,\
53 md.results.TransientSolution[2].Vx,\
54 md.results.TransientSolution[2].Vy,\
55 md.results.TransientSolution[2].Vz,\
56 md.results.TransientSolution[2].Vel,\
57 md.results.TransientSolution[2].Pressure,\
58 md.results.TransientSolution[2].Base,\
59 md.results.TransientSolution[2].Surface,\
60 md.results.TransientSolution[2].Thickness,\
61 md.results.TransientSolution[2].Temperature,\
62 md.results.TransientSolution[2].BasalforcingsGroundediceMeltingRate,\
63 ]
Note: See TracBrowser for help on using the repository browser.