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