1 | #Test Name: SquareShelfStressHOHigherOrder
|
---|
2 | from model import *
|
---|
3 | from triangle import *
|
---|
4 | from setmask import *
|
---|
5 | from parameterize import *
|
---|
6 | from setflowequation import *
|
---|
7 | from EnumDefinitions import *
|
---|
8 | from solve import *
|
---|
9 | from MatlabFuncs import *
|
---|
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(3,2.)
|
---|
16 | md=setflowequation(md,'HO','all');
|
---|
17 | md.cluster=generic('name',oshostname(),'np',3);
|
---|
18 |
|
---|
19 | field_names=[]
|
---|
20 | field_tolerances=[]
|
---|
21 | field_values=[]
|
---|
22 | for i in ['P1bubble','P1bubblecondensed','P1xP2','P2xP1','P2','P1xP3','P2xP4']:
|
---|
23 | md.flowequation.fe_HO=i
|
---|
24 | md=solve(md,'StressbalanceSolution')
|
---|
25 | field_names =field_names+['Vx'+i,'Vy'+i,'Vz'+i,'Vel'+i,'Pressure'+i]
|
---|
26 | field_tolerances=field_tolerances+[6.5e-08,5e-08,2e-08,5e-08,1e-13]
|
---|
27 | field_values=field_values+[\
|
---|
28 | md.results.StressbalanceSolution.Vx,\
|
---|
29 | md.results.StressbalanceSolution.Vy,\
|
---|
30 | md.results.StressbalanceSolution.Vz,\
|
---|
31 | md.results.StressbalanceSolution.Vel,\
|
---|
32 | md.results.StressbalanceSolution.Pressure,\
|
---|
33 | ]
|
---|