ENH: Updated function objects

This commit is contained in:
andy
2012-12-13 10:40:38 +00:00
parent 6aba1d08f8
commit 9d5ce4ae76
47 changed files with 120 additions and 120 deletions

View File

@ -65,7 +65,6 @@ SourceFiles
#ifndef partialWrite_H #ifndef partialWrite_H
#define partialWrite_H #define partialWrite_H
#include "pointFieldFwd.H"
#include "HashSet.H" #include "HashSet.H"
#include "DynamicList.H" #include "DynamicList.H"
#include "runTimeSelectionTables.H" #include "runTimeSelectionTables.H"
@ -78,6 +77,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -166,7 +166,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -61,7 +61,6 @@ SourceFiles
#ifndef removeRegisteredObject_H #ifndef removeRegisteredObject_H
#define removeRegisteredObject_H #define removeRegisteredObject_H
#include "pointFieldFwd.H"
#include "wordList.H" #include "wordList.H"
#include "runTimeSelectionTables.H" #include "runTimeSelectionTables.H"
@ -73,6 +72,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -154,7 +154,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -39,7 +39,6 @@ SourceFiles
#ifndef writeDictionary_H #ifndef writeDictionary_H
#define writeDictionary_H #define writeDictionary_H
#include "pointFieldFwd.H"
#include "wordList.H" #include "wordList.H"
#include "runTimeSelectionTables.H" #include "runTimeSelectionTables.H"
#include "SHA1Digest.H" #include "SHA1Digest.H"
@ -52,6 +51,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -142,7 +142,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -62,7 +62,6 @@ SourceFiles
#ifndef writeRegisteredObject_H #ifndef writeRegisteredObject_H
#define writeRegisteredObject_H #define writeRegisteredObject_H
#include "pointFieldFwd.H"
#include "wordList.H" #include "wordList.H"
#include "runTimeSelectionTables.H" #include "runTimeSelectionTables.H"
@ -74,6 +73,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -155,7 +155,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -170,7 +170,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -408,7 +408,7 @@ void Foam::fieldAverage::updateMesh(const mapPolyMesh&)
} }
void Foam::fieldAverage::movePoints(const pointField&) void Foam::fieldAverage::movePoints(const polyMesh&)
{ {
// Do nothing // Do nothing
} }

View File

@ -116,7 +116,6 @@ SourceFiles
#define fieldAverage_H #define fieldAverage_H
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
#include "pointFieldFwd.H"
#include "Switch.H" #include "Switch.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -130,6 +129,7 @@ class dictionary;
class fieldAverageItem; class fieldAverageItem;
template<class Type> template<class Type>
class List; class List;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -266,15 +266,6 @@ protected:
void readAveragingProperties(); void readAveragingProperties();
// Functions to be over-ridden from IOoutputFilter class
//- Update mesh
virtual void updateMesh(const mapPolyMesh&);
//- Move points
virtual void movePoints(const Field<point>&);
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
fieldAverage(const fieldAverage&); fieldAverage(const fieldAverage&);
@ -324,6 +315,12 @@ public:
//- Calculate the field average data and write //- Calculate the field average data and write
virtual void write(); virtual void write();
//- Update mesh
virtual void updateMesh(const mapPolyMesh&);
//- Move points
virtual void movePoints(const polyMesh&);
}; };

View File

