Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
a2526776
Commit
a2526776
authored
1 year ago
by
Kutalmış Berçin
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Lambda2: reverse the sign of the governing equation (fixes
#2731
)
parent
99f5d9a7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/functionObjects/field/Lambda2/Lambda2.C
+3
-2
3 additions, 2 deletions
src/functionObjects/field/Lambda2/Lambda2.C
src/functionObjects/field/Lambda2/Lambda2.H
+17
-14
17 additions, 14 deletions
src/functionObjects/field/Lambda2/Lambda2.H
with
20 additions
and
16 deletions
src/functionObjects/field/Lambda2/Lambda2.C
+
3
−
2
View file @
a2526776
...
...
@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2013-2016 OpenFOAM Foundation
Copyright (C) 2019-202
0
OpenCFD Ltd.
Copyright (C) 2019-202
3
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -61,10 +61,11 @@ bool Foam::functionObjects::Lambda2::calc()
)
);
// (JH:p. 76-78)
return
store
(
resultName_
,
-
eigenValues
(
SSplusWW
)().
component
(
vector
::
Y
)
eigenValues
(
SSplusWW
)().
component
(
vector
::
Y
)
);
}
...
...
This diff is collapsed.
Click to expand it.
src/functionObjects/field/Lambda2/Lambda2.H
+
17
−
14
View file @
a2526776
...
...
@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2013-2016 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
Copyright (C) 2020
-2023
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -37,30 +37,39 @@ Description
Operands:
\table
Operand | Type | Location
input | volVectorField |
$FOAM_CASE
/\<time\>/\<inpField\>
input | volVectorField |
\<case\>
/\<time\>/\<inpField\>
output file | - | -
output field | volScalarField |
$FOAM_CASE
/\<time\>/\<outField\>
output field | volScalarField |
\<case\>
/\<time\>/\<outField\>
\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
Minimal example by using \c system/controlDict.functions:
\verbatim
Lambda21
{
// Mandatory entries
(unmodifiable)
// Mandatory entries
type Lambda2;
libs (fieldFunctionObjects);
//
Optional (i
nherited
)
entries
//
I
nherited entries
...
}
\endverbatim
where the entries mean:
\table
Property | Description | Type | Req
'
d | Dflt
type | Type name: Lambda2 | word |
yes | -
libs | Library name: fieldFunctionObjects | word |
yes | -
Property | Description | Type | Reqd | D
e
flt
type | Type name: Lambda2 | word | yes | -
libs | Library name: fieldFunctionObjects | word | yes | -
\endtable
The inherited entries are elaborated in:
...
...
@@ -72,12 +81,6 @@ Usage
postProcess -func Lambda2
\endverbatim
See also
- Foam::functionObject
- Foam::functionObjects::fvMeshFunctionObject
- Foam::functionObjects::fieldExpression
- ExtendedCodeGuide::functionObjects::field::Lambda2
SourceFiles
Lambda2.C
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment