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

mass fractions to mol fractions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2011, 11:21
Default mass fractions to mol fractions
  #1
New Member
 
Arun
Join Date: Mar 2009
Posts: 25
Rep Power: 17
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.

E.g.
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.

Regards
A
arun is offline   Reply With Quote

Old   May 18, 2011, 16:48
Default Mass to mole fractions
  #2
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16
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
Default
  #3
New Member
 
saeed divrakhsh
Join Date: Jul 2010
Posts: 8
Rep Power: 16
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?
Thanks.
Best Regards,
Divrakhsh
valikiut is offline   Reply With Quote

Reply

Tags
diesel combustion, dieselenginefoam, mol fractions, pollutants


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
fluent definitions for mass fractions perdita FLUENT 0 December 6, 2010 06:00
UDF for species mass fractions MRR FLUENT 0 December 29, 2005 08:14
Mole fractions from mass fractions? Keith Siemens 5 September 27, 2002 06:39
Changing inlet mass fractions of CH4 and O2 Prateep Chatterjee FLUENT 4 June 13, 2002 13:06


All times are GMT -4. The time now is 03:04.