TurbulenceModels: separated v2fBase.H from v2f.H

This commit is contained in:
Henry 2015-01-26 10:30:58 +00:00
parent 277351c875
commit ebce7b57ae
3 changed files with 99 additions and 30 deletions

View File

@ -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
:

View File

@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/
#include "v2f.H"
#include "v2fBase.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -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 <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
// ************************************************************************* //