CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Get specie molecular weight in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By dkxls

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2013, 09:31
Default Get specie molecular weight in OpenFOAM
  #1
New Member
 
Eon
Join Date: Mar 2013
Posts: 4
Rep Power: 13
eretief is on a distinguished road
Hi

I want to get the individual specie molecular weights of all the species that was imported from my CHEMKIN file. I know the specie.H file contains a member for molWeight, but could anyone please tell me how exactly I can get the molWeight for each of the species that was imported?

Thanks
eretief is offline   Reply With Quote

Old   October 31, 2013, 03:11
Default
  #2
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 17
Chris Lucas is on a distinguished road
Hi,

we need more information. Where do you need the molecular weights? In the solver, the thermo-library ...?

Christian
Chris Lucas is offline   Reply With Quote

Old   October 31, 2013, 03:46
Default
  #3
New Member
 
Eon
Join Date: Mar 2013
Posts: 4
Rep Power: 13
eretief is on a distinguished road
Hi Christian

Sorry I should have mentioned it in the post - I need the molecular weights in the solver.

Thanks
Eon
eretief is offline   Reply With Quote

Old   November 1, 2013, 05:42
Default
  #4
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 17
Chris Lucas is on a distinguished road
Hi,

you need access to the mixture class.

In the non-reacting classes, you don't have this access. Therefore add a new function (dummy function) to psiThermo.H and redefine the same function in hePsiThermo. Here you return the correct value because hePsiThermo has access to the mixture class.

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   November 1, 2013, 08:56
Default
  #5
Senior Member
 
dkxls's Avatar
 
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19
dkxls will become famous soon enough
Since you are using a 'basicMultiComponentMixture' (due to the CHEMKIN reader) you get this information without modifying the libraries. See my post here:
http://www.cfd-online.com/Forums/ope...tml#post459024
Code:
scalar Wspecie0 = composition.W(0);
scalar Wspecie1 = composition.W(1);
...
Check the file 'SpecieMixture.H' for more information.

-Armin
Mirza8 and parthigcar like this.
dkxls is offline   Reply With Quote

Reply

Tags
chemkin, openfoam, specie


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 09:33
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 22:34.