|
[Sponsors] |
October 19, 2010, 12:42 |
CANTERA code to get pure species mass fluxes
|
#1 |
New Member
Gemma Febrer Al.les
Join Date: Oct 2010
Posts: 1
Rep Power: 0 |
Hi everybody,
I am a new user of the open-source Cantera code, and I am using the code with the Phyton interface. My aim is to simulate a 1D freely propagating premixed flame. At the moment I am struggling to obtain the pure species mass fluxes. I know there is a function called "getSpeciesFluxes", which inherits from Cantera.Transport class. I want to get the fluxes from a solution instance, which is defined as an ideal gas mixture (using the IdealGasMixture() constructor). Besides, my transport model is a mixture-averaged model. In my code I am writing: spFlux = gas.speciesFluxes(1,gradT,46,gradX,46) where gas is the gas mixture instance, and 46 is the number of species of the chemical scheme. And the error I obtain is: ================================================== ==== Traceback (most recent call last): File "C:\Documents and Settings\ttgf\Desktop\Cantera_related\python_gemma \flame_gemma_bis.py", line 249, in -toplevel- spFlux = gas.speciesFluxes(1,gradT,46,gradX,46) AttributeError: Solution instance has no attribute 'speciesFluxes' ================================================== ==== Can anyone give me a clue about what is happening? I can obtain other transport properties, such as mixDiffCoeffs(), thermalDiffCoeffs(),... but not for species mass fluxes. Thanks in advance Gemma |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
How to calculate the mass fraction of species in Fluent? | llrr | FLUENT | 0 | May 21, 2010 05:41 |
PB: Saving mass fraction of species on two points with an udf | biget.a | FLUENT | 2 | July 23, 2009 04:06 |
Pressure outflow w/ species; mass frac. required? | Myth | FLUENT | 2 | September 30, 2006 00:08 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 16:56 |