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