diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.H b/src/OpenFOAM/meshes/polyMesh/polyMesh.H index e4c189767192ae87ddddc131ea0ea3e0d1068353..76c5f1c8a3777cc65b520d2a720fc1fc66ddd895 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.H +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -576,9 +576,6 @@ public: // Geometric checks. Selectively override primitiveMesh functionality. - //- Check boundary for closedness - virtual bool checkClosedBoundary(const bool report = false) const; - //- Check non-orthogonality virtual bool checkFaceOrthogonality ( diff --git a/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshCheck.C b/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshCheck.C index 748c7da21a63f0b9d25acb21f34d5df839415ee0..e6cc20fee18b7c6e56a32855e84cd2f13c83aea1 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshCheck.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMeshCheck/polyMeshCheck.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -516,15 +516,17 @@ bool Foam::polyMesh::checkCellDeterminant } -bool Foam::polyMesh::checkClosedBoundary(const bool report) const -{ - return primitiveMesh::checkClosedBoundary - ( - faceAreas(), - report, - syncTools::getInternalOrCoupledFaces(*this) - ); -} +//- Could override checkClosedBoundary to not look at (collocated!) coupled +// faces +//bool Foam::polyMesh::checkClosedBoundary(const bool report) const +//{ +// return primitiveMesh::checkClosedBoundary +// ( +// faceAreas(), +// report, +// syncTools::getInternalOrCollocatedCoupledFaces(*this) +// ); +//} bool Foam::polyMesh::checkFaceOrthogonality diff --git a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheck.C b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheck.C index d805608e4480c11a75c1605a6d5a7b2fe2fb3877..d7abd45d82d24e60421236342d6c79ff8486f297 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheck.C +++ b/src/OpenFOAM/meshes/primitiveMesh/primitiveMeshCheck/primitiveMeshCheck.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -64,7 +64,7 @@ bool Foam::primitiveMesh::checkClosedBoundary for (label faceI = nInternalFaces(); faceI < areas.size(); faceI++) { - if (internalOrCoupledFaces.size() && !internalOrCoupledFaces[faceI]) + if (!internalOrCoupledFaces.size() || !internalOrCoupledFaces[faceI]) { sumClosed += areas[faceI]; sumMagClosedBoundary += mag(areas[faceI]); diff --git a/tutorials/compressible/rhoLTSPimpleFoam/angledDuct/system/fvOptions b/tutorials/compressible/rhoLTSPimpleFoam/angledDuct/system/fvOptions index 2fd3242b6db2cfa6261812c3bf26be434dad3c45..b8256633c4649e8e4403a1e52494d53682b3681d 100644 --- a/tutorials/compressible/rhoLTSPimpleFoam/angledDuct/system/fvOptions +++ b/tutorials/compressible/rhoLTSPimpleFoam/angledDuct/system/fvOptions @@ -47,4 +47,4 @@ porosity1 } -//************************************************************************* // +// ************************************************************************* // diff --git a/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/system/fvOptions b/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/system/fvOptions index 43b573b7a90e2e90e0f3d2b85648dbfe00d4f4ba..8f9340b8e529f84012e6fa49aebe4b13b4c72865 100644 --- a/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/system/fvOptions +++ b/tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/system/fvOptions @@ -65,4 +65,4 @@ porosity1 } -//***************************************************************************// +// ************************************************************************* //