mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Lambda2: reverse the sign of the governing equation (fixes #2731)
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2013-2016 OpenFOAM Foundation
|
Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2019-2020 OpenCFD Ltd.
|
Copyright (C) 2019-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -61,10 +61,11 @@ bool Foam::functionObjects::Lambda2::calc()
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// (JH:p. 76-78)
|
||||||
return store
|
return store
|
||||||
(
|
(
|
||||||
resultName_,
|
resultName_,
|
||||||
-eigenValues(SSplusWW)().component(vector::Y)
|
eigenValues(SSplusWW)().component(vector::Y)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2013-2016 OpenFOAM Foundation
|
Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2020 OpenCFD Ltd.
|
Copyright (C) 2020-2023 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -37,28 +37,37 @@ Description
|
|||||||
Operands:
|
Operands:
|
||||||
\table
|
\table
|
||||||
Operand | Type | Location
|
Operand | Type | Location
|
||||||
input | volVectorField | $FOAM_CASE/\<time\>/\<inpField\>
|
input | volVectorField | \<case\>/\<time\>/\<inpField\>
|
||||||
output file | - | -
|
output file | - | -
|
||||||
output field | volScalarField | $FOAM_CASE/\<time\>/\<outField\>
|
output field | volScalarField | \<case\>/\<time\>/\<outField\>
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
|
References:
|
||||||
|
\verbatim
|
||||||
|
Governing equation (tag:JH):
|
||||||
|
Jeong, J., & Hussain, F. (1995).
|
||||||
|
On the identification of a vortex.
|
||||||
|
Journal of Fluid Mechanics, 285, 69-94.
|
||||||
|
DOI:10.1017/S0022112095000462
|
||||||
|
\endverbatim
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
Minimal example by using \c system/controlDict.functions:
|
Minimal example by using \c system/controlDict.functions:
|
||||||
\verbatim
|
\verbatim
|
||||||
Lambda21
|
Lambda21
|
||||||
{
|
{
|
||||||
// Mandatory entries (unmodifiable)
|
// Mandatory entries
|
||||||
type Lambda2;
|
type Lambda2;
|
||||||
libs (fieldFunctionObjects);
|
libs (fieldFunctionObjects);
|
||||||
|
|
||||||
// Optional (inherited) entries
|
// Inherited entries
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
\endverbatim
|
\endverbatim
|
||||||
|
|
||||||
where the entries mean:
|
where the entries mean:
|
||||||
\table
|
\table
|
||||||
Property | Description | Type | Req'd | Dflt
|
Property | Description | Type | Reqd | Deflt
|
||||||
type | Type name: Lambda2 | word | yes | -
|
type | Type name: Lambda2 | word | yes | -
|
||||||
libs | Library name: fieldFunctionObjects | word | yes | -
|
libs | Library name: fieldFunctionObjects | word | yes | -
|
||||||
\endtable
|
\endtable
|
||||||
@ -72,12 +81,6 @@ Usage
|
|||||||
postProcess -func Lambda2
|
postProcess -func Lambda2
|
||||||
\endverbatim
|
\endverbatim
|
||||||
|
|
||||||
See also
|
|
||||||
- Foam::functionObject
|
|
||||||
- Foam::functionObjects::fvMeshFunctionObject
|
|
||||||
- Foam::functionObjects::fieldExpression
|
|
||||||
- ExtendedCodeGuide::functionObjects::field::Lambda2
|
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
Lambda2.C
|
Lambda2.C
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user