1 | #Test Name: SquareShelfStressFS
|
---|
2 | from MatlabFuncs import *
|
---|
3 | from model import *
|
---|
4 | from numpy import *
|
---|
5 | from triangle import *
|
---|
6 | from setmask import *
|
---|
7 | from parameterize import *
|
---|
8 | from setflowequation import *
|
---|
9 | from solve import *
|
---|
10 | from generic import generic
|
---|
11 |
|
---|
12 | md=triangle(model(),'../Exp/Square.exp',180000)
|
---|
13 | md=setmask(md,'all','')
|
---|
14 | md=parameterize(md,'../Par/SquareShelf.py')
|
---|
15 | md.extrude(3,2.)
|
---|
16 | md=setflowequation(md,'FS','all')
|
---|
17 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
18 | md.stressbalance.shelf_dampening=1;
|
---|
19 | md.timestepping.time_step=0;
|
---|
20 | md1=solve(md,'Stressbalance')
|
---|
21 | md.stressbalance.shelf_dampening=0;
|
---|
22 | md=solve(md,'Stressbalance')
|
---|
23 |
|
---|
24 |
|
---|
25 | # Fields and tolerances to track changes
|
---|
26 |
|
---|
27 | field_names =['Vx','Vy','Vz','Vel','Pressure']
|
---|
28 | field_tolerances=[1e-08,1e-08,2e-06,1e-08,1e-08]
|
---|
29 | field_values=[\
|
---|
30 | md.results.StressbalanceSolution.Vx,\
|
---|
31 | md.results.StressbalanceSolution.Vy,\
|
---|
32 | md.results.StressbalanceSolution.Vz,\
|
---|
33 | md.results.StressbalanceSolution.Vel,\
|
---|
34 | md.results.StressbalanceSolution.Pressure,\
|
---|
35 | ]
|
---|