CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Accessing molecular weight (http://www.cfd-online.com/Forums/openfoam-programming-development/91189-accessing-molecular-weight.html)

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!

Ivy

l_r_mcglashan August 3, 2011 04:48

Hi,

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 12:56.