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

Consistent mass fluxes between bulk flow and scalar solvers and boundedness correction #1697

Merged
merged 74 commits into from
Nov 28, 2022

Conversation

bigfooted
Copy link
Contributor

@bigfooted bigfooted commented Jul 4, 2022

Proposed Changes

Give a brief overview of your contribution here in a few sentences.
We need a different treatment of the convective scalar fluxes to improve results for the species solver.
This PR deals with the specific case of the incompressible species solver.

Related Work

Resolve any issues (bug fix or feature request), note any related PRs, or mention interactions with the work of others, if any.
connected to #726 and #721, and discussion #1695

my checklist:

[] check residual convergence for old and new testcase (primitive venturi mixer)
[] check convergence for turbulence problems, still problematic? Should we implement upwind scheme for species only (for now)?
[] check implementation of inlet/outlet bc
[] compressible flow vs incompressible flow
[]

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.

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with the '-Wall -Wextra -Wno-unused-parameter -Wno-empty-body' compiler flags, or simply --warnlevel=2 when using meson).
  • My contribution is commented and consistent with SU2 style.
  • 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.

bigfooted and others added 5 commits July 7, 2022 21:43
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
…hod which enables the correction terms to negate the effects of flow divergence on the scalar solution
…hod which enables the correction terms to negate the effects of flow divergence on the scalar solution
Common/include/CConfig.hpp Outdated Show resolved Hide resolved
Common/include/option_structure.hpp Outdated Show resolved Hide resolved
Common/include/option_structure.hpp Outdated Show resolved Hide resolved
SU2_CFD/include/solvers/CScalarSolver.inl Outdated Show resolved Hide resolved
SU2_CFD/include/solvers/CScalarSolver.inl Outdated Show resolved Hide resolved
SU2_CFD/include/solvers/CScalarSolver.inl Outdated Show resolved Hide resolved
SU2_CFD/include/solvers/CSolver.hpp Outdated Show resolved Hide resolved
SU2_CFD/include/solvers/CFVMFlowSolverBase.hpp Outdated Show resolved Hide resolved
@bigfooted
Copy link
Contributor Author

@EvertBunschoten, are there any known TO-DO's for this PR besides updating the regression test?

Common/include/CConfig.hpp Outdated Show resolved Hide resolved
SU2_CFD/include/numerics/CNumerics.hpp Outdated Show resolved Hide resolved
SU2_CFD/include/numerics/scalar/scalar_convection.hpp Outdated Show resolved Hide resolved
SU2_CFD/include/numerics/species/species_convection.hpp Outdated Show resolved Hide resolved
SU2_CFD/include/solvers/CScalarSolver.inl Outdated Show resolved Hide resolved
SU2_CFD/include/solvers/CScalarSolver.inl Outdated Show resolved Hide resolved
SU2_CFD/src/drivers/CDriver.cpp Outdated Show resolved Hide resolved
SU2_CFD/src/drivers/CDriver.cpp Outdated Show resolved Hide resolved
SU2_CFD/src/drivers/CDriver.cpp Outdated Show resolved Hide resolved
SU2_CFD/src/solvers/CTurbSSTSolver.cpp Outdated Show resolved Hide resolved
SU2_CFD/src/solvers/CTurbSSTSolver.cpp Outdated Show resolved Hide resolved
…ies solutions to use inlet and outlet characteristic flow variables instead of the local flow variables when computing the mass flux.
@EvertBunschoten
Copy link
Member

@EvertBunschoten Thanks for the fix for axisymmetric cases, this works correctly now!

…discretization, bounded scalars not compatible with compressible flows, fix formatting and trailing spaces
@pcarruscag pcarruscag changed the title [WIP] Consistent mass fluxes between bulk flow and scalar solvers Consistent mass fluxes between bulk flow and scalar solvers and boundedness correction Nov 26, 2022
SU2_CFD/src/solvers/CSpeciesSolver.cpp Outdated Show resolved Hide resolved
@bigfooted bigfooted merged commit 73538a1 into develop Nov 28, 2022
@bigfooted bigfooted deleted the feature_conservative_scalars branch November 28, 2022 12:49
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.

4 participants