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.

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

More processors<br />

Introduction<br />

The basic test<br />

Variations <strong>of</strong> the test<br />

Ignaz checks whether this huge simulation gives the same results on 2 CPUs<br />

1 #! / u s r / b i n / env python<br />

3 from r u n T a y l o r G r e e n B a s i c import T a y l o r G r e e n B a s i c<br />

5 c l a s s TaylorGreen2Cpu ( T a y l o r G r e e n B a s i c ) :<br />

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

7 s e l f . s e t P a r a m e t e r s ( p a r a l l e l=True ,<br />

nrCpus =2,<br />

9 d o R e c o n s t r u c t=F a l s e )<br />

11 i f __name__==’__main__’ :<br />

TaylorGreen2Cpu ( ) . run ( )<br />

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

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

Saved successfully!

Ooh no, something went wrong!