~iceshelfcavity/fluidity/basalmelt

« back to all changes in this revision

Viewing changes to tests/gravity-col-press_cg_test_cty_cv/gravity-col-press_cg_test_cty_cv.xml

  • Committer: Satoshi Kimura
  • Date: 2011-12-09 10:06:42 UTC
  • mfrom: (3564.21.132 fluidity)
  • Revision ID: skimura04@gmail.com-20111209100642-s28wu1yzbhb0pfc0
Merge the trunk to be updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8" ?>
 
2
<!DOCTYPE testproblem SYSTEM "regressiontest.dtd">
 
3
 
 
4
<testproblem>
 
5
  <name>1 material column under gravity using CG pressure with continuity tested with the CV dual</name>
 
6
  <owner userid="btollit"/>
 
7
  <tags>flml cg_press_test_cty_cv</tags>
 
8
    <problem_definition length="short" nprocs="1">
 
9
    <command_line>
 
10
fluidity gravity-col-press_cg_test_cty_cv_p0p1_2d.flml
 
11
fluidity gravity-col-press_cg_test_cty_cv_p1dgp2_2d.flml
 
12
fluidity gravity-col-press_cg_test_cty_cv_p2lumpedp1_2d.flml
 
13
fluidity gravity-col-press_cg_test_cty_cv_p2p1_2d.flml
 
14
    </command_line>
 
15
  </problem_definition>  
 
16
  <variables>  
 
17
    <variable name="pressure_p0p1_2d" language="python">
 
18
import fluidity_tools
 
19
pressure_p0p1_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p0p1_2d.stat")['Material1']['Pressure']['max'][-1]
 
20
    </variable>    
 
21
    <variable name="minpressure_p0p1_2d" language="python">
 
22
import fluidity_tools
 
23
minpressure_p0p1_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p0p1_2d.stat")['Material1']['Pressure']['min'][-1]
 
24
    </variable>    
 
25
    <variable name="velocity_p0p1_2d" language="python">
 
26
import fluidity_tools
 
27
velocity_p0p1_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p0p1_2d.stat")['Material1']['Velocity%magnitude']['max'][-1]
 
28
    </variable>    
 
29
    <variable name="pressure_p1dgp2_2d" language="python">
 
30
import fluidity_tools
 
31
pressure_p1dgp2_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p1dgp2_2d.stat")['Material1']['Pressure']['max'][-1]
 
32
    </variable>    
 
33
    <variable name="minpressure_p1dgp2_2d" language="python">
 
34
import fluidity_tools
 
35
minpressure_p1dgp2_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p1dgp2_2d.stat")['Material1']['Pressure']['min'][-1]
 
36
    </variable>    
 
37
    <variable name="velocity_p1dgp2_2d" language="python">
 
38
import fluidity_tools
 
39
velocity_p1dgp2_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p1dgp2_2d.stat")['Material1']['Velocity%magnitude']['max'][-1]
 
40
    </variable>    
 
41
    <variable name="pressure_p2lumpedp1_2d" language="python">
 
42
import fluidity_tools
 
43
pressure_p2lumpedp1_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p2lumpedp1_2d.stat")['Material1']['Pressure']['max'][-1]
 
44
    </variable>    
 
45
    <variable name="minpressure_p2lumpedp1_2d" language="python">
 
46
import fluidity_tools
 
47
minpressure_p2lumpedp1_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p2lumpedp1_2d.stat")['Material1']['Pressure']['min'][-1]
 
48
    </variable>    
 
49
    <variable name="velocity_p2lumpedp1_2d" language="python">
 
50
import fluidity_tools
 
51
velocity_p2lumpedp1_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p2lumpedp1_2d.stat")['Material1']['Velocity%magnitude']['max'][-1]
 
52
    </variable>    
 
53
    <variable name="pressure_p2p1_2d" language="python">
 
54
import fluidity_tools
 
55
pressure_p2p1_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p2p1_2d.stat")['Material1']['Pressure']['max'][-1]
 
56
    </variable>    
 
57
    <variable name="minpressure_p2p1_2d" language="python">
 
58
import fluidity_tools
 
59
minpressure_p2p1_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p2p1_2d.stat")['Material1']['Pressure']['min'][-1]
 
60
    </variable>    
 
61
    <variable name="velocity_p2p1_2d" language="python">
 
62
import fluidity_tools
 
63
velocity_p2p1_2d = fluidity_tools.stat_parser("gravity-col-press_cg_test_cty_cv_p2p1_2d.stat")['Material1']['Velocity%magnitude']['max'][-1]
 
