This function object calculates and outputs the vorticity, the curl of the velocity as a volvectorField. The field is stored on the mesh database so that it can be retrieved and used for other applications. More...
Public Member Functions | |
TypeName ("vorticity") | |
Runtime type information. More... | |
vorticity (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~vorticity () |
Destructor. More... | |
virtual const word & | name () const |
Return name of the set of vorticity. More... | |
virtual void | read (const dictionary &) |
Read the vorticity 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 vorticity 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 | |
vorticity (const vorticity &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const vorticity &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
word | name_ |
Name of this set of vorticity 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_ |
Name of vorticity field. More... | |
Switch | log_ |
Switch to send output to Info as well as to file. More... | |
This function object calculates and outputs the vorticity, the curl of the velocity as a volvectorField. The field is stored on the mesh database so that it can be retrieved and used for other applications.
Example of function object specification to calculate the vorticity:
vorticity1 { type vorticity; functionObjectLibs ("libutilityFunctionObjects.so"); ... }
Function object usage
Property | Description | Required | Default value |
---|---|---|---|
type | Type name: vorticity | yes | |
UName | Name of velocity field | no | U |
resultName | Name of Courant number field | no | <function name> |
log | Log to standard output | no | yes |
Definition at line 106 of file vorticity.H.
vorticity | ( | 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 vorticity.C.
References dict, Foam::dimless, Foam::dimTime, Foam::endl(), mesh, Foam::nl, Foam::read(), and WarningInFunction.
|
virtual |
Destructor.
Definition at line 95 of file vorticity.C.
|
private |
Disallow default bitwise assignment.
TypeName | ( | "vorticity" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the set of vorticity.
Definition at line 164 of file vorticity.H.
References vorticity::name_.
Referenced by vorticity::write().
|
virtual |
Read the vorticity data.
Definition at line 101 of file vorticity.C.
References dict, and dictionary::readIfPresent().
|
virtual |
Execute, currently does nothing.
Definition at line 120 of file vorticity.C.
References Foam::fvc::curl(), and U.
|
virtual |
Execute at the final time-loop, currently does nothing.
Definition at line 137 of file vorticity.C.
|
virtual |
Called when time was set at the end of the Time::operator++.
Definition at line 143 of file vorticity.C.
|
virtual |
Calculate the vorticity and write.
Definition at line 149 of file vorticity.C.
References Foam::endl(), Foam::Info, vorticity::name(), Foam::nl, Foam::type(), and vorticity::write().
Referenced by vorticityWriter::write(), and vorticity::write().
|
inlinevirtual |
Update for changes of mesh.
Definition at line 185 of file vorticity.H.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 189 of file vorticity.H.
|
private |
Name of this set of vorticity objects.
Definition at line 111 of file vorticity.H.
Referenced by vorticity::name().
|
private |
Reference to the database.
Definition at line 114 of file vorticity.H.
|
private |
On/off switch.
Definition at line 117 of file vorticity.H.
|
private |
Name of velocity field, default is "U".
Definition at line 120 of file vorticity.H.
|
private |
Name of vorticity field.
Definition at line 123 of file vorticity.H.
|
private |
Switch to send output to Info as well as to file.
Definition at line 126 of file vorticity.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.