1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE testproblem SYSTEM "regressiontest.dtd">
5
<name>darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel</name>
6
<owner userid="btollit"/>
8
<problem_definition length="short" nprocs="1">
10
time mpiexec -n 2 ../../bin/darcy_impes darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel_relpermupwind_2d_A.diml
12
<!-- Parallel problem for darcy flow using the IMPES solver with one region with 2 phases using Corey relative permeabilities with a TotalDarcyVelocity BC at the inlet, a strong pressure BC at outlet and the first phase saturation diagnostic. -->
15
<variable name="phase1_sat_relpermupwind_max_2d_A" language="python">
16
from fluidity_tools import stat_parser
17
s = stat_parser("darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel_relpermupwind_2d_A.stat")
18
phase1_sat_relpermupwind_max_2d_A = s["Phase1"]["Saturation"]["max"][-1]
20
<variable name="phase1_sat_relpermupwind_min_2d_A" language="python">
21
from fluidity_tools import stat_parser
22
s = stat_parser("darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel_relpermupwind_2d_A.stat")
23
phase1_sat_relpermupwind_min_2d_A = s["Phase1"]["Saturation"]["min"][-1]
25
<variable name="phase2_sat_relpermupwind_max_2d_A" language="python">
26
from fluidity_tools import stat_parser
27
s = stat_parser("darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel_relpermupwind_2d_A.stat")
28
phase2_sat_relpermupwind_max_2d_A = s["Phase2"]["Saturation"]["max"][-1]
30
<variable name="phase2_sat_relpermupwind_min_2d_A" language="python">
31
from fluidity_tools import stat_parser
32
s = stat_parser("darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel_relpermupwind_2d_A.stat")
33
phase2_sat_relpermupwind_min_2d_A = s["Phase2"]["Saturation"]["min"][-1]
35
<variable name="sum_sat_relpermupwind_max_2d_A" language="python">
36
from fluidity_tools import stat_parser
37
s = stat_parser("darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel_relpermupwind_2d_A.stat")
38
sum_sat_relpermupwind_max_2d_A = s["Phase1"]["SumSaturation"]["max"][-1]
40
<variable name="sum_sat_relpermupwind_min_2d_A" language="python">
41
from fluidity_tools import stat_parser
42
s = stat_parser("darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel_relpermupwind_2d_A.stat")
43
sum_sat_relpermupwind_min_2d_A = s["Phase1"]["SumSaturation"]["min"][-1]
45
<variable name="sum_sat_relpermupwind_integral_2d_A" language="python">
46
from fluidity_tools import stat_parser
47
s = stat_parser("darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel_relpermupwind_2d_A.stat")
48
sum_sat_relpermupwind_integral_2d_A = s["Phase1"]["SumSaturation"]["integral"][-1]
50
<variable name="phase2_sat_relpermupwind_analytic_error_max_2d_A" language="python">
51
from fluidity_tools import stat_parser as stat
52
phase2_sat_relpermupwind_analytic_error_max_2d_A = stat("darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel_relpermupwind_2d_A.stat")["Phase2"]["AnalyticSaturationError"]["max"][-1]
54
<variable name="phase2_sat_relpermupwind_analytic_error_integral_2d_A" language="python">
55
from fluidity_tools import stat_parser as stat
56
phase2_sat_relpermupwind_analytic_error_integral_2d_A = stat("darcy_impes_p1_2phase_coreyrelperm_velBCinlet_strongpressoutlet_p1satdiag_parallel_relpermupwind_2d_A.stat")["Phase2"]["AnalyticSaturationError"]["integral"][-1]
58
<variable name="solvers_converged" language="python">
60
files = os.listdir("./")
61
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
65
<test name="Solvers converged" language="python">
66
assert(solvers_converged)
68
<test name="phase 1 using relpermupwind for 2d for mesh A has max(sat) in [0.0, 1.0] with tolerance 1.0e-08" language="python">
69
assert abs(phase1_sat_relpermupwind_max_2d_A - 0.5) < (0.5 + 1.0e-08)
71
<test name="phase 1 using relpermupwind for 2d for mesh A has min(sat) in [0.0, 1.0] with tolerance 1.0e-08" language="python">
72
assert abs(phase1_sat_relpermupwind_min_2d_A - 0.5) < (0.5 + 1.0e-08)
74
<test name="phase 2 using relpermupwind for 2d for mesh A has max(sat) in [0.0, 1.0] with tolerance 1.0e-08" language="python">
75
assert abs(phase2_sat_relpermupwind_max_2d_A - 0.5) < (0.5 + 1.0e-08)
77
<test name="phase 2 using relpermupwind for 2d for mesh A has min(sat) in [0.0, 1.0] with tolerance 1.0e-08" language="python">
78
assert abs(phase2_sat_relpermupwind_min_2d_A - 0.5) < (0.5 + 1.0e-08)
80
<test name="Check sum_sat_max using relpermupwind for 2d for mesh A is 1.0 with tolerance 1.0e-08" language="python">
81
print 'difference: ',abs(sum_sat_relpermupwind_max_2d_A - 1.0)
82
assert abs(sum_sat_relpermupwind_max_2d_A - 1.0) < 1.0e-08
84
<test name="Check sum_sat_min using relpermupwind for 2d for mesh A is 1.0 with tolerance 1.0e-08" language="python">
85
print 'difference: ',abs(sum_sat_relpermupwind_min_2d_A - 1.0)
86
assert abs(sum_sat_relpermupwind_min_2d_A - 1.0) < 1.0e-08
88
<test name="Check sum_sat_integral using relpermupwind for 2d for mesh A is 1.0 with tolerance 1.0e-08" language="python">
89
print 'difference: ',abs(sum_sat_relpermupwind_integral_2d_A - 1.0)
90
assert abs(sum_sat_relpermupwind_integral_2d_A - 1.0) < 1.0e-08
92
<test name="Assert max absolute analytic error for saturation phase 2 using modrelpermupwind_satfesweby for 2d on mesh A is less than 5.1e-01" language="python">
93
assert(abs(phase2_sat_relpermupwind_analytic_error_max_2d_A) < 5.1e-01)
95
<test name="Assert integral absolute analytic error for saturation phase 2 using modrelpermupwind_satfesweby for 2d on mesh A is less than 7.4e-03" language="python">
96
assert(abs(phase2_sat_relpermupwind_analytic_error_integral_2d_A) < 7.4e-03)