1
<?xml version='1.0' encoding='utf-8'?>
3
<name>viscous_fs_simpletopbottom</name>
4
<owner userid="cwilson"/>
6
<problem_definition length="medium" nprocs="1">
7
<command_line>fluidity -v2 -l viscous_fs_simpletopbottom_E.flml; fluidity -v2 -l viscous_fs_simpletopbottom_F.flml; fluidity -v2 -l viscous_fs_simpletopbottom_G.flml; fluidity -v2 -l viscous_fs_simpletopbottom_H.flml; fluidity -v2 -l viscous_fs_simpletopbottom_I.flml</command_line>
10
<variable name="finish_time_e" language="python">from fluidity_tools import stat_parser as stat
12
file1 = "viscous_fs_simpletopbottom_E.stat"
14
finish_time_e = stat(file1)["ElapsedTime"]["value"][-1]</variable>
15
<variable name="ef_convergence_fs" language="python">import calculate_order_simpletopbottom as calculate_order
17
file1 = "viscous_fs_simpletopbottom_E.stat"
18
file2 = "viscous_fs_simpletopbottom_F.stat"
20
ef_convergence_fs = calculate_order.report_convergence(file1, file2)</variable>
21
<variable name="finish_time_f" language="python">from fluidity_tools import stat_parser as stat
23
file1 = "viscous_fs_simpletopbottom_F.stat"
25
finish_time_f = stat(file1)["ElapsedTime"]["value"][-1]</variable>
26
<variable name="fg_convergence_fs" language="python">import calculate_order_simpletopbottom as calculate_order
28
file1 = "viscous_fs_simpletopbottom_F.stat"
29
file2 = "viscous_fs_simpletopbottom_G.stat"
31
fg_convergence_fs = calculate_order.report_convergence(file1, file2)</variable>
32
<variable name="finish_time_g" language="python">from fluidity_tools import stat_parser as stat
34
file1 = "viscous_fs_simpletopbottom_G.stat"
36
finish_time_g = stat(file1)["ElapsedTime"]["value"][-1]</variable>
37
<variable name="gh_convergence_fs" language="python">import calculate_order_simpletopbottom as calculate_order
39
file1 = "viscous_fs_simpletopbottom_G.stat"
40
file2 = "viscous_fs_simpletopbottom_H.stat"
42
gh_convergence_fs = calculate_order.report_convergence(file1, file2)</variable>
43
<variable name="finish_time_h" language="python">from fluidity_tools import stat_parser as stat
45
file1 = "viscous_fs_simpletopbottom_H.stat"
47
finish_time_h = stat(file1)["ElapsedTime"]["value"][-1]</variable>
48
<variable name="hi_convergence_fs" language="python">import calculate_order_simpletopbottom as calculate_order
50
file1 = "viscous_fs_simpletopbottom_H.stat"
51
file2 = "viscous_fs_simpletopbottom_I.stat"
53
hi_convergence_fs = calculate_order.report_convergence(file1, file2)</variable>
54
<variable name="finish_time_i" language="python">from fluidity_tools import stat_parser as stat
56
file1 = "viscous_fs_simpletopbottom_I.stat"
58
finish_time_i = stat(file1)["ElapsedTime"]["value"][-1]</variable>
61
<test name="efinish" language="python">assert(abs(finish_time_e-4.0)<2.0)</test>
62
<test name="ffinish" language="python">assert(abs(finish_time_f-4.0)<1.0)</test>
63
<test name="gfinish" language="python">assert(abs(finish_time_g-4.0)<0.5)</test>
64
<test name="hfinish" language="python">assert(abs(finish_time_h-4.0)<0.25)</test>
65
<test name="ifinish" language="python">assert(abs(finish_time_i-4.0)<0.125)</test>
66
<test name="eftop" language="python">assert(ef_convergence_fs[0]>1.6)</test>
67
<test name="fgtop" language="python">assert(fg_convergence_fs[0]>1.9)</test>
68
<test name="ghtop" language="python">assert(gh_convergence_fs[0]>2.0)</test>
69
<test name="hitop" language="python">assert(hi_convergence_fs[0]>1.8)</test>
70
<test name="efbot" language="python">assert(ef_convergence_fs[1]>1.6)</test>
71
<test name="fgbot" language="python">assert(fg_convergence_fs[1]>1.9)</test>
72
<test name="ghbot" language="python">assert(gh_convergence_fs[1]>2.0)</test>
73
<test name="hibot" language="python">assert(hi_convergence_fs[1]>1.8)</test>