@ -78,7 +78,6 @@ SourceFiles
#define fieldCoordinateSystemTransform_H #define fieldCoordinateSystemTransform_H
#include "OFstream.H" #include "OFstream.H"
#include "pointFieldFwd.H"
#include "volFields.H" #include "volFields.H"
#include "surfaceFields.H" #include "surfaceFields.H"
#include "coordinateSystem.H" #include "coordinateSystem.H"
@ -91,6 +90,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -181,7 +181,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -82,7 +82,6 @@ SourceFiles
#include "HashSet.H" #include "HashSet.H"
#include "OFstream.H" #include "OFstream.H"
#include "Switch.H" #include "Switch.H"
#include "pointFieldFwd.H"
#include "NamedEnum.H" #include "NamedEnum.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -93,6 +92,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -205,7 +205,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -39,18 +39,6 @@ namespace Foam
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
void Foam::fieldValue::updateMesh(const mapPolyMesh&)
{
// Do nothing
}
void Foam::fieldValue::movePoints(const Field<point>&)
{
// Do nothing
}
void Foam::fieldValue::read(const dictionary& dict) void Foam::fieldValue::read(const dictionary& dict)
{ {
if (active_) if (active_)
@ -140,4 +128,16 @@ void Foam::fieldValue::end()
} }
void Foam::fieldValue::updateMesh(const mapPolyMesh&)
{
// Do nothing
}
void Foam::fieldValue::movePoints(const polyMesh&)
{
// Do nothing
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -40,9 +40,9 @@ SourceFiles
#include "functionObjectFile.H" #include "functionObjectFile.H"
#include "Switch.H" #include "Switch.H"
#include "pointFieldFwd.H"
#include "OFstream.H" #include "OFstream.H"
#include "dictionary.H" #include "dictionary.H"
#include "Field.H"
#include "runTimeSelectionTables.H" #include "runTimeSelectionTables.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -53,6 +53,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class fvMesh; class fvMesh;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -93,15 +94,6 @@ protected:
dictionary resultDict_; dictionary resultDict_;
// Functions to be over-ridden from IOoutputFilter class
//- Update mesh
virtual void updateMesh(const mapPolyMesh&);
//- Move points
virtual void movePoints(const Field<point>&);
public: public:
//- Run-time type information //- Run-time type information
@ -193,6 +185,12 @@ public:
//- Execute the at the final time-loop, currently does nothing //- Execute the at the final time-loop, currently does nothing
virtual void end(); virtual void end();
//- Update mesh
virtual void updateMesh(const mapPolyMesh&);
//- Move points
virtual void movePoints(const polyMesh&);
//- Combine fields from all processor domains into single field //- Combine fields from all processor domains into single field
template<class Type> template<class Type>
void combineFields(Field<Type>& field); void combineFields(Field<Type>& field);

View File

@ -48,20 +48,6 @@ namespace Foam
} }
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
void Foam::fieldValues::fieldValueDelta::updateMesh(const mapPolyMesh&)
{
// Do nothing
}
void Foam::fieldValues::fieldValueDelta::movePoints(const Field<point>&)
{
// Do nothing
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::fieldValues::fieldValueDelta::fieldValueDelta Foam::fieldValues::fieldValueDelta::fieldValueDelta
@ -210,4 +196,16 @@ void Foam::fieldValues::fieldValueDelta::end()
} }
void Foam::fieldValues::fieldValueDelta::updateMesh(const mapPolyMesh&)
{
// Do nothing
}
void Foam::fieldValues::fieldValueDelta::movePoints(const polyMesh&)
{
// Do nothing
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -140,12 +140,6 @@ protected:
// Functions to be over-ridden from IOoutputFilter class // Functions to be over-ridden from IOoutputFilter class
//- Update mesh
virtual void updateMesh(const mapPolyMesh&);
//- Move points
virtual void movePoints(const Field<point>&);
//- Output file header information //- Output file header information
virtual void writeFileHeader(const label i); virtual void writeFileHeader(const label i);
@ -185,6 +179,12 @@ public:
//- Execute the at the final time-loop, currently does nothing //- Execute the at the final time-loop, currently does nothing
virtual void end(); virtual void end();
//- Update mesh
virtual void updateMesh(const mapPolyMesh&);
//- Move points
virtual void movePoints(const polyMesh&);
}; };

View File

