Re-factored StandardPostProcessing -> PatchPostProcessing

This commit is contained in:
andy
2009-06-03 12:41:11 +01:00
parent 6e9912753c
commit ed2ba8e1f7
6 changed files with 26 additions and 26 deletions

View File

@ -33,7 +33,7 @@ License
#include "KinematicCloud.H" #include "KinematicCloud.H"
#include "NoPostProcessing.H" #include "NoPostProcessing.H"
#include "StandardPostProcessing.H" #include "PatchPostProcessing.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -65,7 +65,7 @@ License
); \ ); \
makePostProcessingModelThermoType \ makePostProcessingModelThermoType \
( \ ( \
StandardPostProcessing, \ PatchPostProcessing, \
KinematicCloud, \ KinematicCloud, \
ParcelType, \ ParcelType, \
ThermoType \ ThermoType \

View File

@ -28,7 +28,7 @@ License
#include "KinematicCloud.H" #include "KinematicCloud.H"
#include "NoPostProcessing.H" #include "NoPostProcessing.H"
#include "StandardPostProcessing.H" #include "PatchPostProcessing.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -45,7 +45,7 @@ namespace Foam
); );
makePostProcessingModelType makePostProcessingModelType
( (
StandardPostProcessing, PatchPostProcessing,
KinematicCloud, KinematicCloud,
basicKinematicParcel basicKinematicParcel
); );

View File

@ -27,7 +27,7 @@ License
#include "basicThermoParcel.H" #include "basicThermoParcel.H"
#include "KinematicCloud.H" #include "KinematicCloud.H"
#include "NoPostProcessing.H" #include "NoPostProcessing.H"
#include "StandardPostProcessing.H" #include "PatchPostProcessing.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -44,7 +44,7 @@ namespace Foam
); );
makePostProcessingModelType makePostProcessingModelType
( (
StandardPostProcessing, PatchPostProcessing,
KinematicCloud, KinematicCloud,
basicThermoParcel basicThermoParcel
); );

View File

@ -24,13 +24,13 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "StandardPostProcessing.H" #include "PatchPostProcessing.H"
#include "IOPtrList.H" #include "IOPtrList.H"
// * * * * * * * * * * * * * protected Member Functions * * * * * * * * * * // // * * * * * * * * * * * * * protected Member Functions * * * * * * * * * * //
template<class CloudType> template<class CloudType>
void Foam::StandardPostProcessing<CloudType>::write() void Foam::PatchPostProcessing<CloudType>::write()
{ {
forAll(patchData_, patchI) forAll(patchData_, patchI)
{ {
@ -70,7 +70,7 @@ void Foam::StandardPostProcessing<CloudType>::write()
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class CloudType> template<class CloudType>
Foam::StandardPostProcessing<CloudType>::StandardPostProcessing Foam::PatchPostProcessing<CloudType>::PatchPostProcessing
( (
const dictionary& dict, const dictionary& dict,
CloudType& owner CloudType& owner
@ -88,7 +88,7 @@ Foam::StandardPostProcessing<CloudType>::StandardPostProcessing
{ {
FatalErrorIn FatalErrorIn
( (
"StandardPostProcessing<CloudType>::StandardPostProcessing" "PatchPostProcessing<CloudType>::PatchPostProcessing"
"(" "("
"const dictionary&, " "const dictionary&, "
"CloudType& owner" "CloudType& owner"
@ -104,21 +104,21 @@ Foam::StandardPostProcessing<CloudType>::StandardPostProcessing
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template<class CloudType> template<class CloudType>
Foam::StandardPostProcessing<CloudType>::~StandardPostProcessing() Foam::PatchPostProcessing<CloudType>::~PatchPostProcessing()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class CloudType> template<class CloudType>
bool Foam::StandardPostProcessing<CloudType>::active() const bool Foam::PatchPostProcessing<CloudType>::active() const
{ {
return true; return true;
} }
template<class CloudType> template<class CloudType>
void Foam::StandardPostProcessing<CloudType>::postPatch void Foam::PatchPostProcessing<CloudType>::postPatch
( (
const parcelType& p, const parcelType& p,
const label patchI const label patchI

View File

@ -23,18 +23,18 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class Class
Foam::StandardPostProcessing Foam::PatchPostProcessing
Description Description
Standard post-processing Standard post-processing
SourceFiles SourceFiles
StandardPostProcessing.C PatchPostProcessing.C
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#ifndef StandardPostProcessing_H #ifndef PatchPostProcessing_H
#define StandardPostProcessing_H #define PatchPostProcessing_H
#include "PostProcessingModel.H" #include "PostProcessingModel.H"
@ -44,11 +44,11 @@ namespace Foam
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class StandardPostProcessing Declaration Class PatchPostProcessing Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
template<class CloudType> template<class CloudType>
class StandardPostProcessing class PatchPostProcessing
: :
public PostProcessingModel<CloudType> public PostProcessingModel<CloudType>
{ {
@ -77,17 +77,17 @@ protected:
public: public:
//- Runtime type information //- Runtime type information
TypeName("StandardPostProcessing"); TypeName("PatchPostProcessing");
// Constructors // Constructors
//- Construct from dictionary //- Construct from dictionary
StandardPostProcessing(const dictionary& dict, CloudType& owner); PatchPostProcessing(const dictionary& dict, CloudType& owner);
//- Destructor //- Destructor
virtual ~StandardPostProcessing(); virtual ~PatchPostProcessing();
// Member Functions // Member Functions
@ -122,12 +122,12 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "StandardPostProcessingI.H" #include "PatchPostProcessingI.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository #ifdef NoRepository
# include "StandardPostProcessing.C" # include "PatchPostProcessing.C"
#endif #endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -25,7 +25,7 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
template<class CloudType> template<class CloudType>
const Foam::polyMesh& Foam::StandardPostProcessing<CloudType>::mesh() const const Foam::polyMesh& Foam::PatchPostProcessing<CloudType>::mesh() const
{ {
return mesh_; return mesh_;
} }
@ -33,7 +33,7 @@ const Foam::polyMesh& Foam::StandardPostProcessing<CloudType>::mesh() const
template<class CloudType> template<class CloudType>
const Foam::wordList& const Foam::wordList&
Foam::StandardPostProcessing<CloudType>::patchNames() const Foam::PatchPostProcessing<CloudType>::patchNames() const
{ {
return patchNames_; return patchNames_;
} }