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

molar mass of mixture

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2013, 10:14
Default molar mass of mixture
  #1
New Member
 
Join Date: Feb 2012
Posts: 25
Rep Power: 14
Marshak is on a distinguished road
Can anyone kindly let me know how to calculate the molar mass of a gas mixture in each cell. I am using hsCombustionThermo.
Marshak is offline   Reply With Quote

Old   May 2, 2019, 16:29
Default
  #2
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
Were you able to figure it out
charles4allme is offline   Reply With Quote

Old   May 3, 2019, 04:46
Default
  #3
Member
 
Join Date: Dec 2018
Location: Darmstadt, Germany
Posts: 87
Rep Power: 7
raumpolizei is on a distinguished road
Hey Charles,

the mixture averaged molar mass can be accessed via the mixture classes in the thermophysicalModels library (at least in my version, of1612). The mixture itself is a "part" of the thermo object which is used in your solver. In order to access it, something similar to
Code:
const auto mixture = thermo.composition();
should work. In order to output the mixture averaged molar mass, you could do something like this (not tested):
Code:
// create new field to get the mixture at write time
volScalarField mixtureMolarMass
(
    IOobject
    (
        "WMixture",
        runTime.timeName(),
        mesh,
        IOobject::NO_READ,
        IOobject::AUTO_WRITE
    ),
    mixture.W()
);
Though it is unlikely, the function you have to call may be different for your specific case (here I assumed the mixture type you are using is derived from the basicSpecieMixture class).

Cheers
RP
raumpolizei is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Use of FLUENT Mixture model with mass source ckwollongong FLUENT 0 August 29, 2012 23:04
mixture mass continuity eqn v.s. volumetric mixture continuity eqn kaifu ANSYS 0 June 9, 2011 09:42
mixture mass continuity v.s. volumetric mixture continuity in pressure equation kaifu OpenFOAM 0 June 9, 2011 09:14


All times are GMT -4. The time now is 05:52.