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