CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Non-equilibrium chemistry (https://www.cfd-online.com/Forums/main/187602-non-equilibrium-chemistry.html)

RocketGuy May 10, 2017 16:08

Non-equilibrium chemistry
 
Hello everyone,

I'm trying to add a decoupled finite-rate chemistry solver to a FEM compressible flow code. Right now we are getting incorrect steady-state chemical composition and we're pretty sure the issue is not with the source terms. I am having a bit of trouble figuring out the way the system should be set up, so if there are any experts in this field I would love to pick your brains.

The equations to be placed in the decoupled chemistry system are the conservation of species mass (densities):

\frac{\partial \rho Y_i}{\partial t}+\nabla \cdot (\rho Y_i \bold{u}) = S_i

where S_i is the chemical source term, in [kg/m3.s]. The way I have things currently set up is as follows:
  • Solve the flow equations holding chemical composition constant
  • Update all properties
  • Solve the chemistry equations for the species densities
  • Divide species densities by summation of new species densities to get mass fractions
  • Update all properties using new mass fractions, and density from flow solution

I think that this is not the best way of doing things because you essentially get a "new" nodal density from the flow solution, and a different "new" nodal density from the chemistry solution, and I'm not quite sure which one to plug back in to evaluate all of the new variables.

I could solve the chemistry system using the "old" flow variables at time level n, but chances are the solved densities will not be the same anyway (due to computational error and the desire to be able to update the systems with different relaxation factors).

I am being told by people to solve directly for the primitive variables (aka the mass fractions). However, I'm not sure how to do this. I have seen the following equation in a few places:

\frac{\partial Y_i}{\partial t}+\nabla \cdot (Y_i \bold{u})=\frac{S_i}{\rho}

However I don't think this is correct, since in the absence of source terms the mass fractions should stay the same, correct? The same equation with the conserved quantity being the species concentration [mol/m3] makes more sense.

Thanks for any help

agd May 10, 2017 16:23

I can't add much, but it is normal to solve n-1 species continuity equations along with the global continuity equation. The nth species density is given by the mixture density minus the n-1 species densities. Then you avoid having two mixture densities.

LuckyTran May 10, 2017 18:57

Quote:

Originally Posted by RocketGuy (Post 648381)
\frac{\partial \rho Y_i}{\partial t}+\nabla \cdot (\rho Y_i \bold{u}) = S_i

You neglected the species diffusion term.

This is a species transport equation, it is not a chemistry equation. There is nothing here that describes the chemical reaction, in fact the chemistry is an input to this problem in the source term. Normally you label it R as a reaction rate and reserve S for external sources. The species transport equation only describes how the species flow or move around in the domain, it doesn't tell you anything about the reactions the species are undergoing.

From the "chemistry equations" and by chemistry equations I mean the set of rate equations that comes from the kinetic model you get a reaction which is the S in the species transport equation. If you are using Arrhenius rate-laws, then this is a big system of coupled ode's that you would solve using some other specialized coupled ode solver.

You solve the species transport equation to get a new mass fractions.

So no you do not get two new mass fractions.


All times are GMT -4. The time now is 14:47.