Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reacting flow #274

Closed
wants to merge 48 commits into from
Closed

Reacting flow #274

wants to merge 48 commits into from

Conversation

shaering
Copy link
Contributor

Addition of reacting-flow variant of thermo-chem. Currently only setup for Argon mixture without E-field contributions.

Sigfried Haering and others added 30 commits March 14, 2024 11:08
The primitive state was being filled with mass fractions for the
species entries and then passed to GetConservativesFromPrimitives, but
this function expects that the species entries of the primitive state
contain molar densities.  Because of this, the returned conserved
state was incorrect and the resulting molar densities returned by
computeNumberDensities were also incorrect, which then made the
species production terms incorrect.
Three bug fixes here:

1) The units of the formation energy from the input file is J / mol,
so we need to divide by the species weight (kg / mol) here to get the
formation energy per unit mass.

2) The vector hw_ was sizes to have entries for all species and the
contributions were not summed.  We need hw_ to be a scalar field with
the contributions from all species summed.

3) Sign error

Note that this commit does not add the sensible enthalpy contribution
(see Poinsot and Veynante, Theoretical and Numerical Combustion, 2005,
eq. 1.62).
Species history update was out of order.
to energy eqn rhs in ReactingFlow::heatOfFormation.  Not general b/c
Cv is hardcoded.  Just for investigation.  Don't merge this.
Three bugs were found and fixed while working on the low Mach analog
to argon_minimal.binary.test.  The fixes are

1) In ReactingFlow::speciesStep, set the initial guess for
the iterative linear solve to the mass fraction for the current
species from the previous time step.  Because of how Yn_next_gf_ is
managed, that was not the case and sometimes the electron species
solve in particular struggled because of it.

2) Multiply the diffusivities returned by
computeMixtureAverageDiffusivity by the mixture density (i.e., so that
the diffision term in the species equation is div( \rho D \grad Y) ).

3) Populate the species entries of the primitive state in
ReactingFlow::updateDiffusivity with the mole densities, rather than
the mass fraction.
@trevilo
Copy link
Contributor

trevilo commented Jun 4, 2024

This PR has been replaced by #281.

@trevilo trevilo closed this Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants