mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamyHexMesh: Construct backgroundMeshDecomposition in initialisation list
This commit is contained in:
@ -839,6 +839,21 @@ Foam::conformalVoronoiMesh::conformalVoronoiMesh
|
|||||||
allGeometry_,
|
allGeometry_,
|
||||||
foamyHexMeshDict.subDict("surfaceConformation")
|
foamyHexMeshDict.subDict("surfaceConformation")
|
||||||
),
|
),
|
||||||
|
decomposition_
|
||||||
|
(
|
||||||
|
Pstream::parRun()
|
||||||
|
? new backgroundMeshDecomposition
|
||||||
|
(
|
||||||
|
runTime_,
|
||||||
|
rndGen_,
|
||||||
|
geometryToConformTo_,
|
||||||
|
foamyHexMeshControls().foamyHexMeshDict().subDict
|
||||||
|
(
|
||||||
|
"backgroundMeshDecomposition"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
: NULL
|
||||||
|
),
|
||||||
cellShapeControl_
|
cellShapeControl_
|
||||||
(
|
(
|
||||||
runTime_,
|
runTime_,
|
||||||
@ -874,8 +889,7 @@ Foam::conformalVoronoiMesh::conformalVoronoiMesh
|
|||||||
(
|
(
|
||||||
foamyHexMeshDict.subDict("motionControl")
|
foamyHexMeshDict.subDict("motionControl")
|
||||||
)
|
)
|
||||||
),
|
)
|
||||||
decomposition_()
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -894,23 +908,6 @@ void Foam::conformalVoronoiMesh::initialiseForMotion()
|
|||||||
geometryToConformTo_.writeFeatureObj("foamyHexMesh");
|
geometryToConformTo_.writeFeatureObj("foamyHexMesh");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Pstream::parRun())
|
|
||||||
{
|
|
||||||
decomposition_.reset
|
|
||||||
(
|
|
||||||
new backgroundMeshDecomposition
|
|
||||||
(
|
|
||||||
runTime_,
|
|
||||||
rndGen_,
|
|
||||||
geometryToConformTo_,
|
|
||||||
foamyHexMeshControls().foamyHexMeshDict().subDict
|
|
||||||
(
|
|
||||||
"backgroundMeshDecomposition"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
buildCellSizeAndAlignmentMesh();
|
buildCellSizeAndAlignmentMesh();
|
||||||
|
|
||||||
insertInitialPoints();
|
insertInitialPoints();
|
||||||
|
|||||||
@ -143,6 +143,9 @@ private:
|
|||||||
//- The surfaces to conform to
|
//- The surfaces to conform to
|
||||||
conformationSurfaces geometryToConformTo_;
|
conformationSurfaces geometryToConformTo_;
|
||||||
|
|
||||||
|
//- Background mesh decomposition, only available in parallel.
|
||||||
|
autoPtr<backgroundMeshDecomposition> decomposition_;
|
||||||
|
|
||||||
//- The cell shape control object
|
//- The cell shape control object
|
||||||
cellShapeControl cellShapeControl_;
|
cellShapeControl cellShapeControl_;
|
||||||
|
|
||||||
@ -182,9 +185,6 @@ private:
|
|||||||
//- Face area weight function. Runtime selectable.
|
//- Face area weight function. Runtime selectable.
|
||||||
autoPtr<faceAreaWeightModel> faceAreaWeightModel_;
|
autoPtr<faceAreaWeightModel> faceAreaWeightModel_;
|
||||||
|
|
||||||
//- Background mesh decomposition, only available in parallel.
|
|
||||||
autoPtr<backgroundMeshDecomposition> decomposition_;
|
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user