diff --git a/src/finiteVolume/fvMesh/wallDist/wallDist.C b/src/finiteVolume/fvMesh/wallDist/wallDist.C index 1cfd67f189..405fba9c82 100644 --- a/src/finiteVolume/fvMesh/wallDist/wallDist.C +++ b/src/finiteVolume/fvMesh/wallDist/wallDist.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -62,8 +62,6 @@ Foam::wallDist::~wallDist() // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -// Correct for mesh geom/topo changes. Might be more intelligent in the -// future (if only small topology change) void Foam::wallDist::correct() { // Get patchids of walls diff --git a/src/meshTools/cellDist/patchWave/patchDataWave.H b/src/meshTools/cellDist/patchWave/patchDataWave.H index e2369f81a9..a08740222b 100644 --- a/src/meshTools/cellDist/patchWave/patchDataWave.H +++ b/src/meshTools/cellDist/patchWave/patchDataWave.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -55,10 +55,9 @@ namespace Foam // Forward declaration of classes class polyMesh; class wallPoint; -//template class MeshWave; /*---------------------------------------------------------------------------*\ - Class patchDataWave Declaration + Class patchDataWave Declaration \*---------------------------------------------------------------------------*/ template diff --git a/src/meshTools/cellDist/patchWave/patchWave.C b/src/meshTools/cellDist/patchWave/patchWave.C index 92d0b5c96c..fd05d0e728 100644 --- a/src/meshTools/cellDist/patchWave/patchWave.C +++ b/src/meshTools/cellDist/patchWave/patchWave.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -27,7 +27,6 @@ License #include "polyMesh.H" #include "wallPoint.H" #include "globalMeshData.H" -#include "SubField.H" // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // @@ -132,7 +131,6 @@ Foam::label Foam::patchWave::getValues(const MeshWave& waveInfo) // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -// Construct from components Foam::patchWave::patchWave ( const polyMesh& mesh, @@ -159,28 +157,19 @@ Foam::patchWave::~patchWave() // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -// Correct for mesh geom/topo changes. Might be more intelligent in the -// future (if only small topology change) void Foam::patchWave::correct() { - // // Set initial changed faces: set wallPoint for wall faces to wall centre - // - // Count walls - label nWalls = sumPatchSize(patchIDs_); + label nPatch = sumPatchSize(patchIDs_); - List faceDist(nWalls); - labelList changedFaces(nWalls); + List faceDist(nPatch); + labelList changedFaces(nPatch); // Set to faceDist information to facecentre on walls. setChangedFaces(patchIDs_, changedFaces, faceDist); - - // // Do calculate wall distance by 'growing' from faces. - // - MeshWave waveInfo ( mesh(), @@ -189,20 +178,13 @@ void Foam::patchWave::correct() mesh().globalData().nTotalCells()+1 // max iterations ); - - // // Copy distance into return field - // - nUnset_ = getValues(waveInfo); - // // Correct wall cells for true distance - // - if (correctWalls_) { - Map