CFD Online Discussion Forums

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

Argen March 4, 2011 13: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 07:05

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


All times are GMT -4. The time now is 23:33.