147 lines
3.8 KiB
C++
147 lines
3.8 KiB
C++
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
|
\\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd.
|
|
-------------------------------------------------------------------------------
|
|
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::functionObjects::yPlus
|
|
|
|
Group
|
|
grpFieldFunctionObjects
|
|
|
|
Description
|
|
Evaluates and outputs turbulence y+ for turbulence models.
|
|
|
|
The field is stored on the mesh database so that it can be
|
|
retrieved and used for other applications.
|
|
|
|
Usage
|
|
Example of function object specification to calculate the y+ (LES):
|
|
\verbatim
|
|
yPlus1
|
|
{
|
|
type yPlus;
|
|
libs ("libfieldFunctionObjects.so");
|
|
...
|
|
}
|
|
\endverbatim
|
|
|
|
Where the entries comprise:
|
|
\table
|
|
Property | Description | Required | Default value
|
|
type | Type name: yPlus | yes |
|
|
result | Name of y+ field | no | \<function name\>
|
|
log | Log to standard output | no | yes
|
|
\endtable
|
|
|
|
|
|
See also
|
|
Foam::functionObject
|
|
Foam::functionObjects::fvMeshFunctionObject
|
|
Foam::functionObjects::writeFile
|
|
Foam::functionObjects::timeControl
|
|
|
|
SourceFiles
|
|
yPlus.C
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
#ifndef functionObjects_yPlus_H
|
|
#define functionObjects_yPlus_H
|
|
|
|
#include "fvMeshFunctionObject.H"
|
|
#include "writeFile.H"
|
|
#include "volFieldsFwd.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
|
|
namespace functionObjects
|
|
{
|
|
|
|
/*---------------------------------------------------------------------------*\
|
|
Class yPlus Declaration
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
class yPlus
|
|
:
|
|
public fvMeshFunctionObject,
|
|
public writeFile
|
|
{
|
|
// Private Member Functions
|
|
|
|
//- File header information
|
|
virtual void writeFileHeader(Ostream& os) const;
|
|
|
|
//- Disallow default bitwise copy construct
|
|
yPlus(const yPlus&);
|
|
|
|
//- Disallow default bitwise assignment
|
|
void operator=(const yPlus&);
|
|
|
|
|
|
public:
|
|
|
|
//- Runtime type information
|
|
TypeName("yPlus");
|
|
|
|
|
|
// Constructors
|
|
|
|
//- Construct from Time and dictionary
|
|
yPlus
|
|
(
|
|
const word& name,
|
|
const Time& runTime,
|
|
const dictionary& dict
|
|
);
|
|
|
|
|
|
//- Destructor
|
|
virtual ~yPlus();
|
|
|
|
|
|
// Member Functions
|
|
|
|
//- Read the yPlus data
|
|
virtual bool read(const dictionary&);
|
|
|
|
//- Calculate the yPlus field
|
|
virtual bool execute();
|
|
|
|
//- Write the yPlus field
|
|
virtual bool write();
|
|
};
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
} // End namespace functionObjects
|
|
} // End namespace Foam
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#endif
|
|
|
|
// ************************************************************************* //
|