From 1fc9313c97ff178bd0a141cfc2a6ea6198727678 Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Wed, 26 Jul 2023 15:36:25 +0100 Subject: [PATCH] BUG: Conservative AMI - use supplied points when resetting the AMI. See #2078 --- .../patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C | 4 ++-- .../mixerVesselAMI2D-topologyChange/system/fvSolution | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C index 89aa2fc668..1f080d9d00 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C +++ b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C @@ -383,8 +383,8 @@ void Foam::cyclicAMIPolyPatch::resetAMI(const UList& points) const } const cyclicAMIPolyPatch& nbr = neighbPatch(); - pointField srcPoints(localPoints()); - pointField nbrPoints(nbr.localPoints()); + const pointField srcPoints(points, meshPoints()); + pointField nbrPoints(points, nbr.meshPoints()); Info<< "AMI: Creating AMI for source:" << name() << " and target:" << nbr.name() << endl; diff --git a/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/mixerVesselAMI2D-topologyChange/system/fvSolution b/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/mixerVesselAMI2D-topologyChange/system/fvSolution index 1c25f4cbff..db8c83bf09 100644 --- a/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/mixerVesselAMI2D-topologyChange/system/fvSolution +++ b/tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D/mixerVesselAMI2D-topologyChange/system/fvSolution @@ -19,7 +19,7 @@ solvers "pcorr.*" { solver GAMG; - smoother GaussSeidel; + smoother DICGaussSeidel; cacheAgglomeration no; tolerance 0.02; relTol 0;