Allows some fields/registered objects to be written more often than others. More...
#include <IOFunctionObjects/partialWrite.H>
Allows some fields/registered objects to be written more often than others.
Works in the opposite way: deletes at intermediate times all but selected fields.
Definition at line 61 of file partialWrite.H.
Public Member Functions | |
TypeName ("partialWrite") | |
Runtime type information. | |
partialWrite (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. | |
virtual | ~partialWrite () |
Destructor. | |
virtual const word & | name () const |
Return name of the partialWrite. | |
virtual void | read (const dictionary &) |
Read the partialWrite data. | |
virtual void | execute () |
Execute, currently does nothing. | |
virtual void | end () |
Execute at the final time-loop, currently does nothing. | |
virtual void | write () |
Write the partialWrite. | |
virtual void | updateMesh (const mapPolyMesh &) |
Update for changes of mesh. | |
virtual void | movePoints (const pointField &) |
Update for changes of mesh. |
Protected Member Functions | |
partialWrite (const partialWrite &) | |
Disallow default bitwise copy construct. | |
void | operator= (const partialWrite &) |
Disallow default bitwise assignment. |
Protected Attributes | |
word | name_ |
Name of this set of partialWrite. | |
const objectRegistry & | obr_ |
HashSet< word > | objectNames_ |
Names of objects to dump always. | |
label | writeInterval_ |
Write interval for restart dump. | |
label | writeInstance_ |
Current dump instance. If reaches writeInterval do a full write. |
|
protected |
Disallow default bitwise copy construct.
partialWrite | ( | 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 44 of file partialWrite.C.
|
virtual |
Destructor.
Definition at line 60 of file partialWrite.C.
|
protected |
Disallow default bitwise assignment.
TypeName | ( | "partialWrite" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the partialWrite.
Definition at line 121 of file partialWrite.H.
References partialWrite::name_.
|
virtual |
Read the partialWrite data.
Definition at line 66 of file partialWrite.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, forAllConstIter, Foam::Info, dictionary::lookup(), Foam::name(), Foam::nl, and Foam::type().
|
virtual |
Execute, currently does nothing.
Definition at line 93 of file partialWrite.C.
|
virtual |
Execute at the final time-loop, currently does nothing.
Definition at line 100 of file partialWrite.C.
|
virtual |
Write the partialWrite.
Definition at line 107 of file partialWrite.C.
References fileName::DIRECTORY, Foam::endl(), f(), forAll, forAllConstIter, OSstream::name(), fileName::name(), Foam::name(), Foam::Pout, cloud::prefix, Foam::readDir(), and Foam::rm().
|
inlinevirtual |
Update for changes of mesh.
Definition at line 139 of file partialWrite.H.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 143 of file partialWrite.H.
|
protected |
Name of this set of partialWrite.
Definition at line 68 of file partialWrite.H.
Referenced by partialWrite::name().
|
protected |
Definition at line 70 of file partialWrite.H.
Names of objects to dump always.
Definition at line 76 of file partialWrite.H.
|
protected |
Write interval for restart dump.
Definition at line 79 of file partialWrite.H.
|
protected |
Current dump instance. If reaches writeInterval do a full write.
Definition at line 83 of file partialWrite.H.