|
[Sponsors] |
September 13, 2002, 19:21 |
Mole fractions from mass fractions?
|
#1 |
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 |
|
September 16, 2002, 01:34 |
Re: Mole fractions from mass fractions?
|
#2 |
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 |
|
September 18, 2002, 17:49 |
Re: Mole fractions from mass fractions?
|
#3 |
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 |
|
September 23, 2002, 02:22 |
Re: Mole fractions from mass fractions?
|
#4 |
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 |
|
September 26, 2002, 13:19 |
Re: Mole fractions from mass fractions?
|
#5 |
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. |
|
September 27, 2002, 06:39 |
Re: Mole fractions from mass fractions?
|
#6 |
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 |
|
|
|
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 |