@ -199,7 +199,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -153,7 +153,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -181,7 +181,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -274,7 +274,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -749,7 +749,7 @@ void Foam::streamLine::updateMesh(const mapPolyMesh&)
} }
void Foam::streamLine::movePoints(const pointField&) void Foam::streamLine::movePoints(const polyMesh&)
{ {
// Moving mesh affects the search tree // Moving mesh affects the search tree
read(dict_); read(dict_);

View File

@ -273,7 +273,7 @@ public:
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update for mesh point-motion //- Update for mesh point-motion
virtual void movePoints(const pointField&); virtual void movePoints(const polyMesh&);
////- Update for changes of mesh due to readUpdate ////- Update for changes of mesh due to readUpdate
//virtual void readUpdate(const polyMesh::readUpdateState state); //virtual void readUpdate(const polyMesh::readUpdateState state);

View File

@ -177,7 +177,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -86,7 +86,6 @@ SourceFiles
#include "HashSet.H" #include "HashSet.H"
#include "IOobject.H" #include "IOobject.H"
#include "NamedEnum.H" #include "NamedEnum.H"
#include "pointField.H"
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -97,6 +96,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -214,7 +214,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -876,7 +876,7 @@ void Foam::wallBoundedStreamLine::updateMesh(const mapPolyMesh&)
} }
void Foam::wallBoundedStreamLine::movePoints(const pointField&) void Foam::wallBoundedStreamLine::movePoints(const polyMesh&)
{ {
// Moving mesh affects the search tree // Moving mesh affects the search tree
read(dict_); read(dict_);

View File

@ -279,7 +279,7 @@ public:
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update for mesh point-motion //- Update for mesh point-motion
virtual void movePoints(const pointField&); virtual void movePoints(const polyMesh&);
////- Update for changes of mesh due to readUpdate ////- Update for changes of mesh due to readUpdate
//virtual void readUpdate(const polyMesh::readUpdateState state); //virtual void readUpdate(const polyMesh::readUpdateState state);

View File

@ -112,7 +112,6 @@ SourceFiles
#include "Tuple2.H" #include "Tuple2.H"
#include "OFstream.H" #include "OFstream.H"
#include "Switch.H" #include "Switch.H"
#include "pointFieldFwd.H"
#include "writer.H" #include "writer.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -123,6 +122,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -316,7 +316,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -155,7 +155,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -158,7 +158,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -152,7 +152,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -45,7 +45,6 @@ SourceFiles
#ifndef abortCalculation_H #ifndef abortCalculation_H
#define abortCalculation_H #define abortCalculation_H
#include "pointFieldFwd.H"
#include "NamedEnum.H" #include "NamedEnum.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -56,6 +55,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -154,7 +154,7 @@ public:
{} {}
//- Update for changes of mesh - does nothing //- Update for changes of mesh - does nothing
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -88,7 +88,6 @@ SourceFiles
#define systemCall_H #define systemCall_H
#include "stringList.H" #include "stringList.H"
#include "pointFieldFwd.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -98,6 +97,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -180,7 +180,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -43,7 +43,6 @@ SourceFiles
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
#include "surfaceFieldsFwd.H" #include "surfaceFieldsFwd.H"
#include "pointFieldFwd.H"
#include "OFstream.H" #include "OFstream.H"
#include "Switch.H" #include "Switch.H"
@ -55,6 +54,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -142,7 +142,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -45,7 +45,6 @@ SourceFiles
#include "functionObjectFile.H" #include "functionObjectFile.H"
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
#include "pointFieldFwd.H"
#include "Switch.H" #include "Switch.H"
#include "OFstream.H" #include "OFstream.H"
@ -57,6 +56,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
class fvMesh; class fvMesh;
@ -144,7 +144,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -43,7 +43,6 @@ SourceFiles
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
#include "surfaceFieldsFwd.H" #include "surfaceFieldsFwd.H"
#include "pointFieldFwd.H"
#include "OFstream.H" #include "OFstream.H"
#include "Switch.H" #include "Switch.H"
@ -55,6 +54,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -135,7 +135,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -42,7 +42,6 @@ SourceFiles
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
#include "surfaceFieldsFwd.H" #include "surfaceFieldsFwd.H"
#include "pointFieldFwd.H"
#include "OFstream.H" #include "OFstream.H"
#include "Switch.H" #include "Switch.H"
@ -54,6 +53,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -137,7 +137,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -46,7 +46,6 @@ SourceFiles
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
#include "surfaceFieldsFwd.H" #include "surfaceFieldsFwd.H"
#include "pointFieldFwd.H"
#include "OFstream.H" #include "OFstream.H"
#include "Switch.H" #include "Switch.H"
@ -58,6 +57,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -138,7 +138,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -150,6 +150,12 @@ public:
//- Read and set the function object if its data have changed //- Read and set the function object if its data have changed
virtual bool read(const dictionary&); virtual bool read(const dictionary&);
//- Update mesh
virtual void updateMesh(const mapPolyMesh&);
//- Move points
virtual void movePoints(const polyMesh&);
}; };

