1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE testproblem SYSTEM "regressiontest.dtd">
6
<name>mphase_inlet_velocity_bc_compressible</name>
7
<owner userid="ctj10"/>
10
<problem_definition length="medium" nprocs="1">
11
<command_line>make run</command_line>
15
<variable name="gas_velocity_max" language="python">
16
from fluidity_tools import stat_parser
17
s = stat_parser("mphase_inlet_velocity_bc_compressible.stat")
18
gas_velocity_max = s["Gas"]["Velocity%1"]["max"][-1]
20
<variable name="gas_velocity_min" language="python">
21
from fluidity_tools import stat_parser
22
s = stat_parser("mphase_inlet_velocity_bc_compressible.stat")
23
gas_velocity_min = s["Gas"]["Velocity%1"]["min"][-1]
25
<variable name="solvers_converged" language="python">
27
files = os.listdir("./")
28
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
33
<test name="Gas::Velocity is at most ~300 m/s" language="python">
34
assert(abs(gas_velocity_max) < 305)
36
<test name="Gas::Velocity is at least 75 m/s" language="python">
37
# Note: the velocity won't be 300 m/s everywhere because of the effects of changing density and pressure.
38
assert(abs(gas_velocity_min) > 75)
40
<test name="Solvers converged" language="python">
41
assert(solvers_converged)