diff --git a/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2f.H b/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2f.H index 9ce1dca854..099e0cb079 100644 --- a/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2f.H +++ b/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2f.H @@ -87,6 +87,7 @@ Note k variants (nutk...) for this case will not behave correctly. SeeAlso + Foam::RASModels::v2fBase Foam::RASModels::kEpsilon Foam::kLowReWallFunctionFvPatchScalarField Foam::epsilonLowReWallFunctionFvPatchScalarField @@ -101,6 +102,7 @@ SourceFiles #ifndef v2f_H #define v2f_H +#include "v2fBase.H" #include "RASModel.H" #include "eddyViscosity.H" @@ -115,35 +117,6 @@ namespace RASModels Class v2f Declaration \*---------------------------------------------------------------------------*/ -class v2fBase -{ -public: - - //- Runtime type information - TypeName("v2fBase"); - - - // Constructors - - v2fBase() - {} - - - //- Destructor - virtual ~v2fBase() - {} - - - // Member Functions - - //- Return turbulence stress normal to streamlines - virtual tmp v2() const = 0; - - //- Return the damping function - virtual tmp f() const = 0; -}; - - template class v2f : diff --git a/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.C b/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.C index 5892cbd98f..6f43c3576e 100644 --- a/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.C +++ b/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.C @@ -23,7 +23,7 @@ License \*---------------------------------------------------------------------------*/ -#include "v2f.H" +#include "v2fBase.H" #include "addToRunTimeSelectionTable.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.H b/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.H new file mode 100644 index 0000000000..87f249dd4a --- /dev/null +++ b/src/TurbulenceModels/turbulenceModels/RAS/v2f/v2fBase.H @@ -0,0 +1,96 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2015 OpenFOAM Foundation + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM. If not, see . + +Class + Foam::RASModels::v2fBase + +Group + grpRASTurbulence + +Description + Abstract base-class for v2-f models to provide BCs access to the v2 and f + fields. + +SeeAlso + Foam::RASModels::v2f + +SourceFiles + v2fBase.C + +\*---------------------------------------------------------------------------*/ + +#ifndef v2fBase_H +#define v2fBase_H + +#include "RASModel.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ +namespace RASModels +{ + +/*---------------------------------------------------------------------------*\ + Class v2fBase Declaration +\*---------------------------------------------------------------------------*/ + +class v2fBase +{ +public: + + //- Runtime type information + TypeName("v2fBase"); + + + // Constructors + + v2fBase() + {} + + + //- Destructor + virtual ~v2fBase() + {} + + + // Member Functions + + //- Return turbulence stress normal to streamlines + virtual tmp v2() const = 0; + + //- Return the damping function + virtual tmp f() const = 0; +}; + + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace RASModels +} // End namespace Foam + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +#endif + +// ************************************************************************* //