18.01.2015 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Running<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 />

What is <strong>PyFoam</strong><br />

<strong>PyFoam</strong> Utilities<br />

Python<br />

• Straight running <strong>of</strong> a solver<br />

1 > pyFoamRunner . py interFoam<br />

• Clear the case beforehand and only show the time<br />

1 > pyFoamRunner . py −−c l e a r −−p r o g r e s s interFoam<br />

• Show plots while simulating<br />

1 > pyFoamPlotRunner . py −−c l e a r −−p r o g r e s s interFoam<br />

• Change controlDict to write all time-steps (afterwards change it back)<br />

1 > pyFoamRunner . py −−w r i t e −a l l interFoam<br />

• Run a different OpenFOAM-Version than the default-one<br />

1 > pyFoamRunner . py −−foam=1.9− beta interFoam<br />

• Run the debug-version <strong>of</strong> the current version<br />

1 > pyFoamRunner . py −−c u r r e n t −−f o r c e −debug interFoam<br />

Bernhard F.W. Gschaider <strong>Automatic</strong> <strong>testing</strong> <strong>of</strong> <strong>solvers</strong> <strong>using</strong> <strong>PyFoam</strong> 23/164

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!