[19105] | 1 | #Test Name: PigSteaFS
|
---|
[13662] | 2 | from model import *
|
---|
[21729] | 3 | from socket import gethostname
|
---|
[13662] | 4 | from triangle import *
|
---|
| 5 | from setmask import *
|
---|
| 6 | from parameterize import *
|
---|
| 7 | from setflowequation import *
|
---|
| 8 | from solve import *
|
---|
| 9 |
|
---|
[21729] | 10 |
|
---|
[24313] | 11 | md = triangle(model(), '../Exp/Pig.exp', 20000.)
|
---|
| 12 | md = setmask(md, '../Exp/PigShelves.exp', '../Exp/PigIslands.exp')
|
---|
| 13 | md = parameterize(md, '../Par/Pig.py')
|
---|
| 14 | md.extrude(2, 1.)
|
---|
| 15 | md = setflowequation(md, 'FS', 'all')
|
---|
| 16 | md.cluster = generic('name', gethostname(), 'np', 3)
|
---|
| 17 | md.timestepping.time_step = 0.
|
---|
| 18 | md = solve(md, 'Steadystate')
|
---|
[13662] | 19 |
|
---|
| 20 | # Fields and tolerances to track changes
|
---|
[24313] | 21 | field_names = ['Vx', 'Vy', 'Vz', 'Vel', 'Pressure', 'Temperature', 'BasalforcingsGroundediceMeltingRate']
|
---|
| 22 | field_tolerances = [1e-08, 1e-08, 1e-08, 1e-08, 1e-08, 1e-08, 1e-06]
|
---|
| 23 | field_values = [md.results.SteadystateSolution.Vx,
|
---|
| 24 | md.results.SteadystateSolution.Vy,
|
---|
| 25 | md.results.SteadystateSolution.Vz,
|
---|
| 26 | md.results.SteadystateSolution.Vel,
|
---|
| 27 | md.results.SteadystateSolution.Pressure,
|
---|
| 28 | md.results.SteadystateSolution.Temperature,
|
---|
| 29 | md.results.SteadystateSolution.BasalforcingsGroundediceMeltingRate]
|
---|