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

Get specie molecular weight in OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 30, 2013, 10:31
Default Get specie molecular weight in OpenFOAM
  #1
New Member
 
Eon
Join Date: Mar 2013
Posts: 4
Rep Power: 4
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, 04:11
Default
  #2
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 198
Rep Power: 7
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, 04:46
Default
  #3
New Member
 
Eon
Join Date: Mar 2013
Posts: 4
Rep Power: 4
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, 06:42
Default
  #4
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 198
Rep Power: 7
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, 09:56
Default
  #5
Senior Member
 
dkxls's Avatar
 
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 152
Rep Power: 10
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:
accessing thermophysical properties on a lower level
Code:
scalar Wspecie0 = composition.W(0);
scalar Wspecie1 = composition.W(1);
...
Check the file 'SpecieMixture.H' for more information.

-Armin
dkxls is offline   Reply With Quote

Reply

Tags
chemkin, openfoam, specie

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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06: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 01:10.