twoPhaseEulerFoam:frictionalStressModel/Schaeffer: Correct mut on processor boundaries
[OpenFOAM-1.7.x.git] / src / meshTools / sets / faceSources / faceToFace / faceToFace.H
blob5f924cb6a6303516936f86206a4e07e209a2f83b
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by
13     the Free Software Foundation, either version 3 of the License, or
14     (at your option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     Foam::faceToFace
27 Description
28     A topoSetSource to select faces based on usage in another faceSet.
30 SourceFiles
31     faceToFace.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef faceToFace_H
36 #define faceToFace_H
38 #include "topoSetSource.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
45 /*---------------------------------------------------------------------------*\
46                         Class faceToFace Declaration
47 \*---------------------------------------------------------------------------*/
49 class faceToFace
51     public topoSetSource
53     // Private data
55         //- Add usage string
56         static addToUsageTable usage_;
58         //- Name of set to use
59         word setName_;
61 public:
63     //- Runtime type information
64     TypeName("faceToFace");
66     // Constructors
68         //- Construct from components
69         faceToFace
70         (
71             const polyMesh& mesh,
72             const word& setName
73         );
75         //- Construct from dictionary
76         faceToFace
77         (
78             const polyMesh& mesh,
79             const dictionary& dict
80         );
82         //- Construct from Istream
83         faceToFace
84         (
85             const polyMesh& mesh,
86             Istream&
87         );
90     // Destructor
92         virtual ~faceToFace();
95     // Member Functions
97         virtual void applyToSet
98         (
99             const topoSetSource::setAction action,
100             topoSet&
101         ) const;
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 } // End namespace Foam
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 #endif
114 // ************************************************************************* //