[13679] | 1 | import numpy
|
---|
| 2 | from model import *
|
---|
| 3 | from EnumDefinitions import *
|
---|
| 4 | from MatlabFuncs import *
|
---|
| 5 | from triangle import *
|
---|
| 6 | from setmask import *
|
---|
| 7 | from parameterize import *
|
---|
| 8 | from setflowequation import *
|
---|
| 9 | from solve import *
|
---|
| 10 |
|
---|
| 11 | md=triangle(model(),'../Exp/Square.exp',180000.)
|
---|
| 12 | md=setmask(md,'../Exp/SquareShelf.exp','')
|
---|
| 13 | md=parameterize(md,'../Par/SquareSheetShelf.py')
|
---|
| 14 | md.extrude(3,1.)
|
---|
[16137] | 15 | md=setflowequation(md,'SSA','../Exp/SquareHalfRight.exp','fill','HO','coupling','penalties')
|
---|
[13679] | 16 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
| 17 | md=solve(md,TransientSolutionEnum())
|
---|
| 18 |
|
---|
| 19 | #Fields and tolerances to track changes
|
---|
| 20 | field_names =['Vx1','Vy1','Vz1','Vel1','Pressure1','Bed1','Surface1','Thickness1','Temperature1','BasalforcingsMeltingRate1', \
|
---|
| 21 | 'Vx2','Vy2','Vz2','Vel2','Pressure2','Bed2','Surface2','Thickness2','Temperature2','BasalforcingsMeltingRate2', \
|
---|
| 22 | 'Vx3','Vy3','Vz3','Vel3','Pressure3','Bed3','Surface3','Thickness3','Temperature3','BasalforcingsMeltingRate3']
|
---|
| 23 | field_tolerances=[\
|
---|
| 24 | 1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,1e-05,\
|
---|
| 25 | 1e-03,1e-03,1e-02,1e-03,1e-02,1e-04,1e-01,1e-03,1e-01,1e-01,\
|
---|
| 26 | 1e-02,1e-02,1e-01,1e-02,1e-01,1e-04,1e-04,1e-04,1e-04,1e-01]
|
---|
| 27 | field_values=[\
|
---|
[13967] | 28 | md.results.TransientSolution[0].Vx,\
|
---|
| 29 | md.results.TransientSolution[0].Vy,\
|
---|
| 30 | md.results.TransientSolution[0].Vz,\
|
---|
| 31 | md.results.TransientSolution[0].Vel,\
|
---|
| 32 | md.results.TransientSolution[0].Pressure,\
|
---|
| 33 | md.results.TransientSolution[0].Bed,\
|
---|
| 34 | md.results.TransientSolution[0].Surface,\
|
---|
| 35 | md.results.TransientSolution[0].Thickness,\
|
---|
| 36 | md.results.TransientSolution[0].Temperature,\
|
---|
| 37 | md.results.TransientSolution[0].BasalforcingsMeltingRate,\
|
---|
| 38 | md.results.TransientSolution[1].Vx,\
|
---|
| 39 | md.results.TransientSolution[1].Vy,\
|
---|
| 40 | md.results.TransientSolution[1].Vz,\
|
---|
| 41 | md.results.TransientSolution[1].Vel,\
|
---|
| 42 | md.results.TransientSolution[1].Pressure,\
|
---|
| 43 | md.results.TransientSolution[1].Bed,\
|
---|
| 44 | md.results.TransientSolution[1].Surface,\
|
---|
| 45 | md.results.TransientSolution[1].Thickness,\
|
---|
| 46 | md.results.TransientSolution[1].Temperature,\
|
---|
| 47 | md.results.TransientSolution[1].BasalforcingsMeltingRate,\
|
---|
| 48 | md.results.TransientSolution[2].Vx,\
|
---|
| 49 | md.results.TransientSolution[2].Vy,\
|
---|
| 50 | md.results.TransientSolution[2].Vz,\
|
---|
| 51 | md.results.TransientSolution[2].Vel,\
|
---|
| 52 | md.results.TransientSolution[2].Pressure,\
|
---|
| 53 | md.results.TransientSolution[2].Bed,\
|
---|
| 54 | md.results.TransientSolution[2].Surface,\
|
---|
| 55 | md.results.TransientSolution[2].Thickness,\
|
---|
| 56 | md.results.TransientSolution[2].Temperature,\
|
---|
| 57 | md.results.TransientSolution[2].BasalforcingsMeltingRate,\
|
---|
[13679] | 58 | ]
|
---|