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.

Setting data<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 />

Basic case<br />

Adding data to the case<br />

Additional tests<br />

The modified init specifies a location for the data and some additional parameters:<br />

c l a s s P i t z D a i l y R u n P a p e r ( P i t z D a i l y R u n B a s i c ) :<br />

2 def i n i t ( s e l f ) :<br />

s e l f . s e t P a r a m e t e r s ( v e l o c i t y R e l a t i v e T o l e r a n c e =1e −3,<br />

4 v e l o c i t y A b s o l u t e T o l e r a n c e =1e −3,<br />

r e f e r e n c e D a t a="<br />

PitzDailyPaperData" ,<br />

6 s a m p l e S e t s="experimentSample" ,<br />

r e f e r e n c e S e t="<br />

experimentReference" ,<br />

8 s a m p l e F i e l d s =["magU" ] )<br />

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

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

Saved successfully!

Ooh no, something went wrong!