View File

@ -44,7 +44,7 @@ SourceFiles
#ifndef dsmcFields_H #ifndef dsmcFields_H
#define dsmcFields_H #define dsmcFields_H
#include "pointFieldFwd.H" #include "typeInfo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -54,6 +54,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -130,7 +131,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -111,7 +111,6 @@ SourceFiles
#define pressureTools_H #define pressureTools_H
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
#include "pointFieldFwd.H"
#include "dimensionedScalar.H" #include "dimensionedScalar.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -122,6 +121,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -253,7 +253,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -175,7 +175,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -60,7 +60,6 @@ SourceFiles
#ifndef timeActivatedFileUpdate_H #ifndef timeActivatedFileUpdate_H
#define timeActivatedFileUpdate_H #define timeActivatedFileUpdate_H
#include "pointFieldFwd.H"
#include "Tuple2.H" #include "Tuple2.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -71,6 +70,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
@ -160,7 +160,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -75,7 +75,6 @@ SourceFiles
#include "functionObjectFile.H" #include "functionObjectFile.H"
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
#include "pointFieldFwd.H"
#include "Switch.H" #include "Switch.H"
#include "OFstream.H" #include "OFstream.H"
@ -87,6 +86,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
class fvMesh; class fvMesh;
@ -185,7 +185,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -42,7 +42,6 @@ SourceFiles
#include "functionObjectFile.H" #include "functionObjectFile.H"
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
#include "pointFieldFwd.H"
#include "Switch.H" #include "Switch.H"
#include "OFstream.H" #include "OFstream.H"
@ -54,6 +53,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
class fvMesh; class fvMesh;
@ -161,7 +161,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -42,7 +42,6 @@ SourceFiles
#include "functionObjectFile.H" #include "functionObjectFile.H"
#include "volFieldsFwd.H" #include "volFieldsFwd.H"
#include "pointFieldFwd.H"
#include "Switch.H" #include "Switch.H"
#include "OFstream.H" #include "OFstream.H"
@ -54,6 +53,7 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class objectRegistry; class objectRegistry;
class dictionary; class dictionary;
class polyMesh;
class mapPolyMesh; class mapPolyMesh;
class fvMesh; class fvMesh;
@ -148,7 +148,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
}; };

View File

@ -254,7 +254,7 @@ public:
{} {}
//- Update for changes of mesh //- Update for changes of mesh
virtual void movePoints(const pointField&) virtual void movePoints(const polyMesh&)
{} {}
//- Update for changes of mesh due to readUpdate //- Update for changes of mesh due to readUpdate

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -302,7 +302,7 @@ void Foam::sampledSets::updateMesh(const mapPolyMesh&)
} }
void Foam::sampledSets::movePoints(const pointField&) void Foam::sampledSets::movePoints(const polyMesh&)
{ {
correct(); correct();
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -301,7 +301,7 @@ public:
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update for mesh point-motion //- Update for mesh point-motion
virtual void movePoints(const pointField&); virtual void movePoints(const polyMesh&);
//- Update for changes of mesh due to readUpdate //- Update for changes of mesh due to readUpdate
virtual void readUpdate(const polyMesh::readUpdateState state); virtual void readUpdate(const polyMesh::readUpdateState state);

View File

@ -248,7 +248,7 @@ void Foam::sampledSurfaces::updateMesh(const mapPolyMesh&)
} }
void Foam::sampledSurfaces::movePoints(const pointField&) void Foam::sampledSurfaces::movePoints(const polyMesh&)
{ {
expire(); expire();
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -230,7 +230,7 @@ public:
virtual void updateMesh(const mapPolyMesh&); virtual void updateMesh(const mapPolyMesh&);
//- Update for mesh point-motion - expires the surfaces //- Update for mesh point-motion - expires the surfaces
virtual void movePoints(const pointField&); virtual void movePoints(const polyMesh&);
//- Update for changes of mesh due to readUpdate - expires the surfaces //- Update for changes of mesh due to readUpdate - expires the surfaces
virtual void readUpdate(const polyMesh::readUpdateState state); virtual void readUpdate(const polyMesh::readUpdateState state);