-
Notifications
You must be signed in to change notification settings - Fork 4
/
test104.py
26 lines (23 loc) · 917 Bytes
/
test104.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#Test Name: SquareShelfConstrainedStressFS
from model import *
from socket import gethostname
from triangle import *
from setmask import *
from parameterize import *
from setflowequation import *
from solve import *
md = triangle(model(), '../Exp/Square.exp', 180000)
md = setmask(md, 'all', '')
md = parameterize(md, '../Par/SquareShelfConstrained.py')
md.extrude(3, 2.)
md = setflowequation(md, 'FS', 'all')
md.cluster = generic('name', gethostname(), 'np', 3)
md = solve(md, 'Stressbalance')
#Fields and tolerances to track changes
field_names = ['Vx', 'Vy', 'Vz', 'Vel', 'Pressure']
field_tolerances = [1e-08, 1e-08, 6e-06, 1e-08, 1e-08]
field_values = [md.results.StressbalanceSolution.Vx,
md.results.StressbalanceSolution.Vy,
md.results.StressbalanceSolution.Vz,
md.results.StressbalanceSolution.Vel,
md.results.StressbalanceSolution.Pressure]