From 2f89754b617ffb809af4905005860b025d7b0c97 Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 24 May 2012 09:14:28 +0100 Subject: [PATCH 1/6] ENH: Changed order of pair collisions --- .../Kinematic/CollisionModel/PairCollision/PairCollision.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lagrangian/intermediate/submodels/Kinematic/CollisionModel/PairCollision/PairCollision.C b/src/lagrangian/intermediate/submodels/Kinematic/CollisionModel/PairCollision/PairCollision.C index d5e459ddc0..3c9c2fb43f 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/CollisionModel/PairCollision/PairCollision.C +++ b/src/lagrangian/intermediate/submodels/Kinematic/CollisionModel/PairCollision/PairCollision.C @@ -661,10 +661,10 @@ void Foam::PairCollision::collide() { preInteraction(); - parcelInteraction(); - wallInteraction(); + parcelInteraction(); + postInteraction(); } From bfbb22d6d9e904256fa6fd99700de93136ffc71f Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 24 May 2012 13:03:16 +0100 Subject: [PATCH 2/6] ENH: Updated templating in AMI code --- .../AMIInterpolation/AMIInterpolation.C | 75 +++++++++---------- .../AMIInterpolation/AMIInterpolation.H | 42 +++++------ 2 files changed, 57 insertions(+), 60 deletions(-) diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index 046adb8a2a..3962697845 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -142,8 +142,8 @@ void Foam::AMIInterpolation::writeIntersectionOBJ template void Foam::AMIInterpolation::checkPatches ( - const primitivePatch& srcPatch, - const primitivePatch& tgtPatch + const SourcePatch& srcPatch, + const TargetPatch& tgtPatch ) const { const scalar maxBoundsError = 0.05; @@ -166,8 +166,8 @@ void Foam::AMIInterpolation::checkPatches ( "AMIInterpolation::checkPatches" "(" - "const primitivePatch&, " - "const primitivePatch&" + "const SourcePatch&, " + "const TargetPatch&" ")" ) << "Source and target patch bounding boxes are not similar" << nl << " source box span : " << bbSrc.span() << nl @@ -182,7 +182,7 @@ void Foam::AMIInterpolation::checkPatches template void Foam::AMIInterpolation::resetTree ( - const primitivePatch& tgtPatch + const TargetPatch& tgtPatch ) { // Clear the old octree @@ -212,8 +212,8 @@ void Foam::AMIInterpolation::resetTree template Foam::label Foam::AMIInterpolation::calcDistribution ( - const primitivePatch& srcPatch, - const primitivePatch& tgtPatch + const SourcePatch& srcPatch, + const TargetPatch& tgtPatch ) const { label procI = 0; @@ -297,7 +297,7 @@ template void Foam::AMIInterpolation::distributePatches ( const mapDistribute& map, - const primitivePatch& pp, + const TargetPatch& pp, const globalIndex& gi, List& faces, List& points, @@ -394,7 +394,7 @@ void Foam::AMIInterpolation:: distributeAndMergePatches ( const mapDistribute& map, - const primitivePatch& tgtPatch, + const TargetPatch& tgtPatch, const globalIndex& gi, faceList& tgtFaces, pointField& tgtPoints, @@ -509,8 +509,8 @@ template Foam::autoPtr Foam::AMIInterpolation::calcProcMap ( - const primitivePatch& srcPatch, - const primitivePatch& tgtPatch + const SourcePatch& srcPatch, + const TargetPatch& tgtPatch ) const { // Get decomposition of patch @@ -711,7 +711,7 @@ template Foam::label Foam::AMIInterpolation::findTargetFace ( const label srcFaceI, - const primitivePatch& srcPatch + const SourcePatch& srcPatch ) const { label targetFaceI = -1; @@ -745,7 +745,7 @@ template void Foam::AMIInterpolation::appendNbrFaces ( const label faceI, - const primitivePatch& patch, + const TargetPatch& patch, const DynamicList