Newer
Older
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2016-2020 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
Henry Weller
committed
Foam::functionObjects::vorticity
grpFieldFunctionObjects
Computes the vorticity, the curl of the velocity.
\f[
\vec \omega = \nabla \times \vec U
\f]
where
\vartable
\vec \omega | Vorticity vector [1/s]
\vec U | Velocity vector [m/s]
\endvartable
Operands:
\table
Operand | Type | Location
input | volVectorField | $FOAM_CASE/\<time\>/\<inpField\>
output file | - | -
output field | volVectorField | $FOAM_CASE/\<time\>/\<outField\>
\endtable
Minimal example by using \c system/controlDict.functions:
// Mandatory entries (unmodifiable)
// Optional (inherited) entries
Property | Description | Type | Req'd | Dflt
type | Type name: vorticity | word | yes | -
libs | Library name: fieldFunctionObjects | word | yes | -
The inherited entries are elaborated in:
- \link functionObject.H \endlink
- \link fieldExpression.H \endlink
Minimal example by using the \c postProcess utility:
\verbatim
postProcess -func vorticity
\endverbatim
- Foam::functionObject
- Foam::functionObjects::fvMeshFunctionObject
- Foam::functionObjects::fieldExpression
- ExtendedCodeGuide::functionObjects::field::vorticity
\*---------------------------------------------------------------------------*/
#ifndef functionObjects_vorticity_H
#define functionObjects_vorticity_H
#include "fieldExpression.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
Henry Weller
committed
namespace functionObjects
/*---------------------------------------------------------------------------*\
\*---------------------------------------------------------------------------*/
// Private Member Functions
//- Calculate the vorticity field and return true if successful
virtual bool calc();
public:
//- Runtime type information
//- Construct from Time and dictionary
const Time& runTime,
const dictionary& dict
//- No copy construct
vorticity(const vorticity&) = delete;
//- No copy assignment
void operator=(const vorticity&) = delete;
virtual ~vorticity() = default;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Henry Weller
committed
} // End namespace functionObjects
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //