Allows specification of different writing frequency of objects registered to the database. More...
Public Types | |
enum | writeOption { AUTO_WRITE, NO_WRITE, ANY_WRITE } |
Public Member Functions | |
TypeName ("writeObjects") | |
writeObjects (const word &name, const Time &runTime, const dictionary &dict) | |
virtual | ~writeObjects ()=default |
virtual bool | read (const dictionary &) |
virtual bool | execute () |
virtual bool | write () |
![]() | |
declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) | |
functionObject (const word &name, const bool withNamePrefix=defaultUseNamePrefix) | |
autoPtr< functionObject > | clone () const |
virtual | ~functionObject ()=default |
virtual const word & | type () const =0 |
const word & | name () const noexcept |
bool | useNamePrefix () const noexcept |
bool | useNamePrefix (bool on) noexcept |
virtual bool | execute (const label subIndex) |
virtual bool | end () |
virtual bool | adjustTimeStep () |
virtual bool | filesModified () const |
virtual void | updateMesh (const mapPolyMesh &mpm) |
virtual void | movePoints (const polyMesh &mesh) |
Static Public Attributes | |
static const Enum< writeOption > | writeOptionNames_ |
![]() | |
static int | debug |
static bool | postProcess |
static bool | defaultUseNamePrefix |
static word | outputPrefix |
Additional Inherited Members | |
![]() | |
static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
![]() | |
bool | log |
![]() | |
word | scopedName (const word &name) const |
Allows specification of different writing frequency of objects registered to the database.
It has similar functionality as the main time database through the writeControl
setting:
It also has the ability to write the selected objects that were defined with the respective write mode for the requested writeOption
, namely:
![]() | = | objects set to write at output time |
![]() | = | objects set to not write by default |
![]() | = | any option of the previous two |
writeObjects1 { type writeObjects; libs (utilityFunctionObjects); ... objects (obj1 obj2); writeOption anyWrite; }
Where the entries comprise:
Property | Description | Required | Default value |
---|---|---|---|
type | type name: writeObjects | yes | |
objects | objects to write | yes | |
writeOption | only those with this write option | no | anyWrite |
Note: Regular expressions can also be used in objects
.
Definition at line 135 of file writeObjects.H.
enum writeOption |
Enumerator | |
---|---|
AUTO_WRITE | |
NO_WRITE | |
ANY_WRITE |
Definition at line 145 of file writeObjects.H.
writeObjects | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Definition at line 60 of file writeObjects.C.
References dict, and Foam::blockMeshTools::read().
|
virtualdefault |
TypeName | ( | "writeObjects" | ) |
|
virtual |
Reimplemented from functionObject.
Definition at line 83 of file writeObjects.C.
References dict, Enum::getOrDefault(), functionObject::read(), List::resize(), and writeObjects::writeOptionNames_.
|
virtual |
Implements functionObject.
Definition at line 112 of file writeObjects.C.
|
virtual |
Implements functionObject.
Definition at line 118 of file writeObjects.C.
References bitSet::any(), IOobject::AUTO_WRITE, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::flatOutput(), Foam::ListOps::found(), Log, Foam::name(), IOobject::name(), Foam::nl, IOobject::NO_WRITE, bitSet::set(), Foam::subset(), Foam::type(), WarningInFunction, regIOobject::write(), and IOobject::writeOpt().
|
static |
Definition at line 152 of file writeObjects.H.
Referenced by writeObjects::read().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.