functionObjects: Clean up and completion of hooks

This commit is contained in:
Will Bainbridge
2022-08-04 15:55:09 +01:00
parent 3ce205e2b3
commit b0d2002e72
19 changed files with 372 additions and 485 deletions

View File

@ -33,6 +33,7 @@ License
#include "fvMeshStitcher.H"
#include "polyTopoChangeMap.H"
#include "polyMeshMap.H"
#include "polyDistributionMap.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -858,4 +859,16 @@ void Foam::functionObjects::fieldValues::surfaceFieldValue::mapMesh
}
void Foam::functionObjects::fieldValues::surfaceFieldValue::distribute
(
const polyDistributionMap& map
)
{
if (&map.mesh() == &mesh_)
{
initialise(dict_);
}
}
// ************************************************************************* //

View File

@ -498,6 +498,9 @@ public:
//- Update from another mesh using the given map
virtual void mapMesh(const polyMeshMap&);
//- Redistribute or update using the given distribution map
virtual void distribute(const polyDistributionMap&);
};

View File

@ -32,6 +32,7 @@ License
#include "writeFile.H"
#include "polyTopoChangeMap.H"
#include "polyMeshMap.H"
#include "polyDistributionMap.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -384,4 +385,17 @@ void Foam::functionObjects::layerAverage::mapMesh(const polyMeshMap& map)
}
void Foam::functionObjects::layerAverage::distribute
(
const polyDistributionMap& map
)
{
if (&map.mesh() == &mesh_)
{
Info<< type() << " " << name() << ":" << nl;
calcLayers();
}
}
// ************************************************************************* //

View File

@ -191,6 +191,9 @@ public:
//- Update from another mesh using the given map
virtual void mapMesh(const polyMeshMap&);
//- Redistribute or update using the given distribution map
virtual void distribute(const polyDistributionMap&);
// Member Operators

View File

@ -37,6 +37,7 @@ License
#include "writeFile.H"
#include "polyTopoChangeMap.H"
#include "polyMeshMap.H"
#include "polyDistributionMap.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -620,4 +621,16 @@ void Foam::functionObjects::streamlines::mapMesh
}
void Foam::functionObjects::streamlines::distribute
(
const polyDistributionMap& map
)
{
if (&map.mesh() == &mesh_)
{
read(dict_);
}
}
// ************************************************************************* //

View File

@ -247,6 +247,9 @@ public:
//- Update from another mesh using the given map
virtual void mapMesh(const polyMeshMap&);
//- Redistribute or update using the given distribution map
virtual void distribute(const polyDistributionMap&);
// Member Operators