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

Mole fractions from mass fractions?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Keith
  • 2 Post By Lars Ola Liavåg

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2002, 19:21
Default Mole fractions from mass fractions?
  #1
Keith
Guest
 
Posts: n/a
I am doing some combustion analysis, and I would like to know if there is an easy way to display mole fractions of species rather than mass fractions? Seems rather silly to do it by hand, and I feel like there must be an easier way.

Keith

vinayakdshetti1986 likes this.
  Reply With Quote

Old   September 16, 2002, 01:34
Default Re: Mole fractions from mass fractions?
  #2
Lars Ola Liavåg
Guest
 
Posts: n/a
Keith,

If you've got the mass fractions and the molar wheights of the individual mixture components, you can find the mixture molar wheight. The mole fraction of a species then equals its mass fraction multiplied by its molar wheight and divided by the molar wheight of the mixture. The operate command in PROSTAR allows you to do calculations on entire post registers. Check the PROSTAR help dialogue on how to do the manipulation in practice.

Regards,

Lars Ola
vinayakdshetti1986 and Annier like this.
  Reply With Quote

Old   September 18, 2002, 17:49
Default Re: Mole fractions from mass fractions?
  #3
Keith
Guest
 
Posts: n/a
Maybe I am dense, but it doesn't seem quite that simple. Since I am dealing with a combustion process, I don't believe there is a "single" mixture molar weight. So don't I need to compute the molar weight of each cell, then compute the mole fraction based on the mass fractions in each cell and the "cell molar weight"? If so, this gets rather tedious. Am I looking at some type of POSDAT routine?

Thanks.

Keith

  Reply With Quote

Old   September 23, 2002, 02:22
Default Re: Mole fractions from mass fractions?
  #4
Lars Ola Liavåg
Guest
 
Posts: n/a
Keith,

Maybe you're right that a POSDAT routine would be more convenient. However, if you already have some results that you want to postprocess, I think it's possible to do in PROSTAR, and probably not even difficult (I haven't tried myself yet). Using the ideal gas law, you can calculate the mixture molar mass of a cell from its mass, volume, pressure, temperature, and the universal gas constant. Then you can calculate the molar fraction as I described earlier. To do this for the whole domain in PROSTAR would require a few successive OPERATE commands, but when you've done this once, it's easy to paste it into a script, and then you never have to worry about it again.

Good luck!

Lars Ola
  Reply With Quote

Old   September 26, 2002, 13:19
Default Re: Mole fractions from mass fractions?
  #5
Keith
Guest
 
Posts: n/a
Thanks for the help. Your suggestion works fine, though it is rather cumbersome. But I did notice one problem: I wrote some data using the oper,write command to a CODED file. Then when I look at this file, it looks OK. But when I try to read this file back in, using the oper,getu,filename,cell,ireg,code command the data does not load with the proper values. In fact, except for the first few entries, all are 0. What am I doing wrong?

Thanks again.

Keith

P.S. I was trying this so that I could write a small Fortran program outside of Star to handle the conversions, and then read the data into Star in order to plot contours.
  Reply With Quote

Old   September 27, 2002, 06:39
Default Re: Mole fractions from mass fractions?
  #6
Lars Ola Liavåg
Guest
 
Posts: n/a
I'm afraid you already outclassed me. I've never done anything like what you're trying to do. Perhaps you ought to have a chat with technical support?

Lars Ola
  Reply With Quote

Reply


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
Multrigrid for mass fractions Fernando Herrera Main CFD Forum 0 August 7, 2008 06:41
UDF for species mass fractions MRR FLUENT 0 December 29, 2005 08:14
species mass fractions Mark Austin FLUENT 0 October 28, 2004 14:46
UDF and PDF species mass fractions Ale FLUENT 0 July 18, 2003 10:04
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 15:48.