From 64c7845e06299aaab4f71d11a7ffe345aa78e9c6 Mon Sep 17 00:00:00 2001 From: Giuliano Lombardo <lombardo@glis.iws.uni-stuttgart.de> Date: Thu, 2 Aug 2018 16:03:19 +0200 Subject: [PATCH] [rans][problem] Make ctor accept modelParamGroup --- dumux/freeflow/rans/oneeq/problem.hh | 4 ++-- dumux/freeflow/rans/twoeq/kepsilon/problem.hh | 4 ++-- dumux/freeflow/rans/twoeq/komega/problem.hh | 3 ++- dumux/freeflow/rans/twoeq/lowrekepsilon/problem.hh | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/dumux/freeflow/rans/oneeq/problem.hh b/dumux/freeflow/rans/oneeq/problem.hh index 6788b7506b..9198797847 100644 --- a/dumux/freeflow/rans/oneeq/problem.hh +++ b/dumux/freeflow/rans/oneeq/problem.hh @@ -65,8 +65,8 @@ class OneEqProblem : public RANSProblem<TypeTag> public: //! The constructor sets the gravity, if desired by the user. - OneEqProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry) - : ParentType(fvGridGeometry) + OneEqProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry, const std::string& paramGroup = "") + : ParentType(fvGridGeometry, paramGroup) { useStoredEddyViscosity_ = getParamFromGroup<bool>(this->paramGroup(), "RANS.UseStoredEddyViscosity", false); diff --git a/dumux/freeflow/rans/twoeq/kepsilon/problem.hh b/dumux/freeflow/rans/twoeq/kepsilon/problem.hh index f22d5b088e..ef99fbaaff 100644 --- a/dumux/freeflow/rans/twoeq/kepsilon/problem.hh +++ b/dumux/freeflow/rans/twoeq/kepsilon/problem.hh @@ -83,8 +83,8 @@ public: static constexpr bool useMoles = GET_PROP_VALUE(TypeTag, UseMoles); //! The constructor sets the gravity, if desired by the user. - KEpsilonProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry) - : ParentType(fvGridGeometry) + KEpsilonProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry, const std::string& paramGroup = "") + : ParentType(fvGridGeometry, paramGroup) { yPlusThreshold_ = getParamFromGroup<Scalar>(this->paramGroup(), "KEpsilon.YPlusThreshold", 30); useStoredEddyViscosity_ = getParamFromGroup<bool>(this->paramGroup(), "RANS.UseStoredEddyViscosity", false); diff --git a/dumux/freeflow/rans/twoeq/komega/problem.hh b/dumux/freeflow/rans/twoeq/komega/problem.hh index 05c6d95d00..33f41525f0 100644 --- a/dumux/freeflow/rans/twoeq/komega/problem.hh +++ b/dumux/freeflow/rans/twoeq/komega/problem.hh @@ -70,7 +70,8 @@ class KOmegaProblem : public RANSProblem<TypeTag> using DimMatrix = Dune::FieldMatrix<Scalar, dim, dim>; public: - KOmegaProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry) : ParentType(fvGridGeometry) + KOmegaProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry, const std::string& paramGroup = "") + : ParentType(fvGridGeometry, paramGroup) { useStoredEddyViscosity_ = getParamFromGroup<bool>(this->paramGroup(), "RANS.UseStoredEddyViscosity", false); } diff --git a/dumux/freeflow/rans/twoeq/lowrekepsilon/problem.hh b/dumux/freeflow/rans/twoeq/lowrekepsilon/problem.hh index 742b6e790c..1b420db7aa 100644 --- a/dumux/freeflow/rans/twoeq/lowrekepsilon/problem.hh +++ b/dumux/freeflow/rans/twoeq/lowrekepsilon/problem.hh @@ -62,8 +62,8 @@ class LowReKEpsilonProblem : public RANSProblem<TypeTag> public: //! The constructor sets the gravity, if desired by the user. - LowReKEpsilonProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry) - : ParentType(fvGridGeometry) + LowReKEpsilonProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry, const std::string& paramGroup = "") + : ParentType(fvGridGeometry, paramGroup) { useStoredEddyViscosity_ = getParamFromGroup<bool>(this->paramGroup(), "RANS.UseStoredEddyViscosity", true); } -- GitLab