This function object calculates and outputs the second invariant of the velocity gradient tensor [1/s^2]. More...
Public Member Functions | |
TypeName ("Q") | |
Runtime type information. More... | |
Q (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~Q () |
Destructor. More... | |
virtual const word & | name () const |
Return name of the set of Q. More... | |
virtual void | read (const dictionary &) |
Read the Q 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 Q 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 | |
Q (const Q &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const Q &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
word | name_ |
Name of this set of Q 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 invariant of the velocity gradient tensor [1/s^2].
where
![]() | = | velocity [m/s] |
Example of function object specification to calculate Q:
Q1 { type Q; functionObjectLibs ("libutilityFunctionObjects.so"); ... }
Function object usage
Property | Description | Required | Default value |
---|---|---|---|
type | type name: Q | yes | |
UName | Name of velocity field | no | U |
resultName | Name of Q field | no | <function name> |
log | Log to standard output | no | yes |
Q | ( | 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 42 of file Q.C.
References dict, Foam::dimless, Foam::dimTime, Foam::endl(), mesh, Foam::nl, Foam::read(), Foam::sqr(), and WarningInFunction.
|
private |
Disallow default bitwise assignment.
TypeName | ( | "Q" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the set of Q.
Definition at line 177 of file Q.H.
References Q::name_.
Referenced by Q::write().
|
virtual |
Read the Q data.
Definition at line 101 of file Q.C.
References dict, and dictionary::readIfPresent().
|
virtual |
Execute, currently does nothing.
Definition at line 120 of file Q.C.
References Foam::fvc::grad(), objectRegistry::lookupObject(), mesh, Foam::sqr(), Foam::tr(), and U.
|
virtual |
|
virtual |
Called when time was set at the end of the Time::operator++.
|
virtual |
Calculate the Q and write.
Definition at line 154 of file Q.C.
References Foam::endl(), Foam::Info, Q::name(), Foam::nl, Foam::type(), and Q::write().
Referenced by Q::write(), and molecule::writeFields().
|
inlinevirtual |
|
inlinevirtual |
|
private |
|
private |
|
private |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.