Skip to content

Commit

Permalink
Merge pull request #28060 from GiudGiud/PR_rcnotime2
Browse files Browse the repository at this point in the history
Add option to not contribute to RC coefficients in the Physics
  • Loading branch information
GiudGiud authored Jul 4, 2024
2 parents c32a23e + 0c0df74 commit 10c4f77
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/navier_stokes/src/physics/WCNSFVFlowPhysics.C
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "NSFVBase.h"
#include "INSFVMomentumAdvection.h"
#include "INSFVRhieChowInterpolator.h"
#include "INSFVTimeKernel.h"
#include "MapConversionUtils.h"
#include "NS.h"

Expand Down Expand Up @@ -47,6 +48,10 @@ WCNSFVFlowPhysics::validParams()

params += NSFVBase::commonNavierStokesFlowParams();

// Time derivative term correction
params.transferParam<bool>(INSFVTimeKernel::validParams(), "contribute_to_rc");
params.addParamNamesToGroup("contribute_to_rc", "Advanced");

// Used for flow mixtures, where one phase is solid / not moving under the action of gravity
params.addParam<MooseFunctorName>(
"density_for_gravity_terms",
Expand Down Expand Up @@ -529,6 +534,7 @@ WCNSFVFlowPhysics::addINSMomentumTimeKernels()
assignBlocks(params, _blocks);
params.set<MooseFunctorName>(NS::density) = _density_name;
params.set<UserObjectName>("rhie_chow_user_object") = rhieChowUOName();
params.set<bool>("contribute_to_rc") = getParam<bool>("contribute_to_rc");

for (const auto d : make_range(dimension()))
{
Expand All @@ -547,6 +553,7 @@ WCNSFVFlowPhysics::addWCNSMomentumTimeKernels()
assignBlocks(params, _blocks);
params.set<MooseFunctorName>(NS::density) = _density_name;
params.set<MooseFunctorName>(NS::time_deriv(NS::density)) = NS::time_deriv(_density_name);
params.set<bool>("contribute_to_rc") = getParam<bool>("contribute_to_rc");

for (const auto d : make_range(dimension()))
{
Expand Down

0 comments on commit 10c4f77

Please sign in to comment.