functionObjects: Separated writeFile and logFiles (previously writeFiles) from regionFunctionObject
Now the functionality to write single graph files or log files (vs time) may be used in the creation of any form of functionObject, not just those relating to a mesh region.
This commit is contained in:
@ -121,7 +121,8 @@ Foam::functionObjects::yPlus::yPlus
|
||||
const dictionary& dict
|
||||
)
|
||||
:
|
||||
writeFiles(name, runTime, dict, name)
|
||||
regionFunctionObject(name, runTime, dict),
|
||||
logFiles(obr_, name)
|
||||
{
|
||||
if (!isA<fvMesh>(obr_))
|
||||
{
|
||||
@ -164,7 +165,7 @@ Foam::functionObjects::yPlus::~yPlus()
|
||||
|
||||
bool Foam::functionObjects::yPlus::read(const dictionary& dict)
|
||||
{
|
||||
writeFiles::read(dict);
|
||||
regionFunctionObject::read(dict);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -208,7 +209,7 @@ bool Foam::functionObjects::yPlus::write()
|
||||
|
||||
yPlus.write();
|
||||
|
||||
writeFiles::write();
|
||||
logFiles::write();
|
||||
|
||||
const volScalarField::Boundary& yPlusBf = yPlus.boundaryField();
|
||||
|
||||
|
||||
@ -33,7 +33,8 @@ Description
|
||||
|
||||
See also
|
||||
Foam::functionObject
|
||||
Foam::functionObjects::writeFiles
|
||||
Foam::functionObjects::regionFunctionObject
|
||||
Foam::functionObjects::logFiles
|
||||
Foam::functionObjects::timeControl
|
||||
|
||||
SourceFiles
|
||||
@ -44,7 +45,8 @@ SourceFiles
|
||||
#ifndef functionObjects_yPlus_H
|
||||
#define functionObjects_yPlus_H
|
||||
|
||||
#include "writeFiles.H"
|
||||
#include "regionFunctionObject.H"
|
||||
#include "logFiles.H"
|
||||
#include "volFieldsFwd.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -65,7 +67,8 @@ namespace functionObjects
|
||||
|
||||
class yPlus
|
||||
:
|
||||
public writeFiles
|
||||
public regionFunctionObject,
|
||||
public logFiles
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user