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.
The runInfo<br />
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 />
Introduction<br />
The basic test<br />
Variations <strong>of</strong> the test<br />
• The solver is run <strong>using</strong> the Runner-class in <strong>PyFoam</strong><br />
• Data is collected from the output (the same that is usually<br />
plotted)<br />
• Predefined values like residuals, Iterations etc<br />
• User defined data in the customRegexp<br />
• The last values <strong>of</strong> all this data are accessible through the<br />
runInfo()-method<br />
• As a Python-dictionary<br />
• Contents can be printed <strong>using</strong> the --print-run-info-option<br />
• The data is written to disc and can be read <strong>using</strong> the<br />
--read-run-info-option<br />
Bernhard F.W. Gschaider <strong>Automatic</strong> <strong>testing</strong> <strong>of</strong> <strong>solvers</strong> <strong>using</strong> <strong>PyFoam</strong> 81/164