functionObjectFile: Separated into functionObjectFile and functionObjectFiles

functionObjectFile provides basic directory, file and formatting functions
functionObjectFiles provides multi-file cache
This commit is contained in:
Henry Weller
2016-04-30 09:18:42 +01:00
parent 1fbf79d231
commit 7155ef61ae
33 changed files with 488 additions and 347 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -46,7 +46,7 @@ Foam::residuals::residuals
const bool loadFromFiles
)
:
functionObjectFile(obr, name, typeName),
functionObjectFiles(obr, name, typeName),
name_(name),
obr_(obr),
active_(true),
@ -121,7 +121,7 @@ void Foam::residuals::write()
{
if (active_)
{
functionObjectFile::write();
functionObjectFiles::write();
if (Pstream::master())
{

View File

@ -62,7 +62,7 @@ SourceFiles
#ifndef residuals_H
#define residuals_H
#include "functionObjectFile.H"
#include "functionObjectFiles.H"
#include "primitiveFieldsFwd.H"
#include "volFieldsFwd.H"
#include "HashSet.H"
@ -88,7 +88,7 @@ class mapPolyMesh;
class residuals
:
public functionObjectFile
public functionObjectFiles
{
protected:

View File

@ -99,7 +99,7 @@ Foam::wallShearStress::wallShearStress
const bool loadFromFiles
)
:
functionObjectFile(obr, name, typeName),
functionObjectFiles(obr, name, typeName),
name_(name),
obr_(obr),
active_(true),
@ -220,7 +220,7 @@ void Foam::wallShearStress::execute()
if (active_)
{
functionObjectFile::write();
functionObjectFiles::write();
const fvMesh& mesh = refCast<const fvMesh>(obr_);
@ -279,7 +279,7 @@ void Foam::wallShearStress::write()
{
if (active_)
{
functionObjectFile::write();
functionObjectFiles::write();
const volVectorField& wallShearStress =
obr_.lookupObject<volVectorField>(type());

View File

@ -73,10 +73,10 @@ SourceFiles
#ifndef wallShearStress_H
#define wallShearStress_H
#include "functionObjectFile.H"
#include "functionObjectFiles.H"
#include "volFieldsFwd.H"
#include "Switch.H"
#include "OFstream.H"
#include "HashSet.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -96,7 +96,7 @@ class fvMesh;
class wallShearStress
:
public functionObjectFile
public functionObjectFiles
{
protected:

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -61,7 +61,7 @@ Foam::yPlus::yPlus
const bool loadFromFiles
)
:
functionObjectFile(obr, name, typeName),
functionObjectFiles(obr, name, typeName),
name_(name),
obr_(obr),
active_(true),
@ -128,7 +128,7 @@ void Foam::yPlus::execute()
if (active_)
{
functionObjectFile::write();
functionObjectFiles::write();
const fvMesh& mesh = refCast<const fvMesh>(obr_);
@ -184,7 +184,7 @@ void Foam::yPlus::write()
{
if (active_)
{
functionObjectFile::write();
functionObjectFiles::write();
const volScalarField& yPlus =
obr_.lookupObject<volScalarField>(type());

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -40,7 +40,7 @@ SourceFiles
#ifndef yPlus_H
#define yPlus_H
#include "functionObjectFile.H"
#include "functionObjectFiles.H"
#include "volFieldsFwd.H"
#include "Switch.H"
#include "OFstream.H"
@ -63,7 +63,7 @@ class fvMesh;
class yPlus
:
public functionObjectFile
public functionObjectFiles
{
// Private data