From 17194ab9b0755a09b275b64f3f0354ff15354b51 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 15 Jan 2014 19:57:04 +0000 Subject: [PATCH] BUG: meshToMesh - updated construction of AMIs --- src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C | 3 ++- .../patches/regionCoupledPolyPatch/regionCoupledBase.C | 3 ++- src/regionModels/regionModel/regionModel/regionModel.C | 4 +++- src/sampling/meshToMeshInterpolation/meshToMesh/meshToMesh.C | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C index 4c6858a79b..d4e157635a 100644 --- a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C +++ b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -837,6 +837,7 @@ void Foam::mappedPatchBase::calcAMI() const surfPtr(), faceAreaIntersect::tmMesh, AMIPatchToPatchInterpolation::imFaceAreaWeight, + -1, AMIReverse_ ) ); diff --git a/src/meshTools/regionCoupled/patches/regionCoupledPolyPatch/regionCoupledBase.C b/src/meshTools/regionCoupled/patches/regionCoupledPolyPatch/regionCoupledBase.C index 3664bb4205..224a104c3c 100644 --- a/src/meshTools/regionCoupled/patches/regionCoupledPolyPatch/regionCoupledBase.C +++ b/src/meshTools/regionCoupled/patches/regionCoupledPolyPatch/regionCoupledBase.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -92,6 +92,7 @@ void Foam::regionCoupledBase::resetAMI() const surfPtr(), faceAreaIntersect::tmMesh, AMIPatchToPatchInterpolation::imFaceAreaWeight, + -1, AMIReverse_ ) ); diff --git a/src/regionModels/regionModel/regionModel/regionModel.C b/src/regionModels/regionModel/regionModel/regionModel.C index 9643348e1d..5e147d22f5 100644 --- a/src/regionModels/regionModel/regionModel/regionModel.C +++ b/src/regionModels/regionModel/regionModel/regionModel.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -243,6 +243,7 @@ Foam::regionModels::regionModel::interRegionAMI nbrP, faceAreaIntersect::tmMesh, AMIPatchToPatchInterpolation::imFaceAreaWeight, + -1, flip ) ); @@ -284,6 +285,7 @@ Foam::regionModels::regionModel::interRegionAMI nbrP, faceAreaIntersect::tmMesh, AMIPatchToPatchInterpolation::imFaceAreaWeight, + -1, flip ) ); diff --git a/src/sampling/meshToMeshInterpolation/meshToMesh/meshToMesh.C b/src/sampling/meshToMeshInterpolation/meshToMesh/meshToMesh.C index 12b271ee0e..eebb219a6f 100644 --- a/src/sampling/meshToMeshInterpolation/meshToMesh/meshToMesh.C +++ b/src/sampling/meshToMeshInterpolation/meshToMesh/meshToMesh.C @@ -420,6 +420,7 @@ Foam::meshToMesh::patchAMIs() const tgtPP, faceAreaIntersect::tmMesh, interpolationMethodAMI(method_), + -1, true // flip target patch since patch normals are aligned ) );