1 | #Test Name: SquareSheetShelfStressHONewton
|
---|
2 | import numpy
|
---|
3 | from model 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(5,1.)
|
---|
15 | md=setflowequation(md,'HO','all')
|
---|
16 | md.stressbalance.isnewton=1
|
---|
17 | md.stressbalance.restol=0.0001
|
---|
18 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
19 | md=solve(md,'Stressbalance')
|
---|
20 |
|
---|
21 | #Fields and tolerances to track changes
|
---|
22 | field_names =['Vx','Vy','Vz','Vel','Pressure']
|
---|
23 | field_tolerances=[2e-06,2e-06,1e-06,2e-06,1e-06]
|
---|
24 | field_values=[\
|
---|
25 | md.results.StressbalanceSolution.Vx,\
|
---|
26 | md.results.StressbalanceSolution.Vy,\
|
---|
27 | md.results.StressbalanceSolution.Vz,\
|
---|
28 | md.results.StressbalanceSolution.Vel,\
|
---|
29 | md.results.StressbalanceSolution.Pressure,\
|
---|
30 | ]
|
---|