[19105] | 1 | #Test Name: SquareSheetShelfTranMHOPenalties
|
---|
[13679] | 2 | import numpy
|
---|
| 3 | from model import *
|
---|
| 4 | from EnumDefinitions import *
|
---|
| 5 | from MatlabFuncs import *
|
---|
| 6 | from triangle import *
|
---|
| 7 | from setmask import *
|
---|
| 8 | from parameterize import *
|
---|
| 9 | from setflowequation import *
|
---|
| 10 | from solve import *
|
---|
| 11 |
|
---|
| 12 | md=triangle(model(),'../Exp/Square.exp',180000.)
|
---|
| 13 | md=setmask(md,'../Exp/SquareShelf.exp','')
|
---|
| 14 | md=parameterize(md,'../Par/SquareSheetShelf.py')
|
---|
| 15 | md.extrude(3,1.)
|
---|
[16137] | 16 | md=setflowequation(md,'SSA','../Exp/SquareHalfRight.exp','fill','HO','coupling','penalties')
|
---|
[13679] | 17 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
[20500] | 18 | md.transient.requested_outputs=['default','GroundedArea'];
|
---|
[13679] | 19 | md=solve(md,TransientSolutionEnum())
|
---|
| 20 |
|
---|
| 21 | #Fields and tolerances to track changes
|
---|
[20500] | 22 | field_names =['Vx1','Vy1','Vz1','Vel1','Pressure1','Bed1','Surface1','Thickness1','Temperature1','BasalforcingsGroundediceMeltingRate1','GroundedArea1', \
|
---|
| 23 | 'Vx2','Vy2','Vz2','Vel2','Pressure2','Bed2','Surface2','Thickness2','Temperature2','BasalforcingsGroundediceMeltingRate2','GroundedArea2', \
|
---|
| 24 | 'Vx3','Vy3','Vz3','Vel3','Pressure3','Bed3','Surface3','Thickness3','Temperature3','BasalforcingsGroundediceMeltingRate3','GroundedArea3']
|
---|
[13679] | 25 | field_tolerances=[\
|
---|
[20500] | 26 | 1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-6,\
|
---|
| 27 | 1e-03,1e-03,1e-02,1e-03,1e-02,1e-04,1e-01,1e-03,1e-01,1e-01,1e-6,\
|
---|
| 28 | 1e-02,1e-02,1e-01,1e-02,1e-01,1e-04,1e-04,1e-04,1e-04,1e-01,1e-6]
|
---|
[13679] | 29 | field_values=[\
|
---|
[13967] | 30 | md.results.TransientSolution[0].Vx,\
|
---|
| 31 | md.results.TransientSolution[0].Vy,\
|
---|
| 32 | md.results.TransientSolution[0].Vz,\
|
---|
| 33 | md.results.TransientSolution[0].Vel,\
|
---|
| 34 | md.results.TransientSolution[0].Pressure,\
|
---|
[17806] | 35 | md.results.TransientSolution[0].Base,\
|
---|
[13967] | 36 | md.results.TransientSolution[0].Surface,\
|
---|
| 37 | md.results.TransientSolution[0].Thickness,\
|
---|
| 38 | md.results.TransientSolution[0].Temperature,\
|
---|
[18301] | 39 | md.results.TransientSolution[0].BasalforcingsGroundediceMeltingRate,\
|
---|
[20500] | 40 | md.results.TransientSolution[0].GroundedArea,\
|
---|
[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,\
|
---|
[17806] | 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,\
|
---|
[18301] | 50 | md.results.TransientSolution[1].BasalforcingsGroundediceMeltingRate,\
|
---|
[20500] | 51 | md.results.TransientSolution[1].GroundedArea,\
|
---|
[13967] | 52 | md.results.TransientSolution[2].Vx,\
|
---|
| 53 | md.results.TransientSolution[2].Vy,\
|
---|
| 54 | md.results.TransientSolution[2].Vz,\
|
---|
| 55 | md.results.TransientSolution[2].Vel,\
|
---|
| 56 | md.results.TransientSolution[2].Pressure,\
|
---|
[17806] | 57 | md.results.TransientSolution[2].Base,\
|
---|
[13967] | 58 | md.results.TransientSolution[2].Surface,\
|
---|
| 59 | md.results.TransientSolution[2].Thickness,\
|
---|
| 60 | md.results.TransientSolution[2].Temperature,\
|
---|
[18301] | 61 | md.results.TransientSolution[2].BasalforcingsGroundediceMeltingRate,\
|
---|
[20500] | 62 | md.results.TransientSolution[2].GroundedArea,\
|
---|
[13679] | 63 | ]
|
---|