mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: extrudeMesh: update to new PatchTools api
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -383,12 +383,7 @@ int main(int argc, char *argv[])
|
|||||||
// Determine extrudePatch normal
|
// Determine extrudePatch normal
|
||||||
pointField extrudePatchPointNormals
|
pointField extrudePatchPointNormals
|
||||||
(
|
(
|
||||||
PatchTools::pointNormals //calcNormals
|
PatchTools::pointNormals(mesh, extrudePatch)
|
||||||
(
|
|
||||||
mesh,
|
|
||||||
extrudePatch,
|
|
||||||
meshFaces
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -629,12 +624,13 @@ int main(int argc, char *argv[])
|
|||||||
const labelListList& layerFaces = layerExtrude.layerFaces();
|
const labelListList& layerFaces = layerExtrude.layerFaces();
|
||||||
backPatchFaces.setSize(layerFaces.size());
|
backPatchFaces.setSize(layerFaces.size());
|
||||||
frontPatchFaces.setSize(layerFaces.size());
|
frontPatchFaces.setSize(layerFaces.size());
|
||||||
forAll(backPatchFaces, i)
|
forAll(backPatchFaces, patchFaceI)
|
||||||
{
|
{
|
||||||
backPatchFaces[i] = layerFaces[i].first();
|
backPatchFaces[patchFaceI] = layerFaces[patchFaceI].first();
|
||||||
frontPatchFaces[i] = layerFaces[i].last();
|
frontPatchFaces[patchFaceI] = layerFaces[patchFaceI].last();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Create dummy fvSchemes, fvSolution
|
// Create dummy fvSchemes, fvSolution
|
||||||
createDummyFvMeshFiles(mesh, regionDir);
|
createDummyFvMeshFiles(mesh, regionDir);
|
||||||
|
|
||||||
@ -654,6 +650,13 @@ int main(int argc, char *argv[])
|
|||||||
mesh
|
mesh
|
||||||
);
|
);
|
||||||
|
|
||||||
|
layerExtrude.updateMesh
|
||||||
|
(
|
||||||
|
map(),
|
||||||
|
identity(extrudePatch.size()),
|
||||||
|
identity(extrudePatch.nPoints())
|
||||||
|
);
|
||||||
|
|
||||||
// Calculate face labels for front and back.
|
// Calculate face labels for front and back.
|
||||||
frontPatchFaces = renumber
|
frontPatchFaces = renumber
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user