mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Re-factored StandardPostProcessing -> PatchPostProcessing
This commit is contained in:
@ -33,7 +33,7 @@ License
|
||||
#include "KinematicCloud.H"
|
||||
|
||||
#include "NoPostProcessing.H"
|
||||
#include "StandardPostProcessing.H"
|
||||
#include "PatchPostProcessing.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -65,7 +65,7 @@ License
|
||||
); \
|
||||
makePostProcessingModelThermoType \
|
||||
( \
|
||||
StandardPostProcessing, \
|
||||
PatchPostProcessing, \
|
||||
KinematicCloud, \
|
||||
ParcelType, \
|
||||
ThermoType \
|
||||
|
||||
@ -28,7 +28,7 @@ License
|
||||
#include "KinematicCloud.H"
|
||||
|
||||
#include "NoPostProcessing.H"
|
||||
#include "StandardPostProcessing.H"
|
||||
#include "PatchPostProcessing.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -45,7 +45,7 @@ namespace Foam
|
||||
);
|
||||
makePostProcessingModelType
|
||||
(
|
||||
StandardPostProcessing,
|
||||
PatchPostProcessing,
|
||||
KinematicCloud,
|
||||
basicKinematicParcel
|
||||
);
|
||||
|
||||
@ -27,7 +27,7 @@ License
|
||||
#include "basicThermoParcel.H"
|
||||
#include "KinematicCloud.H"
|
||||
#include "NoPostProcessing.H"
|
||||
#include "StandardPostProcessing.H"
|
||||
#include "PatchPostProcessing.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -44,7 +44,7 @@ namespace Foam
|
||||
);
|
||||
makePostProcessingModelType
|
||||
(
|
||||
StandardPostProcessing,
|
||||
PatchPostProcessing,
|
||||
KinematicCloud,
|
||||
basicThermoParcel
|
||||
);
|
||||
|
||||
@ -24,13 +24,13 @@ License
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "StandardPostProcessing.H"
|
||||
#include "PatchPostProcessing.H"
|
||||
#include "IOPtrList.H"
|
||||
|
||||
// * * * * * * * * * * * * * protected Member Functions * * * * * * * * * * //
|
||||
|
||||
template<class CloudType>
|
||||
void Foam::StandardPostProcessing<CloudType>::write()
|
||||
void Foam::PatchPostProcessing<CloudType>::write()
|
||||
{
|
||||
forAll(patchData_, patchI)
|
||||
{
|
||||
@ -70,7 +70,7 @@ void Foam::StandardPostProcessing<CloudType>::write()
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
template<class CloudType>
|
||||
Foam::StandardPostProcessing<CloudType>::StandardPostProcessing
|
||||
Foam::PatchPostProcessing<CloudType>::PatchPostProcessing
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
@ -88,7 +88,7 @@ Foam::StandardPostProcessing<CloudType>::StandardPostProcessing
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"StandardPostProcessing<CloudType>::StandardPostProcessing"
|
||||
"PatchPostProcessing<CloudType>::PatchPostProcessing"
|
||||
"("
|
||||
"const dictionary&, "
|
||||
"CloudType& owner"
|
||||
@ -104,21 +104,21 @@ Foam::StandardPostProcessing<CloudType>::StandardPostProcessing
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
template<class CloudType>
|
||||
Foam::StandardPostProcessing<CloudType>::~StandardPostProcessing()
|
||||
Foam::PatchPostProcessing<CloudType>::~PatchPostProcessing()
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class CloudType>
|
||||
bool Foam::StandardPostProcessing<CloudType>::active() const
|
||||
bool Foam::PatchPostProcessing<CloudType>::active() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
void Foam::StandardPostProcessing<CloudType>::postPatch
|
||||
void Foam::PatchPostProcessing<CloudType>::postPatch
|
||||
(
|
||||
const parcelType& p,
|
||||
const label patchI
|
||||
@ -23,18 +23,18 @@ License
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Class
|
||||
Foam::StandardPostProcessing
|
||||
Foam::PatchPostProcessing
|
||||
|
||||
Description
|
||||
Standard post-processing
|
||||
|
||||
SourceFiles
|
||||
StandardPostProcessing.C
|
||||
PatchPostProcessing.C
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef StandardPostProcessing_H
|
||||
#define StandardPostProcessing_H
|
||||
#ifndef PatchPostProcessing_H
|
||||
#define PatchPostProcessing_H
|
||||
|
||||
#include "PostProcessingModel.H"
|
||||
|
||||
@ -44,11 +44,11 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class StandardPostProcessing Declaration
|
||||
Class PatchPostProcessing Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class CloudType>
|
||||
class StandardPostProcessing
|
||||
class PatchPostProcessing
|
||||
:
|
||||
public PostProcessingModel<CloudType>
|
||||
{
|
||||
@ -77,17 +77,17 @@ protected:
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("StandardPostProcessing");
|
||||
TypeName("PatchPostProcessing");
|
||||
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct from dictionary
|
||||
StandardPostProcessing(const dictionary& dict, CloudType& owner);
|
||||
PatchPostProcessing(const dictionary& dict, CloudType& owner);
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~StandardPostProcessing();
|
||||
virtual ~PatchPostProcessing();
|
||||
|
||||
|
||||
// Member Functions
|
||||
@ -122,12 +122,12 @@ public:
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "StandardPostProcessingI.H"
|
||||
#include "PatchPostProcessingI.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#ifdef NoRepository
|
||||
# include "StandardPostProcessing.C"
|
||||
# include "PatchPostProcessing.C"
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -25,7 +25,7 @@ License
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class CloudType>
|
||||
const Foam::polyMesh& Foam::StandardPostProcessing<CloudType>::mesh() const
|
||||
const Foam::polyMesh& Foam::PatchPostProcessing<CloudType>::mesh() const
|
||||
{
|
||||
return mesh_;
|
||||
}
|
||||
@ -33,7 +33,7 @@ const Foam::polyMesh& Foam::StandardPostProcessing<CloudType>::mesh() const
|
||||
|
||||
template<class CloudType>
|
||||
const Foam::wordList&
|
||||
Foam::StandardPostProcessing<CloudType>::patchNames() const
|
||||
Foam::PatchPostProcessing<CloudType>::patchNames() const
|
||||
{
|
||||
return patchNames_;
|
||||
}
|
||||
Reference in New Issue
Block a user