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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
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 />
Typo in the test<br />
Introduction<br />
The basic test<br />
Variations <strong>of</strong> the test<br />
After rewriting a test Ignaz finds this in the summary:<br />
FAILURE : Python problem d u r i n g e x e c u t i o n o f <br />
p o s t R u n T e s t E n d P r e s s u r e E r r o r : g l o b a l name ’ t o l e a n c e ’ i s not<br />
d e f i n e d<br />
Looking further up in the log shows:<br />
1 TEST T a y l o r G r e e n B a s i c : Running the t e s t p o s t R u n T e s t E n d P r e s s u r e E r r o r<br />
P r e s s u r e e r r o r : 0.00140942870496<br />
3<br />
5<br />
Test f a i l e d : FAILURE : Python problem d u r i n g e x e c u t i o n o f <br />
p o s t R u n T e s t E n d P r e s s u r e E r r o r : g l o b a l name ’ t o l e a n c e ’ i s not<br />
d e f i n e d<br />
Traceback ( most r e c e n t c a l l l a s t ) :<br />
7 F i l e "/ U s e r s / b g s c h a i d / p r i v a t e _ p y t h o n /<strong>PyFoam</strong>/ I n f r a s t r u c t u r e /<br />
CTestRun . py " , l i n e 910 , i n runAndCatchExceptions<br />
func (∗ args , ∗ ∗ kwargs )<br />
l e " . / r u n T a y l o r G r e e n B a s i c py " , l i e 28 , i n <br />
9 F i . n<br />
p o s t R u n T e s t E n d P r e s s u r e E r r o r<br />
i f e r r o r>t o l e a n c e :<br />
11 NameError : g l o b a l name ’ t o l e a n c e ’ i s not d e f i n e d<br />
TEST T a y l o r G r e e n B a s i c : Running the t e s t p o s t R u n T e s t E n d V e l o c i t y E r r o r<br />
Bernhard F.W. Gschaider <strong>Automatic</strong> <strong>testing</strong> <strong>of</strong> <strong>solvers</strong> <strong>using</strong> <strong>PyFoam</strong> 89/164