CFD Online Discussion Forums

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

Raymond.Leoi March 5, 2012 14: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 14: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 15:36

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

Bufacchi March 6, 2012 05: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 01:01.