~fluidity-core/fluidity/excise-fldecomp

« back to all changes in this revision

Viewing changes to tests/no_normal_flow_dg/no_normal_flow_dg.xml

  • Committer: Mark Filipiak
  • Date: 2012-08-13 11:42:30 UTC
  • mfrom: (4003.1.23 dev-trunk)
  • Revision ID: mjf@staffmail.ed.ac.uk-20120813114230-wzoyf2gi4p4oxeh4
Merge in of the latest trunk.  To try to cure non-flredecomp tests that are passing at EPCC but failing in buildbot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    <command_line>fluidity no_normal_flow.flml</command_line>
7
7
  </problem_definition>
8
8
  <variables>
 
9
    <variable name="solvers_converged" language="python">
 
10
import os
 
11
files = os.listdir("./")
 
12
solvers_converged = not "matrixdump" in files and not "matrixdump.info" in files
 
13
    </variable>
9
14
    <variable name="stats" language="python">from fluidity_tools import stat_parser
10
15
s=stat_parser("No_normal_flow.stat")
11
16
stats={}
14
19
stats["UConstant"]=s["Water"]["Velocity%magnitude"]["max"][-1]-s["Water"]["Velocity%magnitude"]["min"][-1]</variable>
15
20
  </variables>
16
21
  <pass_tests>
 
22
    <test name="Solvers converged" language="python">
 
23
      assert(solvers_converged)
 
24
    </test>
17
25
    <test name="VelocityIsConstant" language="python">assert(stats["UConstant"]&lt;2.5e-3)<comment>Check that the velocity in the domain is constant. This is part of the check that no drag is introduced ad the domain edges.</comment></test>
18
26
    <test name="NoCrossStreamVelocity" language="python">assert(stats["UCrossMax"]&lt;6.e-4)<comment>Check that the velocity in the cross-stream direction is really zero. This checks that the boundaries are really leak-proof.</comment></test>
19
27
    <test name="VelocityMagnitude" language="python">assert(abs(stats["UL2"]-2.0)&lt;1.e-2)<comment>Check that the L2Norm of the velocity is correct. This is another check that there is no drag imposed.</comment></test>