Repository navigation
Use species viscosity and cp for the species conductivities of FLUID_MIXTURE - #3060
Open
PraptiPatra wants to merge 3 commits into
Open
PraptiPatra wants to merge 3 commits into
PraptiPatra wants to merge 3 commits into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
CFluidScalar::WilkeConductivitypassed the mixture viscosity and cp to the conductivity model of every species. WithCONDUCTIVITY_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 withUNITY_LEWIS/CONSTANT_LEWISa diffusivity, that is up to ~36% too low. Details and a reproduction are in #3059.The fix passes
laminarViscosity[iVar]andspecificHeat[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 aRECTANGLEmesh, 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_PRANDTLwithFLUID_MIXTURE, so their values don't change.Related Work
Closes #3059
PR Checklist
pre-commit run --allto format old commits.