dbirch997 / cantera

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

Calculare pure species mass fluxes #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I want to calculate the pure species mass fluxes using the function 
getSpeciesFluxes(...), as gas.speciesFluxes(...), where "gas" is the instance, 
created with IdealGasMix().
2.In my header I write "from Cantera.Tranport import *" 

What is the expected output? What do you see instead?
For the mixed-averaged transport model activated in my main program I would 
expect the pure species fluxes to be available to calculate, because 
the instance "gas",  ( which is a solution instance, which inherits from 
Transport class) should have the attribute called "speciesFluxes". But instead 
it says that that instance has no attribute called "speciesFluxes".

What version of the product are you using? On what operating system?
I am using version 1.7 in Windows, with a python interface

Please provide any additional information below.
I've checked "Transport.py" in the the directory 
"C:\Python-2.4\Lib\site-packages\Cantera", and as expected, getSpeciesFluxes() 
function is not defined (although it is defined in the .cpp files and .h 
files). And obviously, the other functions defined there work well in my main 
python program. I've tried to add the definition of the function I want as "def 
speciesFluxes(...) ... return() ", but then the problem is that what I am 
returning, "_cantera.tran_speciesFluxes(...)", should be defined in the module 
"_cantera", which is imported at the header of Transport.py, but I can't find 
it! 

Original issue reported on code.google.com by gemmafeb...@gmail.com on 21 Oct 2010 at 10:41

GoogleCodeExporter commented 9 years ago

Original comment by yarmond on 28 May 2011 at 1:13

GoogleCodeExporter commented 9 years ago
Fixed in r837.

Original comment by yarmond on 14 Dec 2011 at 2:10