CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   collect the number of species (http://www.cfd-online.com/Forums/openfoam/98198-collect-number-species.html)

Raymond.Leoi March 5, 2012 15:24

collect the number of species
 
Anyone has an idea on how to collect the number of species for OpenFoam1.7?

Argen March 5, 2012 15:58

I thought "thermo.composition().Y().size()" might work

Quote:

Originally Posted by Raymond.Leoi (Post 347774)
Anyone has an idea on how to collect the number of species for OpenFoam1.7?


Raymond.Leoi March 5, 2012 16:36

Thanks, Argen. It seems working.
Do you have any idea to get molecular weight for each species?

Bufacchi March 6, 2012 06:47

Depending on the solver you are using, it may be inside the case directory, in a dictionary in the constants sub-directory.
Regards,
Paulo


All times are GMT -4. The time now is 20:13.