This function object calculates and outputs the Peclet number as a surfaceScalarField. More...
Public Member Functions | |
TypeName ("Peclet") | |
Runtime type information. More... | |
Peclet (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~Peclet () |
Destructor. More... | |
virtual const word & | name () const |
Return name of the set of Peclet. More... | |
virtual void | read (const dictionary &) |
Read the Peclet 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 Peclet 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 | |
Peclet (const Peclet &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const Peclet &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
word | name_ |
Name of this set of Peclet objects. More... | |
const objectRegistry & | obr_ |
Reference to the database. More... | |
bool | active_ |
On/off switch. More... | |
word | phiName_ |
Name of flux field, default is "phi". 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 Peclet number as a surfaceScalarField.
Example of function object specification to calculate the Peclet number:
Peclet1 { type Peclet; functionObjectLibs ("libutilityFunctionObjects.so"); ... }
Function object usage
Property | Description | Required | Default value |
---|---|---|---|
type | type name: Peclet | yes | |
phiName | Name of flux field | no | phi |
resultName | Name of Peclet field | no | <function name> |
log | Log to standard output | no | yes |
Peclet | ( | 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 45 of file Peclet.C.
References dict, Foam::dimless, Foam::endl(), mesh, Foam::nl, Foam::read(), and WarningInFunction.
|
private |
Disallow default bitwise assignment.
TypeName | ( | "Peclet" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the set of Peclet.
Definition at line 164 of file Peclet.H.
References Peclet::name_.
Referenced by Peclet::write().
|
virtual |
Read the Peclet data.
Definition at line 104 of file Peclet.C.
References dict, and dictionary::readIfPresent().
|
virtual |
Execute, currently does nothing.
Definition at line 115 of file Peclet.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, objectRegistry::foundObject(), Foam::fvc::interpolate(), dictionary::lookup(), objectRegistry::lookupObject(), Foam::mag(), fvMesh::magSf(), mesh, IOobject::NO_READ, IOobject::NO_WRITE, phi, turbulenceModel::propertiesName, fvMesh::time(), and Time::timeName().
|
virtual |
|
virtual |
Called when time was set at the end of the Time::operator++.
|
virtual |
Calculate the Peclet and write.
Definition at line 215 of file Peclet.C.
References Foam::endl(), Foam::Info, Peclet::name(), Foam::nl, Foam::type(), and Peclet::write().
Referenced by Peclet::write().
|
inlinevirtual |
|
inlinevirtual |
|
private |
Name of this set of Peclet objects.
Definition at line 111 of file Peclet.H.
Referenced by Peclet::name().
|
private |
|
private |
|
private |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.