hkmoffat / cantera

Automatically exported from code.google.com/p/cantera
0 stars 0 forks source link

samples - python - reactors - reactors2 #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run python sample "reactor2.py" or "runtest"
2. gives:
CanteraError thrown by setState_HPorUV (UV):
Input specific volume is too small or negative. v = -1.96111e+21

What is the expected output? What do you see instead?
output a csv file with correct calculations

What version of the product are you using? On what operating system?
latest svn r1437 on Ubuntu 11.10 64bit

Please provide any additional information below.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: exceptions must be old-style classes or derived from BaseException, 
not str

***********************************************************************
CanteraError thrown by setState_HPorUV (UV):
Input specific volume is too small or negative. v = -1.96111e+21
***********************************************************************

Original issue reported on code.google.com by Termope...@gmail.com on 7 May 2012 at 12:24

GoogleCodeExporter commented 9 years ago
just did "scons test" on my system:
**********************************
*** Regression Testing Summary ***
**********************************

Tests passed: 54
Tests failed: 0
Up-to-date tests skipped: 0

Original comment by Termope...@gmail.com on 7 May 2012 at 12:31

GoogleCodeExporter commented 9 years ago

Original comment by yarmond on 7 May 2012 at 2:58

GoogleCodeExporter commented 9 years ago
Any points into why this sample doesn't work? I would like to make a script 
using the same setup...

Why is there a negative volume?!?

Original comment by Termope...@gmail.com on 15 May 2012 at 10:31

GoogleCodeExporter commented 9 years ago
Actually most of the samples in the python/reactor directory doesn't work well 
for me... Most of them run fine the calculations, but fail to be exactly the 
same as the "blessed" file

In many of the blessed files there are lines along with:

"
 Adding reactor (none)
Initializing reactor network.
Reactor 0: 55 variables.
            0 sensitivity params.
Number of equations: 55
Maximum time step:        0.0222248"

when a reactor is initialised, but I don't get that output on my system...

Original comment by Termope...@gmail.com on 15 May 2012 at 1:39

GoogleCodeExporter commented 9 years ago
Those blessed files for the Python samples are not up to date. Achieving exact 
numerical consistency with the blessed files provided for those examples is not 
generally possible across different compiler versions, operating systems and 
optimization levels. This is in part why these examples are not part of the 
test suite.

Original comment by yarmond on 15 May 2012 at 2:27

GoogleCodeExporter commented 9 years ago
The issue causing the original error is fixed in r1482. In r1483, I added a 
test to the Python test suite, WallTest, that covers the same functionality as 
this sample.

Original comment by yarmond on 24 May 2012 at 4:38