Add support for Riemann boundary condition to all scalar solvers#2846
Add support for Riemann boundary condition to all scalar solvers#2846aureliegrebe wants to merge 3 commits into
Conversation
This allows BC_Riemann to be used with all scalar solvers, particularily the species solver.
|
Thanks for this — moving While reviewing, we ran into a pre-existing gap that your change surfaces more visibly now that species goes through this path too: scalar inlet values (turbulence/species) are never actually populated for a The root cause is in the inlet-filling logic, which only populates the per-marker scalar arrays when the marker's
For species this means there's currently no way to specify the composition entering through a Riemann boundary at all — it's silently freestream regardless of Could you extend the fix to make these Lastly, could you add a test case (or adapt an existing regression case) that uses |
|
@joshkellyjak can you have a look as well? |
I've added logic to the
I'm not entirely convinced there was actually a bug in the turbulent solvers causing
I've copied and modified the |
Proposed Changes
Add support for Riemann boundary conditions to all scalar solvers by moving BC_Riemann definition from CTurbSolver to CScalarSolver.
I've only tested this for for CSpeciesSolver; I put the definition in CScalarSolver mainly just to avoid code duplication between CTurbSolver and CSpeciesSolver. Please let me know if there is a reason not to do this.
PR Checklist
pre-commit run --allto format old commits.