[19049] | 1 | #Test Name: SquareSheetShelfStressSSA2dNewton
|
---|
[13681] | 2 | from model import *
|
---|
[21408] | 3 | from socket import gethostname
|
---|
| 4 |
|
---|
[13681] | 5 | from triangle import *
|
---|
| 6 | from setmask import *
|
---|
| 7 | from parameterize import *
|
---|
| 8 | from setflowequation import *
|
---|
| 9 | from solve import *
|
---|
| 10 |
|
---|
[23793] | 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')
|
---|
[13681] | 19 |
|
---|
| 20 | #Fields and tolerances to track changes
|
---|
[23793] | 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]
|
---|