CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Accessing molecular weight (

IvyLong August 3, 2011 02:00

Accessing molecular weight
Hi all,

I'm modifying the reactingFoam solver and I wanted to access the molecular weights vector, W(). Unfortunately the documentation on the OpenFoam website seems to be for a different version (I'm using 1.7.1) in which the member function was in multiComponentMixture. I've been through the code a lot, but I can't seem to untangle where W() is anymore or how to access it.

I appreciate anyone's help!


l_r_mcglashan August 3, 2011 04:48


grep is your friend! Go into src/thermophysicalModels and type:

grep -r "W()" .

I see that perhaps liquidMixture/liquidMixture is what you are looking for? Also, consider upgrading to 2.0.

All times are GMT -4. The time now is 05:02.