~fluidity-core/fluidity/refactor-netcdf

« back to all changes in this revision

Viewing changes to tests/driven_cavity_2d/driven_cavity_2d.xml

  • Committer: Jon Hill
  • Date: 2013-02-16 09:01:40 UTC
  • mfrom: (3981.7.159 fluidity)
  • Revision ID: jon.hill@imperial.ac.uk-20130216090140-bplzxqzdk1eik4za
Megre from trunk, fixing several conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import vtktools
19
19
import math
20
20
 
21
 
u=vtktools.vtu("driven_cavity_2d_6.vtu")
 
21
u=vtktools.vtu("driven_cavity_2d_12.vtu")
22
22
pts=vtktools.arr([[0.5, 0.000, 0.000, 0.0000],
23
23
[0.5, 0.000, 0.000,  0.0000],
24
24
[0.5, 0.020, 0.000, -0.0757],
62
62
import vtktools
63
63
import math
64
64
 
65
 
u=vtktools.vtu("driven_cavity_2d_6.vtu")
 
65
u=vtktools.vtu("driven_cavity_2d_12.vtu")
66
66
pts=vtktools.arr([
67
67
[0.000, 0.5, 0.0,  0.0000],
68
68
[0.015, 0.5, 0.0,  0.1019],
106
106
import vtktools
107
107
import math
108
108
 
109
 
u=vtktools.vtu("driven_cavity_2d_6.vtu")
 
109
u=vtktools.vtu("driven_cavity_2d_12.vtu")
110
110
pts=vtktools.arr([
111
111
[0.5, 0.0000, 0.0,  0.0000000],
112
112
[0.5, 0.0547, 0.0, -0.1812881],
148
148
import vtktools
149
149
import math
150
150
 
151
 
u=vtktools.vtu("driven_cavity_2d_6.vtu")
 
151
u=vtktools.vtu("driven_cavity_2d_12.vtu")
152
152
pts=vtktools.arr([
153
153
[1.0000, 0.5, 0.0,  0.0000000],
154
154
[0.9688, 0.5, 0.0, -0.2279225],
185
185
import vtktools
186
186
import math
187
187
 
188
 
u=vtktools.vtu("driven_cavity_2d_6.vtu")
 
188
u=vtktools.vtu("driven_cavity_2d_12.vtu")
189
189
pts=vtktools.arr([
190
190
[0.5, 0.0000, 0.0,  0.110591],
191
191
[0.5, 0.0547, 0.0,  0.109689],
227
227
import vtktools
228
228
import math
229
229
 
230
 
u=vtktools.vtu("driven_cavity_2d_6.vtu")
 
230
u=vtktools.vtu("driven_cavity_2d_12.vtu")
231
231
pts=vtktools.arr([
232
232
[1.0000, 0.5, 0.0,  0.077455],
233
233
[0.9688, 0.5, 0.0,  0.078837],
275
275
    </variable>   
276
276
    <variable name="streamfunction_min_error" language="python">
277
277
import fluidity_tools
278
 
streamfunction_min = fluidity_tools.stat_parser("driven_cavity_2d.stat")['Fluid']['StreamFunction']['min'][-1]
 
278
streamfunction_min = fluidity_tools.stat_parser("driven_cavity_2d.stat")['Fluid']['MultiplyConnectedStreamFunction']['min'][-1]
279
279
streamfunction_min_error = abs( streamfunction_min - -0.118942 )
280
280
print streamfunction_min,streamfunction_min_error
281
281
    </variable>   
296
296
    <test name="L2 norm of v velocity along centre line (cf. Botella)" language="python">
297
297
assert botella_v_norm &lt; 0.0045
298
298
    </test>
299
 
    <test name="L2 norm of p velocity along centre line (cf. Botella)" language="python">
 
299
    <test name="L2 norm of p along centre line (cf. Botella)" language="python">
300
300
assert botella_p_norm1 &lt; 0.0025
301
301
    </test>    
302
 
    <test name="L2 norm of p velocity along centre line (cf. Botella)" language="python">
 
302
    <test name="L2 norm of p along centre line (cf. Botella)" language="python">
303
303
assert botella_p_norm2 &lt; 0.0025
304
304
    </test>    
305
305
    <test name="Difference in KE (cf. Botella)" language="python">