1 | #Test Name: SquareSheetShelfStressSSA2dNewton
|
---|
2 | from model import *
|
---|
3 | from socket import gethostname
|
---|
4 |
|
---|
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', 150000.)
|
---|
12 | md = setmask(md, '../Exp/SquareShelf.exp', '')
|
---|
13 | md = parameterize(md, '../Par/SquareSheetShelf.py')
|
---|
14 | md = setflowequation(md, 'SSA', 'all')
|
---|
15 | md.stressbalance.isnewton = 1
|
---|
16 | md.stressbalance.restol = 0.0001
|
---|
17 | md.cluster = generic('name', gethostname(), 'np', 3)
|
---|
18 | md = solve(md, 'Stressbalance')
|
---|
19 |
|
---|
20 | #Fields and tolerances to track changes
|
---|
21 | field_names = ['Vx', 'Vy', 'Vel', 'Pressure']
|
---|
22 | field_tolerances = [1e-13, 1e-13, 1e-13, 1e-13]
|
---|
23 | field_values = [md.results.StressbalanceSolution.Vx,
|
---|
24 | md.results.StressbalanceSolution.Vy,
|
---|
25 | md.results.StressbalanceSolution.Vel,
|
---|
26 | md.results.StressbalanceSolution.Pressure]
|
---|