From 8a6cb87b79c5c7a82422471d2a91e327a6088ecd Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Fri, 24 Jan 2020 15:38:31 +0000 Subject: [PATCH] createPatch: Removed obsolete code Removed a synchronisation step that is no longer necessary now that coupled patches have uniform transformations --- .../manipulation/createPatch/createPatch.C | 55 ------------------- 1 file changed, 55 deletions(-) diff --git a/applications/utilities/mesh/manipulation/createPatch/createPatch.C b/applications/utilities/mesh/manipulation/createPatch/createPatch.C index 56ecd4f428..d31f7c570b 100644 --- a/applications/utilities/mesh/manipulation/createPatch/createPatch.C +++ b/applications/utilities/mesh/manipulation/createPatch/createPatch.C @@ -747,61 +747,6 @@ int main(int argc, char *argv[]) { Info<< "Synchronising points." << nl << endl; - // This is a bit tricky. Both normal and position might be out and - // current separation also includes the normal - // (separation = (nf&(Cr - Cf))*nf ). - - // For cyclic patches: - // - for separated ones use user specified offset vector - - forAll(mesh.boundaryMesh(), patchi) - { - const polyPatch& pp = mesh.boundaryMesh()[patchi]; - - if (pp.size() && isA(pp)) - { - const coupledPolyPatch& cpp = - refCast(pp); - - if (cpp.transform().translates()) - { - Info<< "On coupled patch " << pp.name() - << " separation was " - << cpp.transform().t() << endl; - - if (isA(pp) && pp.size()) - { - const cyclicPolyPatch& cycpp = - refCast(pp); - - if - ( - cycpp.transformType() - != cyclicPolyPatch::TRANSLATIONAL - ) - { - const cyclicPolyPatch& nbr = cycpp.nbrPatch(); - - const_cast(cpp.transform().t()) = - nbr[0].centre(mesh.points()) - - cycpp[0].centre(mesh.points()); - } - } - Info<< "On coupled patch " << pp.name() - << " forcing uniform separation of " - << cpp.transform().t() << endl; - } - else if (cpp.transform().rotates()) - { - Info<< "On coupled patch " << pp.name() - << " uniform rotation of " - << cpp.transform().R() << endl; - } - } - } - - Info<< "Synchronising points." << endl; - pointField newPoints(mesh.points()); syncPoints