Commit ebce7b57 authored by Henry's avatar Henry
Browse files

TurbulenceModels: separated v2fBase.H from v2f.H

parent 277351c8
......@@ -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<volScalarField> v2() const = 0;
//- Return the damping function
virtual tmp<volScalarField> f() const = 0;
};
template<class BasicTurbulenceModel>
class v2f
:
......
......@@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/
#include "v2f.H"
#include "v2fBase.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
/*---------------------------------------------------------------------------*\
========= |
\\ / 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 <http://www.gnu.org/licenses/>.
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<volScalarField> v2() const = 0;
//- Return the damping function
virtual tmp<volScalarField> f() const = 0;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace RASModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment