source: issm/trunk-jpl/test/NightlyRun/test111.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: 2.6 KB
RevLine 
[19049]1#Test Name: SquareShelfConstrainedTranHO
[13280]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/SquareShelfConstrained.py')
[13672]13md.extrude(3,1.)
[15565]14md=setflowequation(md,'HO','all')
[13280]15md.cluster=generic('name',oshostname(),'np',3)
[16363]16md.transient.requested_outputs=['IceVolume']
[21056]17md=solve(md,'Transient')
[13280]18
19#Fields and tolerances to track changes
20field_names=[\
[18068]21 'Vx1','Vy1','Vz1','Vel1','Pressure1','Bed1','Surface2','Thickness1','Temperature1','BasalforcingsGroundediceMeltingRate1','Volume1', \
22 'Vx2','Vy2','Vz2','Vel2','Pressure2','Bed2','Surface2','Thickness2','Temperature2','BasalforcingsGroundediceMeltingRate2','Volume2', \
23 'Vx3','Vy3','Vz3','Vel3','Pressure3','Bed3','Surface3','Thickness3','Temperature3','BasalforcingsGroundediceMeltingRate3','Volume3']
[13280]24field_tolerances=[\
25 1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-05,1e-13,\
[15138]26 1e-09,1e-08,1e-08,1e-08,1e-09,1e-09,1e-09,1e-09,1e-09,1e-05,2e-11,\
27 1e-09,1e-08,1e-08,1e-08,1e-09,1e-09,1e-09,1e-09,1e-09,1e-05,1e-11]
[13280]28field_values=[\
[13967]29 md.results.TransientSolution[0].Vx,\
30 md.results.TransientSolution[0].Vy,\
31 md.results.TransientSolution[0].Vz,\
32 md.results.TransientSolution[0].Vel,\
33 md.results.TransientSolution[0].Pressure,\
[17555]34 md.results.TransientSolution[0].Base,\
[13967]35 md.results.TransientSolution[0].Surface,\
36 md.results.TransientSolution[0].Thickness,\
37 md.results.TransientSolution[0].Temperature,\
[18068]38 md.results.TransientSolution[0].BasalforcingsGroundediceMeltingRate,\
[13967]39 md.results.TransientSolution[0].IceVolume,\
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,\
[17555]45 md.results.TransientSolution[1].Base,\
[13967]46 md.results.TransientSolution[1].Surface,\
47 md.results.TransientSolution[1].Thickness,\
48 md.results.TransientSolution[1].Temperature,\
[18068]49 md.results.TransientSolution[1].BasalforcingsGroundediceMeltingRate,\
[13967]50 md.results.TransientSolution[1].IceVolume,\
51 md.results.TransientSolution[2].Vx,\
52 md.results.TransientSolution[2].Vy,\
53 md.results.TransientSolution[2].Vz,\
54 md.results.TransientSolution[2].Vel,\
55 md.results.TransientSolution[2].Pressure,\
[17555]56 md.results.TransientSolution[2].Base,\
[13967]57 md.results.TransientSolution[2].Surface,\
58 md.results.TransientSolution[2].Thickness,\
59 md.results.TransientSolution[2].Temperature,\
[18068]60 md.results.TransientSolution[2].BasalforcingsGroundediceMeltingRate,\
[13967]61 md.results.TransientSolution[2].IceVolume,\
[13280]62 ]
Note: See TracBrowser for help on using the repository browser.