diff --git a/src/meshTools/sets/surfaceRegions/boundaryToFace/boundaryToFace.C b/src/meshTools/sets/surfaceRegions/boundaryToFace/boundaryToFace.C
deleted file mode 100644
index 7ae3ab1a6c..0000000000
--- a/src/meshTools/sets/surfaceRegions/boundaryToFace/boundaryToFace.C
+++ /dev/null
@@ -1,125 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-\*---------------------------------------------------------------------------*/
-
-#include "boundaryToFace.H"
-#include "polyMesh.H"
-
-#include "addToRunTimeSelectionTable.H"
-
-// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-defineTypeNameAndDebug(boundaryToFace, 0);
-
-addToRunTimeSelectionTable(topoSetSource, boundaryToFace, word);
-
-addToRunTimeSelectionTable(topoSetSource, boundaryToFace, istream);
-
-}
-
-
-Foam::topoSetSource::addToUsageTable Foam::boundaryToFace::usage_
-(
- boundaryToFace::typeName,
- "\n Usage: boundaryToFace\n\n"
- " Select all boundary faces\n\n"
-);
-
-
-// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
-
-void Foam::boundaryToFace::combine(topoSet& set, const bool add) const
-{
- for
- (
- label facei = mesh().nInternalFaces();
- facei < mesh().nFaces();
- facei++
- )
- {
- addOrDelete(set, facei, add);
- }
-}
-
-
-// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
-
-// Construct from components
-Foam::boundaryToFace::boundaryToFace(const polyMesh& mesh)
-:
- topoSetSource(mesh)
-{}
-
-
-// Construct from dictionary
-Foam::boundaryToFace::boundaryToFace(const polyMesh& mesh, const dictionary&)
-:
- topoSetSource(mesh)
-{}
-
-
-// Construct from Istream
-Foam::boundaryToFace::boundaryToFace
-(
- const polyMesh& mesh,
- Istream& is
-)
-:
- topoSetSource(mesh)
-{}
-
-
-// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
-
-Foam::boundaryToFace::~boundaryToFace()
-{}
-
-
-// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
-
-void Foam::boundaryToFace::applyToSet
-(
- const topoSetSource::setAction action,
- topoSet& set
-) const
-{
- if ((action == topoSetSource::NEW) || (action == topoSetSource::ADD))
- {
- Info<< " Adding all boundary faces ..." << endl;
-
- combine(set, true);
- }
- else if (action == topoSetSource::DELETE)
- {
- Info<< " Removing all boundary faces ..." << endl;
-
- combine(set, false);
- }
-}
-
-
-// ************************************************************************* //
diff --git a/src/meshTools/sets/surfaceRegions/boundaryToFace/boundaryToFace.H b/src/meshTools/sets/surfaceRegions/boundaryToFace/boundaryToFace.H
deleted file mode 100644
index 5875ea2902..0000000000
--- a/src/meshTools/sets/surfaceRegions/boundaryToFace/boundaryToFace.H
+++ /dev/null
@@ -1,117 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-Class
- Foam::boundaryToFace
-
-Description
- A topoSetSource to select all external (boundary) faces.
-
-SourceFiles
- boundaryToFace.C
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef boundaryToFace_H
-#define boundaryToFace_H
-
-#include "topoSetSource.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-/*---------------------------------------------------------------------------*\
- Class boundaryToFace Declaration
-\*---------------------------------------------------------------------------*/
-
-class boundaryToFace
-:
- public topoSetSource
-{
- // Private data
-
- //- Add usage string
- static addToUsageTable usage_;
-
-
- // Private Member Functions
-
- void combine(topoSet& set, const bool add) const;
-
-
-public:
-
- //- Runtime type information
- TypeName("boundaryToFace");
-
- // Constructors
-
- //- Construct from components
- boundaryToFace(const polyMesh&);
-
- //- Construct from dictionary
- boundaryToFace
- (
- const polyMesh& mesh,
- const dictionary& dict
- );
-
- //- Construct from Istream
- boundaryToFace
- (
- const polyMesh& mesh,
- Istream&
- );
-
-
- //- Destructor
- virtual ~boundaryToFace();
-
-
- // Member Functions
-
- virtual sourceType setType() const
- {
- return FACESETSOURCE;
- }
-
- virtual void applyToSet
- (
- const topoSetSource::setAction action,
- topoSet&
- ) const;
-
-};
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-} // End namespace Foam
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
diff --git a/src/meshTools/sets/surfaceRegions/boxToFace/boxToFace.C b/src/meshTools/sets/surfaceRegions/boxToFace/boxToFace.C
deleted file mode 100644
index 5ad4d8e5e1..0000000000
--- a/src/meshTools/sets/surfaceRegions/boxToFace/boxToFace.C
+++ /dev/null
@@ -1,145 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-\*---------------------------------------------------------------------------*/
-
-#include "boxToFace.H"
-#include "polyMesh.H"
-
-#include "addToRunTimeSelectionTable.H"
-
-// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-defineTypeNameAndDebug(boxToFace, 0);
-
-addToRunTimeSelectionTable(topoSetSource, boxToFace, word);
-
-addToRunTimeSelectionTable(topoSetSource, boxToFace, istream);
-
-}
-
-
-Foam::topoSetSource::addToUsageTable Foam::boxToFace::usage_
-(
- boxToFace::typeName,
- "\n Usage: boxToFace ((minx miny minz) (maxx maxy maxz))\n\n"
- " Select all face with faceCentre within bounding box\n\n"
-);
-
-
-// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
-
-void Foam::boxToFace::combine(topoSet& set, const bool add) const
-{
- const pointField& ctrs = mesh_.faceCentres();
-
- forAll(ctrs, facei)
- {
- forAll(bbs_, i)
- {
- if (bbs_[i].contains(ctrs[facei]))
- {
- addOrDelete(set, facei, add);
- break;
- }
- }
- }
-}
-
-
-// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
-
-// Construct from components
-Foam::boxToFace::boxToFace
-(
- const polyMesh& mesh,
- const treeBoundBoxList& bbs
-)
-:
- topoSetSource(mesh),
- bbs_(bbs)
-{}
-
-
-// Construct from dictionary
-Foam::boxToFace::boxToFace
-(
- const polyMesh& mesh,
- const dictionary& dict
-)
-:
- topoSetSource(mesh),
- bbs_
- (
- dict.found("box")
- ? treeBoundBoxList(1, treeBoundBox(dict.lookup("box")))
- : dict.lookup("boxes")
- )
-{}
-
-
-// Construct from Istream
-Foam::boxToFace::boxToFace
-(
- const polyMesh& mesh,
- Istream& is
-)
-:
- topoSetSource(mesh),
- bbs_(1, treeBoundBox(checkIs(is)))
-{}
-
-
-// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
-
-Foam::boxToFace::~boxToFace()
-{}
-
-
-// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
-
-void Foam::boxToFace::applyToSet
-(
- const topoSetSource::setAction action,
- topoSet& set
-) const
-{
- if ((action == topoSetSource::NEW) || (action == topoSetSource::ADD))
- {
- Info<< " Adding faces with centre within boxes " << bbs_ << endl;
-
- combine(set, true);
- }
- else if (action == topoSetSource::DELETE)
- {
- Info<< " Removing faces with centre within boxes " << bbs_ << endl;
-
- combine(set, false);
- }
-}
-
-
-// ************************************************************************* //
diff --git a/src/meshTools/sets/surfaceRegions/boxToFace/boxToFace.H b/src/meshTools/sets/surfaceRegions/boxToFace/boxToFace.H
deleted file mode 100644
index f3b4d4707d..0000000000
--- a/src/meshTools/sets/surfaceRegions/boxToFace/boxToFace.H
+++ /dev/null
@@ -1,126 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-Class
- Foam::boxToFace
-
-Description
- A topoSetSource to select faces based on face centres inside box.
-
-SourceFiles
- boxToFace.C
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef boxToFace_H
-#define boxToFace_H
-
-#include "topoSetSource.H"
-#include "treeBoundBoxList.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-/*---------------------------------------------------------------------------*\
- Class boxToFace Declaration
-\*---------------------------------------------------------------------------*/
-
-class boxToFace
-:
- public topoSetSource
-{
-
- // Private data
-
- //- Add usage string
- static addToUsageTable usage_;
-
- //- Bounding box.
- treeBoundBoxList bbs_;
-
-
- // Private Member Functions
-
- void combine(topoSet& set, const bool add) const;
-
-
-public:
-
- //- Runtime type information
- TypeName("boxToFace");
-
- // Constructors
-
- //- Construct from components
- boxToFace
- (
- const polyMesh& mesh,
- const treeBoundBoxList& bbs
- );
-
- //- Construct from dictionary
- boxToFace
- (
- const polyMesh& mesh,
- const dictionary& dict
- );
-
- //- Construct from Istream
- boxToFace
- (
- const polyMesh& mesh,
- Istream&
- );
-
-
- //- Destructor
- virtual ~boxToFace();
-
-
- // Member Functions
-
- virtual sourceType setType() const
- {
- return FACESETSOURCE;
- }
-
- virtual void applyToSet
- (
- const topoSetSource::setAction action,
- topoSet&
- ) const;
-
-};
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-} // End namespace Foam
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
diff --git a/src/meshTools/sets/surfaceRegions/cellToFace/cellToFace.C b/src/meshTools/sets/surfaceRegions/cellToFace/cellToFace.C
deleted file mode 100644
index 64e04fe756..0000000000
--- a/src/meshTools/sets/surfaceRegions/cellToFace/cellToFace.C
+++ /dev/null
@@ -1,228 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-\*---------------------------------------------------------------------------*/
-
-#include "cellToFace.H"
-#include "polyMesh.H"
-#include "cellSet.H"
-#include "Time.H"
-#include "syncTools.H"
-#include "addToRunTimeSelectionTable.H"
-
-// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
-
-namespace Foam
-{
- defineTypeNameAndDebug(cellToFace, 0);
- addToRunTimeSelectionTable(topoSetSource, cellToFace, word);
- addToRunTimeSelectionTable(topoSetSource, cellToFace, istream);
-
- template<>
- const char* Foam::NamedEnum
- <
- Foam::cellToFace::cellAction,
- 2
- >::names[] =
- {
- "all",
- "both"
- };
-}
-
-
-Foam::topoSetSource::addToUsageTable Foam::cellToFace::usage_
-(
- cellToFace::typeName,
- "\n Usage: cellToFace all|both\n\n"
- " Select -all : all faces of cells in the cellSet\n"
- " -both: faces where both neighbours are in the cellSet\n\n"
-);
-
-const Foam::NamedEnum
- Foam::cellToFace::cellActionNames_;
-
-
-// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
-
-void Foam::cellToFace::combine(topoSet& set, const bool add) const
-{
- // Load the set
- if (!exists(mesh_.time().path()/topoSet::localPath(mesh_, setName_)))
- {
- SeriousError<< "Cannot load set "
- << setName_ << endl;
- }
-
- cellSet loadedSet(mesh_, setName_);
-
- if (option_ == ALL)
- {
- // Add all faces from cell
- forAllConstIter(cellSet, loadedSet, iter)
- {
- const label celli = iter.key();
- const labelList& cFaces = mesh_.cells()[celli];
-
- forAll(cFaces, cFacei)
- {
- addOrDelete(set, cFaces[cFacei], add);
- }
- }
- }
- else if (option_ == BOTH)
- {
- // Add all faces whose both neighbours are in set.
-
- const label nInt = mesh_.nInternalFaces();
- const labelList& own = mesh_.faceOwner();
- const labelList& nei = mesh_.faceNeighbour();
- const polyBoundaryMesh& patches = mesh_.boundaryMesh();
-
-
- // Check all internal faces
- for (label facei = 0; facei < nInt; facei++)
- {
- if (loadedSet.found(own[facei]) && loadedSet.found(nei[facei]))
- {
- addOrDelete(set, facei, add);
- }
- }
-
-
- // Get coupled cell status
- boolList neiInSet(mesh_.nFaces()-nInt, false);
-
- forAll(patches, patchi)
- {
- const polyPatch& pp = patches[patchi];
-
- if (pp.coupled())
- {
- label facei = pp.start();
- forAll(pp, i)
- {
- neiInSet[facei-nInt] = loadedSet.found(own[facei]);
- facei++;
- }
- }
- }
- syncTools::swapBoundaryFaceList(mesh_, neiInSet);
-
-
- // Check all boundary faces
- forAll(patches, patchi)
- {
- const polyPatch& pp = patches[patchi];
-
- if (pp.coupled())
- {
- label facei = pp.start();
- forAll(pp, i)
- {
- if (loadedSet.found(own[facei]) && neiInSet[facei-nInt])
- {
- addOrDelete(set, facei, add);
- }
- facei++;
- }
- }
- }
- }
-}
-
-
-// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
-
-// Construct from componenta
-Foam::cellToFace::cellToFace
-(
- const polyMesh& mesh,
- const word& setName,
- const cellAction option
-)
-:
- topoSetSource(mesh),
- setName_(setName),
- option_(option)
-{}
-
-
-// Construct from dictionary
-Foam::cellToFace::cellToFace
-(
- const polyMesh& mesh,
- const dictionary& dict
-)
-:
- topoSetSource(mesh),
- setName_(dict.lookup("set")),
- option_(cellActionNames_.read(dict.lookup("option")))
-{}
-
-
-// Construct from Istream
-Foam::cellToFace::cellToFace
-(
- const polyMesh& mesh,
- Istream& is
-)
-:
- topoSetSource(mesh),
- setName_(checkIs(is)),
- option_(cellActionNames_.read(checkIs(is)))
-{}
-
-
-// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
-
-Foam::cellToFace::~cellToFace()
-{}
-
-
-// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
-
-void Foam::cellToFace::applyToSet
-(
- const topoSetSource::setAction action,
- topoSet& set
-) const
-{
- if ((action == topoSetSource::NEW) || (action == topoSetSource::ADD))
- {
- Info<< " Adding faces according to cellSet " << setName_
- << " ..." << endl;
-
- combine(set, true);
- }
- else if (action == topoSetSource::DELETE)
- {
- Info<< " Removing faces according to cellSet " << setName_
- << " ..." << endl;
-
- combine(set, false);
- }
-}
-
-
-// ************************************************************************* //
diff --git a/src/meshTools/sets/surfaceRegions/cellToFace/cellToFace.H b/src/meshTools/sets/surfaceRegions/cellToFace/cellToFace.H
deleted file mode 100644
index d49917a63c..0000000000
--- a/src/meshTools/sets/surfaceRegions/cellToFace/cellToFace.H
+++ /dev/null
@@ -1,145 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-Class
- Foam::cellToFace
-
-Description
- A topoSetSource to select a faceSet from cells.
-
- Either all faces of cell or some other criterion.
- See implementation.
- Note: when picking up coupled faces uses cells on neighbouring processors.
-
-SourceFiles
- cellToFace.C
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef cellToFace_H
-#define cellToFace_H
-
-#include "topoSetSource.H"
-#include "NamedEnum.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-/*---------------------------------------------------------------------------*\
- Class cellToFace Declaration
-\*---------------------------------------------------------------------------*/
-
-class cellToFace
-:
- public topoSetSource
-{
-public:
- //- Enumeration defining the valid options
- enum cellAction
- {
- ALL,
- BOTH
- };
-
-
-private:
-
- //- Add usage string
- static addToUsageTable usage_;
-
- static const NamedEnum cellActionNames_;
-
- //- Name of set to use
- word setName_;
-
- //- Option
- cellAction option_;
-
-
- // Private Member Functions
-
- //- Depending on face to cell option add to or delete from cellSet.
- void combine(topoSet& set, const bool add) const;
-
-
-public:
-
- //- Runtime type information
- TypeName("cellToFace");
-
- // Constructors
-
- //- Construct from components
- cellToFace
- (
- const polyMesh& mesh,
- const word& setName,
- const cellAction option
- );
-
- //- Construct from dictionary
- cellToFace
- (
- const polyMesh& mesh,
- const dictionary& dict
- );
-
- //- Construct from Istream
- cellToFace
- (
- const polyMesh& mesh,
- Istream&
- );
-
-
- //- Destructor
- virtual ~cellToFace();
-
-
- // Member Functions
-
- virtual sourceType setType() const
- {
- return FACESETSOURCE;
- }
-
- virtual void applyToSet
- (
- const topoSetSource::setAction action,
- topoSet&
- ) const;
-
-};
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-} // End namespace Foam
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
diff --git a/src/meshTools/sets/surfaceRegions/faceToFace/faceToFace.C b/src/meshTools/sets/surfaceRegions/faceToFace/faceToFace.C
deleted file mode 100644
index 1e05fdefde..0000000000
--- a/src/meshTools/sets/surfaceRegions/faceToFace/faceToFace.C
+++ /dev/null
@@ -1,129 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-\*---------------------------------------------------------------------------*/
-
-#include "faceToFace.H"
-#include "polyMesh.H"
-#include "faceSet.H"
-
-#include "addToRunTimeSelectionTable.H"
-
-// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-defineTypeNameAndDebug(faceToFace, 0);
-
-addToRunTimeSelectionTable(topoSetSource, faceToFace, word);
-
-addToRunTimeSelectionTable(topoSetSource, faceToFace, istream);
-
-}
-
-
-Foam::topoSetSource::addToUsageTable Foam::faceToFace::usage_
-(
- faceToFace::typeName,
- "\n Usage: faceToFace \n\n"
- " Select all faces in the faceSet\n\n"
-);
-
-
-// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
-
-// Construct from components
-Foam::faceToFace::faceToFace
-(
- const polyMesh& mesh,
- const word& setName
-)
-:
- topoSetSource(mesh),
- setName_(setName)
-{}
-
-
-// Construct from dictionary
-Foam::faceToFace::faceToFace
-(
- const polyMesh& mesh,
- const dictionary& dict
-)
-:
- topoSetSource(mesh),
- setName_(dict.lookup("set"))
-{}
-
-
-// Construct from Istream
-Foam::faceToFace::faceToFace
-(
- const polyMesh& mesh,
- Istream& is
-)
-:
- topoSetSource(mesh),
- setName_(checkIs(is))
-{}
-
-
-// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
-
-Foam::faceToFace::~faceToFace()
-{}
-
-
-// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
-
-void Foam::faceToFace::applyToSet
-(
- const topoSetSource::setAction action,
- topoSet& set
-) const
-{
- if ((action == topoSetSource::NEW) || (action == topoSetSource::ADD))
- {
- Info<< " Adding all faces from faceSet " << setName_ << " ..."
- << endl;
-
- // Load the set
- faceSet loadedSet(mesh_, setName_);
-
- set.addSet(loadedSet);
- }
- else if (action == topoSetSource::DELETE)
- {
- Info<< " Removing all faces from faceSet " << setName_ << " ..."
- << endl;
-
- // Load the set
- faceSet loadedSet(mesh_, setName_);
-
- set.deleteSet(loadedSet);
- }
-}
-
-
-// ************************************************************************* //
diff --git a/src/meshTools/sets/surfaceRegions/faceToFace/faceToFace.H b/src/meshTools/sets/surfaceRegions/faceToFace/faceToFace.H
deleted file mode 100644
index 45de3e301b..0000000000
--- a/src/meshTools/sets/surfaceRegions/faceToFace/faceToFace.H
+++ /dev/null
@@ -1,118 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-Class
- Foam::faceToFace
-
-Description
- A topoSetSource to select faces based on usage in another faceSet.
-
-SourceFiles
- faceToFace.C
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef faceToFace_H
-#define faceToFace_H
-
-#include "topoSetSource.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-/*---------------------------------------------------------------------------*\
- Class faceToFace Declaration
-\*---------------------------------------------------------------------------*/
-
-class faceToFace
-:
- public topoSetSource
-{
- // Private data
-
- //- Add usage string
- static addToUsageTable usage_;
-
- //- Name of set to use
- word setName_;
-
-public:
-
- //- Runtime type information
- TypeName("faceToFace");
-
- // Constructors
-
- //- Construct from components
- faceToFace
- (
- const polyMesh& mesh,
- const word& setName
- );
-
- //- Construct from dictionary
- faceToFace
- (
- const polyMesh& mesh,
- const dictionary& dict
- );
-
- //- Construct from Istream
- faceToFace
- (
- const polyMesh& mesh,
- Istream&
- );
-
-
- //- Destructor
- virtual ~faceToFace();
-
-
- // Member Functions
-
- virtual sourceType setType() const
- {
- return FACESETSOURCE;
- }
-
- virtual void applyToSet
- (
- const topoSetSource::setAction action,
- topoSet&
- ) const;
-
-};
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-} // End namespace Foam
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
diff --git a/src/meshTools/sets/surfaceRegions/labelToFace/labelToFace.C b/src/meshTools/sets/surfaceRegions/labelToFace/labelToFace.C
deleted file mode 100644
index ca61be9071..0000000000
--- a/src/meshTools/sets/surfaceRegions/labelToFace/labelToFace.C
+++ /dev/null
@@ -1,131 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-\*---------------------------------------------------------------------------*/
-
-#include "labelToFace.H"
-#include "polyMesh.H"
-
-#include "addToRunTimeSelectionTable.H"
-
-// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-defineTypeNameAndDebug(labelToFace, 0);
-
-addToRunTimeSelectionTable(topoSetSource, labelToFace, word);
-
-addToRunTimeSelectionTable(topoSetSource, labelToFace, istream);
-
-}
-
-
-Foam::topoSetSource::addToUsageTable Foam::labelToFace::usage_
-(
- labelToFace::typeName,
- "\n Usage: labelToFace (i0 i1 .. in)\n\n"
- " Select faces by label\n\n"
-);
-
-
-// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
-
-void Foam::labelToFace::combine(topoSet& set, const bool add) const
-{
- forAll(labels_, labelI)
- {
- addOrDelete(set, labels_[labelI], add);
- }
-}
-
-
-// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
-
-// Construct from components
-Foam::labelToFace::labelToFace
-(
- const polyMesh& mesh,
- const labelList& labels
-)
-:
- topoSetSource(mesh),
- labels_(labels)
-{}
-
-
-// Construct from dictionary
-Foam::labelToFace::labelToFace
-(
- const polyMesh& mesh,
- const dictionary& dict
-)
-:
- topoSetSource(mesh),
- labels_(dict.lookup("value"))
-{}
-
-
-// Construct from Istream
-Foam::labelToFace::labelToFace
-(
- const polyMesh& mesh,
- Istream& is
-)
-:
- topoSetSource(mesh),
- labels_(checkIs(is))
-{}
-
-
-// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
-
-Foam::labelToFace::~labelToFace()
-{}
-
-
-// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
-
-void Foam::labelToFace::applyToSet
-(
- const topoSetSource::setAction action,
- topoSet& set
-) const
-{
- if ((action == topoSetSource::NEW) || (action == topoSetSource::ADD))
- {
- Info<< " Adding faces mentioned in dictionary" << " ..." << endl;
-
- combine(set, true);
- }
- else if (action == topoSetSource::DELETE)
- {
- Info<< " Removing faces mentioned dictionary" << " ..." << endl;
-
- combine(set, false);
- }
-}
-
-
-// ************************************************************************* //
diff --git a/src/meshTools/sets/surfaceRegions/labelToFace/labelToFace.H b/src/meshTools/sets/surfaceRegions/labelToFace/labelToFace.H
deleted file mode 100644
index e66ef132f2..0000000000
--- a/src/meshTools/sets/surfaceRegions/labelToFace/labelToFace.H
+++ /dev/null
@@ -1,125 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-Class
- Foam::labelToFace
-
-Description
- A topoSetSource to select faces given explicitly provided face labels.
-
-SourceFiles
- labelToFace.C
-
-\*---------------------------------------------------------------------------*/
-
-#ifndef labelToFace_H
-#define labelToFace_H
-
-#include "topoSetSource.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-/*---------------------------------------------------------------------------*\
- Class labelToFace Declaration
-\*---------------------------------------------------------------------------*/
-
-class labelToFace
-:
- public topoSetSource
-{
-
- // Private data
-
- //- Add usage string
- static addToUsageTable usage_;
-
- //- Cell labels read from dictionary
- labelList labels_;
-
-
- // Private Member Functions
-
- void combine(topoSet& set, const bool add) const;
-
-
-public:
-
- //- Runtime type information
- TypeName("labelToFace");
-
- // Constructors
-
- //- Construct from components
- labelToFace
- (
- const polyMesh& mesh,
- const labelList& labels
- );
-
- //- Construct from dictionary
- labelToFace
- (
- const polyMesh& mesh,
- const dictionary& dict
- );
-
- //- Construct from Istream
- labelToFace
- (
- const polyMesh& mesh,
- Istream&
- );
-
-
- //- Destructor
- virtual ~labelToFace();
-
-
- // Member Functions
-
- virtual sourceType setType() const
- {
- return FACESETSOURCE;
- }
-
- virtual void applyToSet
- (
- const topoSetSource::setAction action,
- topoSet&
- ) const;
-
-};
-
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-} // End namespace Foam
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-#endif
-
-// ************************************************************************* //
diff --git a/src/meshTools/sets/surfaceRegions/normalToFace/normalToFace.C b/src/meshTools/sets/surfaceRegions/normalToFace/normalToFace.C
deleted file mode 100644
index eb289aa68c..0000000000
--- a/src/meshTools/sets/surfaceRegions/normalToFace/normalToFace.C
+++ /dev/null
@@ -1,171 +0,0 @@
-/*---------------------------------------------------------------------------*\
- ========= |
- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
- \\ / O peration |
- \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
- \\/ M anipulation |
--------------------------------------------------------------------------------
-License
- This file is part of OpenFOAM.
-
- OpenFOAM is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- for more details.
-
- You should have received a copy of the GNU General Public License
- along with OpenFOAM. If not, see .
-
-\*---------------------------------------------------------------------------*/
-
-#include "normalToFace.H"
-#include "polyMesh.H"
-#include "faceSet.H"
-
-#include "addToRunTimeSelectionTable.H"
-
-// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
-
-namespace Foam
-{
-
-defineTypeNameAndDebug(normalToFace, 0);
-
-addToRunTimeSelectionTable(topoSetSource, normalToFace, word);
-
-addToRunTimeSelectionTable(topoSetSource, normalToFace, istream);
-
-}
-
-
-Foam::topoSetSource::addToUsageTable Foam::normalToFace::usage_
-(
- normalToFace::typeName,
- "\n Usage: normalToFace (nx ny nz) \n\n"
- " Select faces with normal aligned to unit vector (nx ny nz)\n"
- " to within tol\n"
-);
-
-
-// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
-
-void Foam::normalToFace::setNormal()
-{
- normal_ /= mag(normal_) + VSMALL;
-
- Info<< " normalToFace : Normalized vector to " << normal_ << endl;
-
- if (tol_ < -1 || tol_ > 1)
- {
- FatalErrorInFunction
- << "tolerance not within range -1..1 : " << tol_
- << exit(FatalError);
- }
-}
-
-
-// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
-
-// Construct from components
-Foam::normalToFace::normalToFace
-(
- const polyMesh& mesh,
- const vector& normal,
- const scalar tol
-)
-:
- topoSetSource(mesh),
- normal_(normal),
- tol_(tol)
-{
- setNormal();
-}
-
-
-// Construct from dictionary
-Foam::normalToFace::normalToFace(const polyMesh& mesh, const dictionary& dict)
-:
- topoSetSource(mesh),
- normal_(dict.lookup("normal")),
- tol_(readScalar(dict.lookup("cos")))
-{
- setNormal();
-}
-
-
-// Construct from Istream
-Foam::normalToFace::normalToFace(const polyMesh& mesh, Istream& is)
-:
- topoSetSource(mesh),
- normal_(checkIs(is)),
- tol_(readScalar(checkIs(is)))
-{
- setNormal();
-}
-
-
-// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
-
-Foam::normalToFace::~normalToFace()
-{}
-
-
-// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
-
-void Foam::normalToFace::applyToSet
-(
- const topoSetSource::setAction action,
- topoSet& set
-) const
-{
- if ((action == topoSetSource::NEW) || (action == topoSetSource::ADD))
- {
- Info<< " Adding faces according to normal being aligned with "
- << normal_ << " (to within " << tol_ << ") ..." << endl;
-
- forAll(mesh_.faceAreas(), facei)
- {
- vector n = mesh_.faceAreas()[facei];
- n /= mag(n) + VSMALL;
-
- if (mag(1 - (n & normal_)) < tol_)
- {
- set.insert(facei);
- }
- }
- }
- else if (action == topoSetSource::DELETE)
- {
- Info<< " Removing faces according to normal being aligned with "
- << normal_ << " (to within " << tol_ << ") ..." << endl;
-
-
- DynamicList