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