Enable the use of conductivity models different from CONSTANT_PRANDTL for compressible flows.#2420
Conversation
pcarruscag
left a comment
There was a problem hiding this comment.
I see 35 occurrences of GetPrandtl_Lam in 26 files, from the number of changes in this PR and number of cases updated I think you are missing a lot.
Hi!! I went through the code and tried to replace what was computed before using the CONSTANT_PRANDLT model for the thermal conductivity. I added for keep consistency where the thermal conductivity was computed using the prandlt number and the free-stream viscosity and density values. Thank you so much in advance!! |
pcarruscag
left a comment
There was a problem hiding this comment.
ok good cleanup and it gets the compressible and incompressible solvers closer.
I think you are missing something in
template<class PrimitiveType>
FORCEINLINE Double thermalConductivity(const PrimitiveType& V) const {
return cp * (V.laminarVisc()/prandtlLam + V.eddyVisc()/prandtlTurb);
}
Let me know if you need any help.
Hi! |
|
I think it's just numerical noise, you'll need to update some residuals. |
pcarruscag
left a comment
There was a problem hiding this comment.
I think you covered everything except some specific things in the NEMO solver and the DG solver.
Which should be fine.
Hi!! Thanks for your comment, I have updated the residuals of the test cases that are failing. |
Hi!! Thanks!! after I update the residuals, I will merge this pull request. |
Proposed Changes
Enable the use other conductivity models for compressible flow. Updating thermal conductivity which has the turbulence contribution from MakeThermalConductivityModel function in CFluidModel.cpp.
Related Work
This is the first of small pull requests that are needed for enable FLUID_MIXTURE model for compressible flows.
PR Checklist
Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.
pre-commit run --allto format old commits.