functionObjects::writeLocalObjects: Provides support for controlled writing of field

defined by functionObjects, e.g. wallHeatFlux, wallShearStress and yPlus.

Patch contributed by Bruno Santos
Resolves bug-report http://bugs.openfoam.org/view.php?id=2353
This commit is contained in:
Henry Weller
2016-12-09 21:54:13 +00:00
parent 3140cfa906
commit 249c09933e
13 changed files with 731 additions and 123 deletions

View File

@ -72,6 +72,7 @@ Usage
See also
Foam::functionObject
Foam::functionObjects::writeObjectsBase
Foam::functionObjects::timeControl
SourceFiles
@ -83,7 +84,7 @@ SourceFiles
#define functionObjects_writeObjects_H
#include "functionObject.H"
#include "wordReList.H"
#include "writeObjectsBase.H"
#include "NamedEnum.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -91,9 +92,6 @@ SourceFiles
namespace Foam
{
// Forward declaration of classes
class objectRegistry;
namespace functionObjects
{
@ -103,7 +101,8 @@ namespace functionObjects
class writeObjects
:
public functionObject
public functionObject,
public writeObjectsBase
{
public:
@ -124,18 +123,15 @@ private:
// Private data
//- Reference to Db
const objectRegistry& obr_;
//- To only write objects of defined writeOption
writeOption writeOption_;
//- Names of objects to control
wordReList objectNames_;
// Private Member Functions
//- Write the requested registered IO object
virtual void writeObject(const regIOobject& obj);
//- Disallow default bitwise copy construct
writeObjects(const writeObjects&);