How can I get mole fraction on boundary condition instead of mass fraction?
This is my N2 initial conditions. But it's mass fraction. How can I get mole fraction on boundary condition instead of mass fraction?
Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
When you say "how can I get" what do you mean? Do you want to:
- set the value on the fixedValue boundary as a mole fraction, rather than a mass fraction; - or do you want to plot the value on another type of boundary, say an outlet, as a mole fraction? If it's the first, then the short answer is that you cannot. You must supply the boundary conditions for the variables that the solver uses, and the solvers all work with mass fractions. Actually, if you were really set on using mole fraction, you COULD do it, but you'd have to write your own version of the solver, and add coding to do the input/output of the scalar fields as mole fraction, with the calculation still being done on a mass fraction basis. Doable, but messy. If it's the latter, then that's just post-processing (ie converting mass to mole fractions). |
Quote:
Thank your reply sir. I meant the first situation that setting the value on the fixedValue boundary as a mole fraction and got my answer. Good day sir. |
All times are GMT -4. The time now is 02:05. |