mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
Merge branch 'master' of ssh://dm/home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -2453,6 +2453,27 @@ int main(int argc, char *argv[])
|
||||
meshMod
|
||||
);
|
||||
|
||||
// Enforce actual point posititions according to extrudeModel (model)
|
||||
// (extruder.setRefinement only does fixed expansionRatio)
|
||||
// The regionPoints and nLayers are looped in the same way as in
|
||||
// createShellMesh
|
||||
DynamicList<point>& newPoints = const_cast<DynamicList<point>&>
|
||||
(
|
||||
meshMod.points()
|
||||
);
|
||||
label meshPointI = extrudePatch.localPoints().size();
|
||||
forAll(localRegionPoints, regionI)
|
||||
{
|
||||
label pointI = localRegionPoints[regionI];
|
||||
point pt = extrudePatch.localPoints()[pointI];
|
||||
const vector& n = localRegionNormals[regionI];
|
||||
|
||||
for (label layerI = 1; layerI <= model().nLayers(); layerI++)
|
||||
{
|
||||
newPoints[meshPointI++] = model()(pt, n, layerI);
|
||||
}
|
||||
}
|
||||
|
||||
shellMap = meshMod.changeMesh
|
||||
(
|
||||
regionMesh, // mesh to change
|
||||
|
||||
Reference in New Issue
Block a user