source: issm/trunk-jpl/test/NightlyRun/test324.py@ 21839

Last change on this file since 21839 was 21839, checked in by Mathieu Morlighem, 8 years ago

CHG: relaxing tolerances

File size: 2.6 KB
Line 
1#Test Name: SquareSheetConstrainedTranCflSIA3d
2import numpy as np
3from model import *
4from socket import gethostname
5from triangle import *
6from setmask import *
7from parameterize import *
8from setflowequation import *
9from solve import *
10
11
12md=triangle(model(),'../Exp/Square.exp',150000.)
13md=setmask(md,'','')
14md=parameterize(md,'../Par/SquareSheetConstrained.py')
15md.extrude(5,1.2)
16md=setflowequation(md,'SIA','all')
17md.cluster=generic('name',gethostname(),'np',3)
18md.timestepping = timesteppingadaptive(md.timestepping);
19md.timestepping.time_step_max = 10000.;
20md.timestepping.final_time=16000.
21md=solve(md,'Transient')
22
23#Fields and tolerances to track changes
24field_names =['Vx1','Vy1','Vz1','Vel1','Pressure1','Bed1','Surface1','Thickness1','Temperature1','BasalforcingsGroundediceMeltingRate1',\
25 'Vx2','Vy2','Vz2','Vel2','Pressure2','Bed2','Surface2','Thickness2','Temperature2','BasalforcingsGroundediceMeltingRate2',\
26 'Vx3','Vy3','Vz3','Vel3','Pressure3','Bed3','Surface3','Thickness3','Temperature3','BasalforcingsGroundediceMeltingRate3']
27field_tolerances=[1e-13, 1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,\
28 5e-11,1e-13,5e-13,5e-11,1e-13,1e-13,5e-13,1e-13,1e-13,1e-13,\
29 1e-10, 1e-12,1e-12,1e-12,1e-13,1e-13,1e-12,1e-12,1e-13,1e-13]
30field_values=[\
31 md.results.TransientSolution[0].Vx,\
32 md.results.TransientSolution[0].Vy,\
33 md.results.TransientSolution[0].Vz,\
34 md.results.TransientSolution[0].Vel,\
35 md.results.TransientSolution[0].Pressure,\
36 md.results.TransientSolution[0].Base,\
37 md.results.TransientSolution[0].Surface,\
38 md.results.TransientSolution[0].Thickness,\
39 md.results.TransientSolution[0].Temperature,\
40 md.results.TransientSolution[0].BasalforcingsGroundediceMeltingRate,\
41 md.results.TransientSolution[1].Vx,\
42 md.results.TransientSolution[1].Vy,\
43 md.results.TransientSolution[1].Vz,\
44 md.results.TransientSolution[1].Vel,\
45 md.results.TransientSolution[1].Pressure,\
46 md.results.TransientSolution[1].Base,\
47 md.results.TransientSolution[1].Surface,\
48 md.results.TransientSolution[1].Thickness,\
49 md.results.TransientSolution[1].Temperature,\
50 md.results.TransientSolution[1].BasalforcingsGroundediceMeltingRate,\
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,\
56 md.results.TransientSolution[2].Base,\
57 md.results.TransientSolution[2].Surface,\
58 md.results.TransientSolution[2].Thickness,\
59 md.results.TransientSolution[2].Temperature,\
60 md.results.TransientSolution[2].BasalforcingsGroundediceMeltingRate,\
61 ]
Note: See TracBrowser for help on using the repository browser.