diff --git a/test/freeflow/rans/problem.hh b/test/freeflow/rans/problem.hh index 6245a4d044e72f2b40b0a035d83383e35613b406..f4ef334132212d957be10c86fc8e335f3c3d0d77 100644 --- a/test/freeflow/rans/problem.hh +++ b/test/freeflow/rans/problem.hh @@ -72,7 +72,6 @@ struct PipeLauferNILowReKEpsilon { using InheritsFrom = std::tuple<RANSModel, Lo struct PipeLauferNIKEpsilon { using InheritsFrom = std::tuple<RANSModel, KEpsilonNI>; }; } // end namespace TTag - // the fluid system template<class TypeTag> struct FluidSystem<TypeTag, TTag::RANSModel> @@ -181,9 +180,7 @@ public: } Scalar sandGrainRoughnessAtPos(const GlobalPosition &globalPos) const - { - return sandGrainRoughness_; - } + { return sandGrainRoughness_; } /*! * \brief Returns the temperature [K] within the domain for the isothermal model. @@ -224,7 +221,6 @@ public: else values.setDirichlet(Indices::temperatureIdx); #endif - // turbulence model-specific boundary types setBcTypes_(values, globalPos); @@ -300,11 +296,9 @@ public: : time() / initializationTime_ * inletVelocity_; if (isOnWallAtPos(globalPos)) values[Indices::velocityXIdx] = 0.0; - #if NONISOTHERMAL values[Indices::temperatureIdx] = isOnWallAtPos(globalPos) ? wallTemperature_ : inletTemperature_; #endif - // turbulence model-specific initial conditions setInitialAtPos_(values, globalPos); return values; @@ -313,25 +307,17 @@ public: // \} void setTimeLoop(TimeLoopPtr timeLoop) - { - timeLoop_ = timeLoop; - } + { timeLoop_ = timeLoop; } Scalar time() const - { - return timeLoop_->time(); - } + { return timeLoop_->time(); } private: bool isInlet_(const GlobalPosition& globalPos) const - { - return globalPos[0] < this->gridGeometry().bBoxMin()[0] + eps_; - } + { return globalPos[0] < this->gridGeometry().bBoxMin()[0] + eps_; } bool isOutlet_(const GlobalPosition& globalPos) const - { - return globalPos[0] > this->gridGeometry().bBoxMax()[0] - eps_; - } + { return globalPos[0] > this->gridGeometry().bBoxMax()[0] - eps_; } //! Initial conditions for the komega, kepsilon and lowrekepsilon turbulence models void setInitialAtPos_(PrimaryVariables& values, const GlobalPosition &globalPos) const diff --git a/test/freeflow/ransnc/problem.hh b/test/freeflow/ransnc/problem.hh index 92d41877b93207defdd7caf5243a7be013524031..b7f657915bf31d18571f5899eac1eb62af1c0799 100644 --- a/test/freeflow/ransnc/problem.hh +++ b/test/freeflow/ransnc/problem.hh @@ -177,9 +177,7 @@ public: // \{ bool isOnWallAtPos(const GlobalPosition& globalPos) const - { - return globalPos[1] < eps_; - } + { return globalPos[1] < eps_; } /*! * \brief Returns the temperature within the domain in [K]. @@ -273,7 +271,6 @@ public: { values[transportCompIdx] = (time() > 10.0) ? inletMoleFraction_ : 0.0; } - #if NONISOTHERMAL if (time() > 10.0 && isOnWallAtPos(globalPos)) { @@ -317,7 +314,6 @@ public: #if NONISOTHERMAL values[Indices::temperatureIdx] = temperature(); #endif - // block velocity profile values[Indices::velocityXIdx] = 0.0; if (!isOnWallAtPos(globalPos)) @@ -332,25 +328,17 @@ public: // \} void setTimeLoop(TimeLoopPtr timeLoop) - { - timeLoop_ = timeLoop; - } + { timeLoop_ = timeLoop; } Scalar time() const - { - return timeLoop_->time(); - } + { return timeLoop_->time(); } private: bool isInlet_(const GlobalPosition& globalPos) const - { - return globalPos[0] < eps_; - } + { return globalPos[0] < eps_; } bool isOutlet_(const GlobalPosition& globalPos) const - { - return globalPos[0] > this->gridGeometry().bBoxMax()[0] - eps_; - } + { return globalPos[0] > this->gridGeometry().bBoxMax()[0] - eps_; } //! Initial conditions for the komega, kepsilon and lowrekepsilon turbulence models void setInitialAtPos_(PrimaryVariables& values, const GlobalPosition &globalPos) const