Automatic testing of solvers using PyFoam - If your ... - OpenFOAMWiki
Automatic testing of solvers using PyFoam - If your ... - OpenFOAMWiki
Automatic testing of solvers using PyFoam - If your ... - OpenFOAMWiki
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Introduction<br />
The tools: pyFoam in 3 minutes<br />
The tools: swak4Foam - 3 more minutes<br />
Case study: Taylor-Green vortex<br />
Case study: Pitz-Daily<br />
CTest<br />
Conclusion<br />
Basic case<br />
Adding data to the case<br />
Additional tests<br />
Testing for the correct difference<br />
Write a test-method to use the data:<br />
1 def p o s t R u n T e s t P r e s s u r e D i f f e r e n c e ( s e l f ) :<br />
s e l f . i s E q u a l (<br />
3 v a l u e=s e l f . r u n I n f o ( ) [ "analyzed" ] [ "<br />
deltaP" ] [ "avg" ] ,<br />
t a r g e t = −5.17507 , # a c c o r d i n g to the <br />
2.1− s o l v e r<br />
5 t o l e r a n c e =0.1 ,<br />
message="Pressure␣difference␣between␣<br />
inlet␣and␣outlet" )<br />
Bernhard F.W. Gschaider <strong>Automatic</strong> <strong>testing</strong> <strong>of</strong> <strong>solvers</strong> <strong>using</strong> <strong>PyFoam</strong> 130/164