This function object reads fields from the time directories and adds them to the mesh database for further post-processing. More...
Public Member Functions | |
TypeName ("readFields") | |
Runtime type information. More... | |
readFields (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~readFields () |
Destructor. More... | |
virtual const word & | name () const |
Return name of the readFields object. More... | |
virtual void | read (const dictionary &) |
Read the field min/max 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 () |
Write. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &) |
Update for changes of mesh. More... | |
Protected Member Functions | |
readFields (const readFields &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const readFields &) |
Disallow default bitwise assignment. More... | |
template<class Type > | |
void | loadField (const word &) const |
Protected Attributes | |
word | name_ |
Name of this set of readFields object. More... | |
const objectRegistry & | obr_ |
bool | active_ |
on/off switch More... | |
wordList | fieldSet_ |
Fields to load. More... | |
Switch | log_ |
Switch to send output to Info as well as to file. More... | |
This function object reads fields from the time directories and adds them to the mesh database for further post-processing.
Example of function object specification:
readFields1 { type readFields; functionObjectLibs ("libfieldFunctionObjects.so"); ... fields (U p); }
Function object usage
Property | Description | Required | Default value |
---|---|---|---|
type | type name: readFields | yes | |
fields | list of fields to read | no | |
log | Log to standard output | no | yes |
Definition at line 104 of file readFields.H.
|
protected |
Disallow default bitwise copy construct.
readFields | ( | 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 40 of file readFields.C.
References dict, Foam::endl(), Foam::read(), and WarningInFunction.
|
virtual |
Destructor.
Definition at line 70 of file readFields.C.
|
protected |
Disallow default bitwise assignment.
|
protected |
Definition at line 34 of file readFieldsTemplates.C.
References Foam::endl(), objectRegistry::foundObject(), IOobject::headerClassName(), IOobject::headerOk(), Foam::Info, readFields::log_, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, and readFields::obr_.
TypeName | ( | "readFields" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the readFields object.
Definition at line 163 of file readFields.H.
References readFields::name_.
|
virtual |
Read the field min/max data.
Definition at line 76 of file readFields.C.
References dict, and dictionary::lookup().
|
virtual |
|
virtual |
Execute at the final time-loop, currently does nothing.
Definition at line 105 of file readFields.C.
|
virtual |
Called when time was set at the end of the Time::operator++.
Definition at line 111 of file readFields.C.
|
virtual |
Write.
Definition at line 117 of file readFields.C.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 184 of file readFields.H.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 188 of file readFields.H.
|
protected |
Name of this set of readFields object.
Definition at line 111 of file readFields.H.
Referenced by readFields::name().
|
protected |
Definition at line 113 of file readFields.H.
Referenced by readFields::loadField().
|
protected |
on/off switch
Definition at line 116 of file readFields.H.
|
protected |
Fields to load.
Definition at line 119 of file readFields.H.
|
protected |
Switch to send output to Info as well as to file.
Definition at line 122 of file readFields.H.
Referenced by readFields::loadField().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.