|
[Sponsors] |
October 30, 2013, 10:31 |
Get specie molecular weight in OpenFOAM
|
#1 |
New Member
Eon
Join Date: Mar 2013
Posts: 4
Rep Power: 13 |
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 |
|
October 31, 2013, 04:11 |
|
#2 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
Hi,
we need more information. Where do you need the molecular weights? In the solver, the thermo-library ...? Christian |
|
October 31, 2013, 04:46 |
|
#3 |
New Member
Eon
Join Date: Mar 2013
Posts: 4
Rep Power: 13 |
Hi Christian
Sorry I should have mentioned it in the post - I need the molecular weights in the solver. Thanks Eon |
|
November 1, 2013, 06:42 |
|
#4 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
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 |
|
November 1, 2013, 09:56 |
|
#5 |
Senior Member
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19 |
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); ... -Armin |
|
Tags |
chemkin, openfoam, specie |
|
|
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 06:56 |
The OpenFOAM extensions project | mbeaudoin | OpenFOAM | 16 | October 9, 2007 10:33 |
Molecular Weight | Ari | FLUENT | 0 | August 22, 2004 08:36 |
Molecular weight of the solid phase? | imburse | CFX | 3 | May 9, 2002 19:28 |