[19049] | 1 | #Test Name: SquareShelfStressHOTransientIncrNonHydro
|
---|
[13580] | 2 | from model import *
|
---|
[21759] | 3 | from socket import gethostname
|
---|
[13580] | 4 | from triangle import *
|
---|
| 5 | from setmask import *
|
---|
| 6 | from parameterize import *
|
---|
| 7 | from setflowequation import *
|
---|
| 8 | from solve import *
|
---|
| 9 |
|
---|
[21759] | 10 |
|
---|
[13580] | 11 | md=triangle(model(),'../Exp/Square.exp',200000.)
|
---|
| 12 | md=setmask(md,'all','')
|
---|
| 13 | md=parameterize(md,'../Par/SquareShelf.py')
|
---|
[17590] | 14 | md.geometry.base=md.geometry.base+50.
|
---|
[13580] | 15 | md.geometry.surface=md.geometry.surface+50.
|
---|
[13672] | 16 | md.extrude(3,1.)
|
---|
[15565] | 17 | md=setflowequation(md,'HO','all')
|
---|
[21759] | 18 | md.cluster=generic('name',gethostname(),'np',3)
|
---|
[15767] | 19 | md.masstransport.hydrostatic_adjustment='Incremental'
|
---|
[21056] | 20 | md=solve(md,'Transient')
|
---|
[13580] | 21 |
|
---|
| 22 | #Fields and tolerances to track changes
|
---|
[18068] | 23 | field_names =['Vx1','Vy1','Vz1','Vel1','Pressure1','Bed1','Surface1','Thickness1','Temperature1','BasalforcingsGroundediceMeltingRate1', \
|
---|
| 24 | 'Vx2','Vy2','Vz2','Vel2','Pressure2','Bed2','Surface2','Thickness2','Temperature2','BasalforcingsGroundediceMeltingRate2', \
|
---|
| 25 | 'Vx3','Vy3','Vz3','Vel3','Pressure3','Bed3','Surface3','Thickness3','Temperature3','BasalforcingsGroundediceMeltingRate3']
|
---|
[13580] | 26 | field_tolerances=[\
|
---|
| 27 | 1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-05,\
|
---|
[15818] | 28 | 2e-09,1e-09,1e-08,1e-09,1e-09,1e-09,1e-09,1e-09,1e-09,1e-05,\
|
---|
[15647] | 29 | 1e-08,1e-08,1e-08,1e-08,1e-09,1e-09,1e-09,1e-09,1e-09,1e-05]
|
---|
[13580] | 30 | field_values=[\
|
---|
[13967] | 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,\
|
---|
[17555] | 36 | md.results.TransientSolution[0].Base,\
|
---|
[13967] | 37 | md.results.TransientSolution[0].Surface,\
|
---|
| 38 | md.results.TransientSolution[0].Thickness,\
|
---|
| 39 | md.results.TransientSolution[0].Temperature,\
|
---|
[18068] | 40 | md.results.TransientSolution[0].BasalforcingsGroundediceMeltingRate,\
|
---|
[13967] | 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,\
|
---|
[17555] | 46 | md.results.TransientSolution[1].Base,\
|
---|
[13967] | 47 | md.results.TransientSolution[1].Surface,\
|
---|
| 48 | md.results.TransientSolution[1].Thickness,\
|
---|
| 49 | md.results.TransientSolution[1].Temperature,\
|
---|
[18068] | 50 | md.results.TransientSolution[1].BasalforcingsGroundediceMeltingRate,\
|
---|
[13967] | 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,\
|
---|
[13580] | 61 | ]
|
---|