Skip to content

Use species viscosity and cp for the species conductivities of FLUID_MIXTURE - #3060

Open
PraptiPatra wants to merge 3 commits into
su2code:developfrom
PraptiPatra:fix/mixture-conductivity
Open

PraptiPatra wants to merge 3 commits into
su2code:developfrom
PraptiPatra:fix/mixture-conductivity

Conversation

@PraptiPatra

@PraptiPatra PraptiPatra commented Dec 3, 2026 •

Copy link
Copy Markdown

Proposed Changes

CFluidScalar::WilkeConductivity passed the mixture viscosity and cp to the conductivity model of every species. With CONDUCTIVITY_MODEL= CONSTANT_PRANDTL (the default), every species ended up with the same k = mu_mix cp_mix / Pr, and the Wilke rule was applied to those values instead of to pure-species conductivities. For H2/air this gives a conductivity, and with UNITY_LEWIS/CONSTANT_LEWIS a diffusivity, that is up to ~36% too low. Details and a reproduction are in #3059.

The fix passes laminarViscosity[iVar] and specificHeat[iVar] instead. The other conductivity models don't use mu or cp, so they are unaffected.

New test species_h2_air_conduction (parallel regression): conduction through a quiescent H2/air layer between two isothermal walls, on a RECTANGLE mesh, so no new mesh file is needed. The converged wall heat flux is k ΔT/L with k from the Wilke rule, which I checked against a standalone calculation. Before the fix, the same case gives a heat flux about 36% lower.

None of the existing regression tests use CONSTANT_PRANDTL with FLUID_MIXTURE, so their values don't change.

Related Work

Closes #3059

PR Checklist

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with --warnlevel=3 when using meson).
  • My contribution is commented and consistent with SU2 style (https://su2code.github.io/docs_v7/Style-Guide/).
  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp), if necessary.

…MIXTURE

WilkeConductivity passed the mixture viscosity and cp to the conductivity
model of each species. With CONSTANT_PRANDTL every species then got the
same k = mu_mix*cp_mix/Pr, and the Wilke rule was applied to those instead
of to pure-species values. For H2/air the conductivity (and the Lewis-based
diffusivity) came out up to ~36% too low. Fixes su2code#3059.
Quiescent H2/air layer between two isothermal walls on a RECTANGLE mesh.
The wall heat flux is k*dT/L with k from the Wilke rule, so the test checks
the species conductivities directly. Without the previous commit the heat
flux is about 36% lower.
Fixes the three CodeFactor E221 warnings (multiple spaces before operator). No change in behaviour.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants