This function object allows user-selected fields/registered objects to be written at a custom write interval. The interval is given in terms of number of overall dumps. More...
Public Member Functions | |
TypeName ("partialWrite") | |
Runtime type information. More... | |
partialWrite (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~partialWrite () |
Destructor. More... | |
virtual const word & | name () const |
Return name of the partialWrite. More... | |
virtual void | read (const dictionary &) |
Read the partialWrite data. More... | |
virtual void | execute () |
Execute. 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 the partialWrite. 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 | |
partialWrite (const partialWrite &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const partialWrite &) |
Disallow default bitwise assignment. More... | |
template<class Type > | |
void | loadField (const word &, UPtrList< GeometricField< Type, fvPatchField, volMesh > > &, UPtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > &) const |
Load objects in the objectNames. More... | |
template<class Type > | |
void | changeWriteOptions (UPtrList< GeometricField< Type, fvPatchField, volMesh > > &, UPtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > &, const IOobject::writeOption) const |
Protected Attributes | |
word | name_ |
Name of this set of partialWrite object. More... | |
const objectRegistry & | obr_ |
Refefence to the database. More... | |
Switch | log_ |
Switch to send output to Info as well as to file. More... | |
UPtrList< volScalarField > | vsf_ |
Loaded fields. More... | |
UPtrList< volVectorField > | vvf_ |
UPtrList< volSphericalTensorField > | vSpheretf_ |
UPtrList< volSymmTensorField > | vSymmtf_ |
UPtrList< volTensorField > | vtf_ |
UPtrList< surfaceScalarField > | ssf_ |
UPtrList< surfaceVectorField > | svf_ |
UPtrList< surfaceSphericalTensorField > | sSpheretf_ |
UPtrList< surfaceSymmTensorField > | sSymmtf_ |
UPtrList< surfaceTensorField > | stf_ |
HashSet< word > | objectNames_ |
Names of objects to dump always. More... | |
label | writeInterval_ |
Write interval for restart dump. More... | |
label | writeInstance_ |
Current dump instance. If reaches writeInterval do a full write. More... | |
This function object allows user-selected fields/registered objects to be written at a custom write interval. The interval is given in terms of number of overall dumps.
Example of function object specification:
partialWrite1 { type partialWrite; functionObjectLibs ("libIOFunctionObjects.so"); ... objectNames (p U T); writeInterval 100; }
Function object usage
Property | Description | Required | Default value |
---|---|---|---|
type | type name: partialWrite | yes | |
objectNames | objects to write | yes | |
writeInterval | write interval | yes | |
log | Log to standard output | no | yes |
Definition at line 113 of file partialWrite.H.
|
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.
References dict, and Foam::read().
|
virtual |
Destructor.
Definition at line 61 of file partialWrite.C.
|
protected |
Disallow default bitwise assignment.
|
protected |
Load objects in the objectNames.
Definition at line 35 of file partialWriteTemplates.C.
References Foam::endl(), and Foam::Info.
|
protected |
Definition at line 87 of file partialWriteTemplates.C.
References forAll.
TypeName | ( | "partialWrite" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the partialWrite.
Definition at line 208 of file partialWrite.H.
References partialWrite::name_.
|
virtual |
Read the partialWrite data.
Definition at line 67 of file partialWrite.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter(), Foam::Info, dictionary::lookup(), Foam::name(), Foam::nl, and Foam::type().
|
virtual |
Execute.
Definition at line 136 of file partialWrite.C.
|
virtual |
Execute at the final time-loop, currently does nothing.
Definition at line 142 of file partialWrite.C.
|
virtual |
Called when time was set at the end of the Time::operator++.
Definition at line 148 of file partialWrite.C.
References IOobject::AUTO_WRITE, and IOobject::NO_WRITE.
|
virtual |
Write the partialWrite.
Definition at line 198 of file partialWrite.C.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 229 of file partialWrite.H.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 233 of file partialWrite.H.
|
protected |
Name of this set of partialWrite object.
Definition at line 120 of file partialWrite.H.
Referenced by partialWrite::name().
|
protected |
Refefence to the database.
Definition at line 123 of file partialWrite.H.
|
protected |
Switch to send output to Info as well as to file.
Definition at line 126 of file partialWrite.H.
|
protected |
Loaded fields.
Definition at line 129 of file partialWrite.H.
|
protected |
Definition at line 130 of file partialWrite.H.
|
protected |
Definition at line 131 of file partialWrite.H.
|
protected |
Definition at line 132 of file partialWrite.H.
|
protected |
Definition at line 133 of file partialWrite.H.
|
protected |
Definition at line 135 of file partialWrite.H.
|
protected |
Definition at line 136 of file partialWrite.H.
|
protected |
Definition at line 137 of file partialWrite.H.
|
protected |
Definition at line 138 of file partialWrite.H.
|
protected |
Definition at line 139 of file partialWrite.H.
Names of objects to dump always.
Definition at line 144 of file partialWrite.H.
|
protected |
Write interval for restart dump.
Definition at line 147 of file partialWrite.H.
|
protected |
Current dump instance. If reaches writeInterval do a full write.
Definition at line 152 of file partialWrite.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.