~f-milthaler/fluidity/fsi-model-stationary-solid-with-velocity

« back to all changes in this revision

Viewing changes to tests/mphase_inlet_velocity_bc_compressible/mphase_inlet_velocity_bc_compressible.xml

  • Committer: f.milthaler10 at uk
  • Date: 2013-11-06 13:43:56 UTC
  • mfrom: (3463.184.85 fluidity)
  • Revision ID: f.milthaler10@imperial.ac.ic.uk.-20131106134356-v3lw1dheesckywj0
mergeĀ fromĀ trunk

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
   
 
6
  <name>mphase_inlet_velocity_bc_compressible</name>
 
7
  <owner userid="ctj10"/>
 
8
  <tags>flml</tags>
 
9
  
 
10
  <problem_definition length="medium" nprocs="1">
 
11
    <command_line>make run</command_line>
 
12
  </problem_definition>
 
13
  
 
14
  <variables>  
 
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]
 
19
    </variable>
 
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]
 
24
    </variable>
 
25
    <variable name="solvers_converged" language="python">
 
26
import os
 
27
files = os.listdir("./")
 
28
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
 
29
    </variable>
 
30
  </variables>
 
31
    
 
32
  <pass_tests>
 
33
    <test name="Gas::Velocity is at most ~300 m/s" language="python">
 
34
assert(abs(gas_velocity_max) &lt; 305)
 
35
    </test>
 
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) &gt; 75)
 
39
    </test>
 
40
    <test name="Solvers converged" language="python">
 
41
assert(solvers_converged)
 
42
    </test>
 
43
  </pass_tests>
 
44
  
 
45
  <warn_tests>
 
46
  </warn_tests>
 
47
  
 
48
</testproblem>