64
    </variable>    
 
65
    <variable name = "solvers_converged" language = "python">
 
66
import os
 
67
files = os.listdir("./")
 
68
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
 
69
    </variable>
 
70
   </variables>
 
71
    <pass_tests>  
 
72
    <test name="check maximum pressure_p0p1_2d is 10.0 with tolerance 1.0e-10" language="python">
 
73
print 'max pressure error: ',abs(pressure_p0p1_2d-1e+1)
 
74
assert abs(pressure_p0p1_2d-1e+1) &lt; 1.0e-10
 
75
    </test>    
 
76
    <test name="check pressure_p0p1_2d range is 10.0 with tolerance 1.0e-10" language="python">
 
77
print 'pressure range error: ',abs(pressure_p0p1_2d-minpressure_p0p1_2d-1e+1)
 
78
assert abs(pressure_p0p1_2d-minpressure_p0p1_2d-1e+1) &lt; 1.0e-10
 
79
    </test>    
 
80
    <test name="check maximum speed_p0p1_2d is zero with tolerance 1.0e-10" language="python">
 
81
assert abs(velocity_p0p1_2d) &lt; 1.0e-10
 
82
    </test>
 
83
    <test name="check maximum pressure_p1dgp2_2d is 10.0 with tolerance 1.0e-10" language="python">
 
84
print 'max pressure error: ',abs(pressure_p1dgp2_2d-1e+1)
 
85
assert abs(pressure_p1dgp2_2d-1e+1) &lt; 1.0e-10
 
86
    </test>    
 
87
    <test name="check pressure_p1dgp2_2d range is 10.0 with tolerance 1.0e-10" language="python">
 
88
print 'pressure range error: ',abs(pressure_p1dgp2_2d-minpressure_p1dgp2_2d-1e+1)
 
89
assert abs(pressure_p1dgp2_2d-minpressure_p1dgp2_2d-1e+1) &lt; 1.0e-10
 
90
    </test>    
 
91
    <test name="check maximum speed_p1dgp2_2d is zero with tolerance 1.0e-10" language="python">
 
92
assert abs(velocity_p1dgp2_2d) &lt; 1.0e-10
 
93
    </test>
 
94
    <test name="check maximum pressure_p2lumpedp1_2d is 10.0 with tolerance 1.0e-10" language="python">
 
95
print 'max pressure error: ',abs(pressure_p2lumpedp1_2d-1e+1)
 
96
assert abs(pressure_p2lumpedp1_2d-1e+1) &lt; 1.0e-10
 
97
    </test>    
 
98
    <test name="check pressure_p2lumpedp1_2d range is 10.0 with tolerance 1.0e-10" language="python">
 
99
print 'pressure range error: ',abs(pressure_p2lumpedp1_2d-minpressure_p2lumpedp1_2d-1e+1)
 
100
assert abs(pressure_p2lumpedp1_2d-minpressure_p2lumpedp1_2d-1e+1) &lt; 1.0e-10
 
101
    </test>    
 
102
    <test name="check maximum speed_p2lumpedp1_2d is zero with tolerance 1.0e-10" language="python">
 
103
assert abs(velocity_p2lumpedp1_2d) &lt; 1.0e-10
 
104
    </test>
 
105
    <test name="check maximum pressure_p2p1_2d is 10.0 with tolerance 1.0e-10" language="python">
 
106
print 'max pressure error: ',abs(pressure_p2p1_2d-1e+1)
 
107
assert abs(pressure_p2p1_2d-1e+1) &lt; 1.0e-10
 
108
    </test>    
 
109
    <test name="check pressure_p2p1_2d range is 10.0 with tolerance 1.0e-10" language="python">
 
110
print 'pressure range error: ',abs(pressure_p2p1_2d-minpressure_p2p1_2d-1e+1)
 
111
assert abs(pressure_p2p1_2d-minpressure_p2p1_2d-1e+1) &lt; 1.0e-10
 
112
    </test>    
 
113
    <test name="check maximum speed_p2p1_2d is zero with tolerance 1.0e-10" language="python">
 
114
assert abs(velocity_p2p1_2d) &lt; 1.0e-10
 
115
    </test>
 
116
    <test name = "Solvers converged" language = "python">
 
117
assert(solvers_converged)
 
118
    </test>
 
119
  </pass_tests>
 
120
  <warn_tests>
 
121
  </warn_tests>
 
122
</testproblem>