Lambda2.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2013-2016 OpenFOAM Foundation
9 Copyright (C) 2020 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::functionObjects::Lambda2
29
30Group
31 grpFieldFunctionObjects
32
33Description
34 Computes the second largest eigenvalue of the sum of the square of
35 the symmetrical and anti-symmetrical parts of the velocity gradient tensor.
36
37 Operands:
38 \table
39 Operand | Type | Location
40 input | volVectorField | $FOAM_CASE/<time>/<inpField>
41 output file | - | -
42 output field | volScalarField | $FOAM_CASE/<time>/<outField>
43 \endtable
44
45Usage
46 Minimal example by using \c system/controlDict.functions:
47 \verbatim
48 Lambda21
49 {
50 // Mandatory entries (unmodifiable)
51 type Lambda2;
52 libs (fieldFunctionObjects);
53
54 // Optional (inherited) entries
55 ...
56 }
57 \endverbatim
58
59 where the entries mean:
60 \table
61 Property | Description | Type | Req'd | Dflt
62 type | Type name: Lambda2 | word | yes | -
63 libs | Library name: fieldFunctionObjects | word | yes | -
64 \endtable
65
66 The inherited entries are elaborated in:
67 - \link functionObject.H \endlink
68 - \link fieldExpression.H \endlink
69
70 Minimal example by using the \c postProcess utility:
71 \verbatim
72 postProcess -func Lambda2
73 \endverbatim
74
75See also
76 - Foam::functionObject
77 - Foam::functionObjects::fvMeshFunctionObject
78 - Foam::functionObjects::fieldExpression
79 - ExtendedCodeGuide::functionObjects::field::Lambda2
80
81SourceFiles
82 Lambda2.C
83
84\*---------------------------------------------------------------------------*/
85
86#ifndef functionObjects_Lambda2_H
87#define functionObjects_Lambda2_H
88
89#include "fieldExpression.H"
90
91// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92
93namespace Foam
94{
95namespace functionObjects
96{
97
98/*---------------------------------------------------------------------------*\
99 Class Lambda2 Declaration
100\*---------------------------------------------------------------------------*/
101
102class Lambda2
103:
104 public fieldExpression
105{
106 // Private Member Functions
107
108 //- Calculate the Lambda2 field and return true if successful
109 virtual bool calc();
110
111
112public:
113
114 //- Runtime type information
115 TypeName("Lambda2");
116
117
118 // Constructors
119
120 //- Construct from Time and dictionary
121 Lambda2
122 (
123 const word& name,
124 const Time& runTime,
125 const dictionary& dict
126 );
127
128 //- No copy construct
129 Lambda2(const Lambda2&) = delete;
130
131 //- No copy assignment
132 void operator=(const Lambda2&) = delete;
133
134
135 //- Destructor
136 virtual ~Lambda2() = default;
137};
138
139
140// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141
142} // End namespace functionObjects
143} // End namespace Foam
144
145// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146
147#endif
149// ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:80
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
const word & name() const noexcept
Return the name of this functionObject.
Computes the second largest eigenvalue of the sum of the square of the symmetrical and anti-symmetric...
Definition: Lambda2.H:138
virtual ~Lambda2()=default
Destructor.
TypeName("Lambda2")
Runtime type information.
Lambda2(const Lambda2 &)=delete
No copy construct.
Lambda2(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Definition: Lambda2.C:78
void operator=(const Lambda2 &)=delete
No copy assignment.
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
A class for handling words, derived from Foam::string.
Definition: word.H:68
engineTime & runTime
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73