| 1 | #Test Name: SquareShelfStressFSP4z
|
|---|
| 2 | from model import *
|
|---|
| 3 | from triangle import *
|
|---|
| 4 | from setmask import *
|
|---|
| 5 | from parameterize import *
|
|---|
| 6 | from setflowequation import *
|
|---|
| 7 | from solve import *
|
|---|
| 8 | from MatlabFuncs import *
|
|---|
| 9 | from ContourToMesh import *
|
|---|
| 10 |
|
|---|
| 11 | md=triangle(model(),'../Exp/Square.exp',150000.)
|
|---|
| 12 | md=setmask(md,'all','')
|
|---|
| 13 | md=parameterize(md,'../Par/SquareShelf.py')
|
|---|
| 14 | md.extrude(2,1.)
|
|---|
| 15 | md=setflowequation(md,'FS','all')
|
|---|
| 16 | md.flowequation.fe_FS='OneLayerP4z'
|
|---|
| 17 | md.cluster=generic('name',oshostname(),'np',1)
|
|---|
| 18 | md=solve(md,'Stressbalance')
|
|---|
| 19 |
|
|---|
| 20 | #Fields and tolerances to track changes
|
|---|
| 21 | field_names =['Vx', 'Vy', 'Vz', 'Vel','Pressure'];
|
|---|
| 22 | field_tolerances=[5e-5,5e-5,8e-5,5e-5,1e-7]
|
|---|
| 23 | field_values=[\
|
|---|
| 24 | md.results.StressbalanceSolution.Vx,\
|
|---|
| 25 | md.results.StressbalanceSolution.Vy,\
|
|---|
| 26 | md.results.StressbalanceSolution.Vz,\
|
|---|
| 27 | md.results.StressbalanceSolution.Vel,\
|
|---|
| 28 | md.results.StressbalanceSolution.Pressure,\
|
|---|
| 29 | ];
|
|---|