CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

mass fractions to mol fractions

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

LinkBack Thread Tools Display Modes
Old   May 18, 2011, 10:21
Default mass fractions to mol fractions
New Member
Join Date: Mar 2009
Posts: 25
Rep Power: 10
arun is on a distinguished road
Hi All,

I simulating combustion simulation using dieselEngineFoam, and I would like to get the output of mol fractions of pollutants such as CO, CO2, HC, NO at every CAD. Currently I manage to get the mass of the species at every CAD.

COAv << runTime.theta() << " " << fvc::domainIntegrate(composition.Y("CO")*rho).valu e() << endl;

Anyone can got any suggestion on how can I get the mol fractions?
Thanks in advance.

arun is offline   Reply With Quote

Old   May 18, 2011, 15:48
Default Mass to mole fractions
Senior Member
Join Date: Sep 2010
Location: Maryland, United States
Posts: 104
Rep Power: 9
adhiraj is on a distinguished road
I use OpenFOAM 1.7.1. As far as I see, you need to do the conversion yourself--possibly as a post processing step.
adhiraj is offline   Reply With Quote

Old   December 29, 2011, 15:58
New Member
saeed divrakhsh
Join Date: Jul 2010
Posts: 8
Rep Power: 9
valikiut is on a distinguished road
hello foamer

I want to simulate dual fuel diesel engine with OpenFOAM. Do I simulate this with dieselEngineFoam? If not, which solver I must use?
If I can use dieselEngineFoam, can I use (CH4) mass fraction in initial condition such as O2 and N2?
I want to calculate heat release rate (j/s), but in dieselEngineFoam output, dimension of dQ is (kg/(m^3*s)). How can I calculate heat release rate (j/s)? Do I have to change code?
Best Regards,
valikiut is offline   Reply With Quote


diesel combustion, dieselenginefoam, mol fractions, pollutants

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
fluent definitions for mass fractions perdita FLUENT 0 December 6, 2010 06:00
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
UDF for species mass fractions MRR FLUENT 0 December 29, 2005 08:14
Mole fractions from mass fractions? Keith Siemens 5 September 27, 2002 05:39
Changing inlet mass fractions of CH4 and O2 Prateep Chatterjee FLUENT 4 June 13, 2002 12:06

All times are GMT -4. The time now is 08:25.