1 | #Test Name: PigStressFS
|
---|
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 |
|
---|
11 | md=triangle(model(),'../Exp/Pig.exp',20000.)
|
---|
12 | md=setmask(md,'../Exp/PigShelves.exp','../Exp/PigIslands.exp')
|
---|
13 | md=parameterize(md,'../Par/Pig.py')
|
---|
14 | md.extrude(3,0.9)
|
---|
15 | md=setflowequation(md,'FS','all')
|
---|
16 | md.cluster=generic('name',gethostname(),'np',3)
|
---|
17 | md=solve(md,'Stressbalance')
|
---|
18 |
|
---|
19 | # Fields and tolerances to track changes
|
---|
20 | field_names =['Vx','Vy','Vz','Vel','Pressure']
|
---|
21 | field_tolerances=[1e-09,1e-09,1e-09,1e-09,1e-09]
|
---|
22 | field_values=[\
|
---|
23 | md.results.StressbalanceSolution.Vx,\
|
---|
24 | md.results.StressbalanceSolution.Vy,\
|
---|
25 | md.results.StressbalanceSolution.Vz,\
|
---|
26 | md.results.StressbalanceSolution.Vel,\
|
---|
27 | md.results.StressbalanceSolution.Pressure,\
|
---|
28 | ]
|
---|