CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Accessing molecular weight

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 3, 2011, 02:00
Default Accessing molecular weight
New Member
Ivy Long
Join Date: Jul 2011
Location: Chicago, Illinois
Posts: 5
Rep Power: 6
IvyLong is on a distinguished road
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!

IvyLong is offline   Reply With Quote

Old   August 3, 2011, 04:48
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough

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.
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access species molecular weight in UDFs Ellen FLUENT 2 March 13, 2009 12:17
Pressure and molecular weight ? Jane FLUENT 0 January 2, 2009 05:17
Unit of Molecular weight clark FLUENT 2 March 15, 2008 06:28
Molecular Weight Ari FLUENT 0 August 22, 2004 07:36
Molecular weight of the solid phase? imburse CFX 3 May 9, 2002 18:28

All times are GMT -4. The time now is 17:21.