mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: PointEdgeWave : have explicit iterate option
This commit is contained in:
@ -680,6 +680,30 @@ Foam::PointEdgeWave<Type>::PointEdgeWave
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template <class Type>
|
||||||
|
Foam::PointEdgeWave<Type>::PointEdgeWave
|
||||||
|
(
|
||||||
|
const polyMesh& mesh,
|
||||||
|
List<Type>& allPointInfo,
|
||||||
|
List<Type>& allEdgeInfo
|
||||||
|
)
|
||||||
|
:
|
||||||
|
mesh_(mesh),
|
||||||
|
allPointInfo_(allPointInfo),
|
||||||
|
allEdgeInfo_(allEdgeInfo),
|
||||||
|
changedPoint_(mesh_.nPoints(), false),
|
||||||
|
changedPoints_(mesh_.nPoints()),
|
||||||
|
nChangedPoints_(0),
|
||||||
|
changedEdge_(mesh_.nEdges(), false),
|
||||||
|
changedEdges_(mesh_.nEdges()),
|
||||||
|
nChangedEdges_(0),
|
||||||
|
nCyclicPatches_(countPatchType<cyclicPolyPatch>()),
|
||||||
|
nEvals_(0),
|
||||||
|
nUnvisitedPoints_(mesh_.nPoints()),
|
||||||
|
nUnvisitedEdges_(mesh_.nEdges())
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template <class Type>
|
template <class Type>
|
||||||
|
|||||||
@ -275,6 +275,15 @@ public:
|
|||||||
const label maxIter
|
const label maxIter
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct from mesh. Use setPointInfo and iterate() to do
|
||||||
|
// actual calculation
|
||||||
|
PointEdgeWave
|
||||||
|
(
|
||||||
|
const polyMesh& mesh,
|
||||||
|
List<Type>& allPointInfo,
|
||||||
|
List<Type>& allEdgeInfo
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
~PointEdgeWave();
|
~PointEdgeWave();
|
||||||
|
|||||||
Reference in New Issue
Block a user