From 68b0c866a4bec8f24a837f08eeb4af8c55002a56 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 19 Jun 2015 15:49:10 +0100 Subject: [PATCH] surfaceToCell, surfaceToPoint: Add surface file name expansion Resolves feature-request http://www.openfoam.org/mantisbt/view.php?id=1754 --- .../cellSources/surfaceToCell/surfaceToCell.C | 27 ++++++------------- .../surfaceToPoint/surfaceToPoint.C | 18 ++++--------- 2 files changed, 13 insertions(+), 32 deletions(-) diff --git a/src/meshTools/sets/cellSources/surfaceToCell/surfaceToCell.C b/src/meshTools/sets/cellSources/surfaceToCell/surfaceToCell.C index f4a0009028..1b9e7e7643 100644 --- a/src/meshTools/sets/cellSources/surfaceToCell/surfaceToCell.C +++ b/src/meshTools/sets/cellSources/surfaceToCell/surfaceToCell.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-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -37,13 +37,9 @@ License namespace Foam { - -defineTypeNameAndDebug(surfaceToCell, 0); - -addToRunTimeSelectionTable(topoSetSource, surfaceToCell, word); - -addToRunTimeSelectionTable(topoSetSource, surfaceToCell, istream); - + defineTypeNameAndDebug(surfaceToCell, 0); + addToRunTimeSelectionTable(topoSetSource, surfaceToCell, word); + addToRunTimeSelectionTable(topoSetSource, surfaceToCell, istream); } @@ -98,18 +94,15 @@ Foam::label Foam::surfaceToCell::getNearest } -// Return true if nearest surface to points on cell makes largish angle -// with nearest surface to cell centre. Returns false otherwise. Points visited -// are cached in pointToNearest bool Foam::surfaceToCell::differingPointNormals ( const triSurfaceSearch& querySurf, - const vector& span, // current search span + const vector& span, // Current search span const label cellI, - const label cellTriI, // nearest (to cell centre) surface triangle + const label cellTriI, // Nearest (to cell centre) surface triangle - Map