CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

CANTERA code to get pure species mass fluxes

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 19, 2010, 11:42
Unhappy CANTERA code to get pure species mass fluxes
  #1
New Member
 
Gemma Febrer Al.les
Join Date: Oct 2010
Posts: 1
Rep Power: 0
gemmafebrer is on a distinguished road
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
gemmafebrer is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate the mass fraction of species in Fluent? llrr FLUENT 0 May 21, 2010 04:41
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
PB: Saving mass fraction of species on two points with an udf biget.a FLUENT 2 July 23, 2009 03:06
Pressure outflow w/ species; mass frac. required? Myth FLUENT 2 September 29, 2006 23:08
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56


All times are GMT -4. The time now is 00:50.