CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Look for mass fraction (http://www.cfd-online.com/Forums/openfoam/85698-look-mass-fraction.html)

Argen March 4, 2011 14:55

Look for mass fraction
 
Hi,

In OpenFOAM, it is shown
"00056 inline Foam::volScalarField& Foam::basicMultiComponentMixture::Y
00057 (
00058 const word& specieName
00059 )
00060 {
00061 return Y_[species_[specieName]];
00062 }"
to look for the specie of interest.

I am wondering what the meaning of "const word& specieName" is?
In terms of CO2, how to express it? Y[CO2]?
Thanks.

Rickard.Solsjo March 5, 2011 08:05

Look at the Yeqn at doxygen.
Might give you some ideas


All times are GMT -4. The time now is 06:45.