source: issm/trunk-jpl/test/NightlyRun/test465.py@ 23793

Last change on this file since 23793 was 23793, checked in by bdef, 6 years ago

pep8 compliance of NTs

File size: 1.5 KB
Line 
1#Test Name: SquareSheetShelfAmrBamgAll
2from model import *
3from socket import gethostname
4from triangle import *
5from setmask import *
6from parameterize import *
7from setflowequation import *
8from solve import *
9
10md = triangle(model(), '../Exp/Square.exp', 150000.)
11md = setmask(md, '../Exp/SquareShelf.exp', '')
12md = parameterize(md, '../Par/SquareSheetShelf.py')
13md = setflowequation(md, 'SSA', 'all')
14md.cluster = generic('name', gethostname(), 'np', 3)
15md.transient.isstressbalance = 1
16md.transient.ismasstransport = 1
17md.transient.issmb = 0
18md.transient.isthermal = 0
19md.transient.isgroundingline = 0
20#amr bamg settings, field, grounding line and ice front
21md.amr.hmin = 20000
22md.amr.hmax = 100000
23md.amr.fieldname = 'Vel'
24md.amr.keepmetric = 0
25md.amr.gradation = 1.2
26md.amr.groundingline_resolution = 10000
27md.amr.groundingline_distance = 100000
28md.amr.icefront_resolution = 15000
29md.amr.icefront_distance = 100000
30md.amr.thicknesserror_resolution = 1000
31md.amr.thicknesserror_threshold = 0
32md.amr.deviatoricerror_resolution = 1000
33md.amr.deviatoricerror_threshold = 0
34md.transient.amr_frequency = 1
35md.timestepping.start_time = 0
36md.timestepping.final_time = 3
37md.timestepping.time_step = 1
38md = solve(md, 'Transient')
39
40#Fields and tolerances to track changes
41field_names = ['Vx', 'Vy', 'Vel', 'Pressure']
42field_tolerances = [1e-8, 1e-8, 1e-8, 1e-8]
43field_values = [md.results.TransientSolution[2].Vx,
44 md.results.TransientSolution[2].Vy,
45 md.results.TransientSolution[2].Vel,
46 md.results.TransientSolution[2].Pressure]
Note: See TracBrowser for help on using the repository browser.