1
<?xml version="1.0" encoding="UTF-8" ?>
4
<name>tracer_inflow_2d_dg_cg</name>
7
<problem_definition length="short" nprocs="1">
8
<command_line>fluidity tracer.flml </command_line>
9
<!-- Two dimensional problem in which a pulse of tracer us introduced via a dirichlet boundary condition on the tracer. The tracer then flows out of the domain. This version tests the DG code path on a continuous velocity space.-->
12
<variable name="solvers_converged" language="python">
14
files = os.listdir("./")
15
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
17
<variable name="tracer_integral_max" language="python">
18
from fluidity_tools import stat_parser
19
s = stat_parser("tracer.stat")
20
tracer_integral_max = max(s["Water"]["Tracer"]["integral"])
22
<variable name="tracer_integral_final" language="python">
23
from fluidity_tools import stat_parser
24
s = stat_parser("tracer.stat")
25
tracer_integral_final = s["Water"]["Tracer"]["integral"][-1]
29
<test name="Solvers converged" language="python">
30
assert(solvers_converged)
32
<test name="maximum tracer integral is 20/pi" language="python">
34
assert abs(tracer_integral_max - 20/pi) < 1.5e-2
36
<test name="final tracer integral is 0" language="python">
37
assert abs(tracer_integral_final) < 1.0e-2