This function object calculates and outputs the second largest eigenvalue of the sum of the square of the symmetrical and anti-symmetrical parts of the velocity gradient tensor. More...
Public Member Functions | |
TypeName ("Lambda2") | |
Runtime type information. More... | |
Lambda2 (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~Lambda2 () |
Destructor. More... | |
virtual const word & | name () const |
Return name of the set of Lambda2. More... | |
virtual void | read (const dictionary &) |
Read the Lambda2 data. More... | |
virtual void | execute () |
Execute, currently does nothing. More... | |
virtual void | end () |
Execute at the final time-loop, currently does nothing. More... | |
virtual void | timeSet () |
Called when time was set at the end of the Time::operator++. More... | |
virtual void | write () |
Calculate the Lambda2 and write. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &) |
Update for changes of mesh. More... | |
Private Member Functions | |
Lambda2 (const Lambda2 &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const Lambda2 &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
word | name_ |
Name of this set of Lambda2 objects. More... | |
const objectRegistry & | obr_ |
Reference to the database. More... | |
bool | active_ |
On/off switch. More... | |
word | UName_ |
Name of velocity field, default is "U". More... | |
word | resultName_ |
Result name. More... | |
Switch | log_ |
Switch to send output to Info as well as to file. More... | |
This function object calculates and outputs the second largest eigenvalue of the sum of the square of the symmetrical and anti-symmetrical parts of the velocity gradient tensor.
Example of function object specification to calculate Lambda2:
Lambda2_1 { type Lambda2; functionObjectLibs ("libutilityFunctionObjects.so"); ... }
Function object usage
Property | Description | Required | Default value |
---|---|---|---|
type | Type name: Lambda2 | yes | |
UName | Name of velocity field | no | U |
resultName | Name of Lambda2 field | no | <function name> |
log | Log to standard output | no | yes |
Lambda2 | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
const bool | loadFromFiles = false |
||
) |
Construct for given objectRegistry and dictionary.
Allow the possibility to load fields from files
Definition at line 43 of file Lambda2.C.
References dict, Foam::dimless, Foam::dimTime, Foam::endl(), mesh, Foam::nl, Foam::read(), Foam::sqr(), and WarningInFunction.
|
private |
Disallow default bitwise assignment.
TypeName | ( | "Lambda2" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the set of Lambda2.
Definition at line 165 of file Lambda2.H.
References Lambda2::name_.
Referenced by Lambda2::write().
|
virtual |
Read the Lambda2 data.
Definition at line 102 of file Lambda2.C.
References dict, and dictionary::readIfPresent().
|
virtual |
Execute, currently does nothing.
Definition at line 121 of file Lambda2.C.
References Foam::component(), Foam::eigenValues(), Foam::fvc::grad(), objectRegistry::lookupObject(), mesh, Foam::skew(), Foam::symm(), U, and Vector< scalar >::Y.
|
virtual |
|
virtual |
Called when time was set at the end of the Time::operator++.
|
virtual |
Calculate the Lambda2 and write.
Definition at line 161 of file Lambda2.C.
References Foam::endl(), Foam::Info, Lambda2::name(), Foam::nl, Foam::type(), and Lambda2::write().
Referenced by Foam::calc(), and Lambda2::write().
|
inlinevirtual |
|
inlinevirtual |
|
private |
Name of this set of Lambda2 objects.
Definition at line 112 of file Lambda2.H.
Referenced by Lambda2::name().
|
private |
|
private |
|
private |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.