1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::geometricSurfacePatch
29 The geometricSurfacePatch is like patchIdentifier but for surfaces.
30 Holds type, name and index.
33 geometricSurfacePatch.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef geometricSurfacePatch_H
38 #define geometricSurfacePatch_H
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class geometricSurfacePatch Declaration
53 \*---------------------------------------------------------------------------*/
55 class geometricSurfacePatch
59 //- Type name of patch
65 //- Index of patch in boundary
70 //- Runtime type information
71 ClassName("geometricSurfacePatch");
77 geometricSurfacePatch();
79 //- Construct from components
82 const word& geometricType,
87 //- Construct from Istream
88 geometricSurfacePatch(Istream&, const label index);
90 //- Construct from dictionary
94 const dictionary& dict,
102 const word& name() const
113 //- Return the type of the patch
114 const word& geometricType() const
116 return geometricType_;
119 //- Return the type of the patch
120 word& geometricType()
122 return geometricType_;
125 //- Return the index of this patch in the boundaryMesh
132 void write(Ostream&) const;
135 void writeDict(Ostream&) const;
140 bool operator!=(const geometricSurfacePatch&) const;
143 bool operator==(const geometricSurfacePatch&) const;
148 friend Ostream& operator<<(Ostream&, const geometricSurfacePatch&);
149 friend Istream& operator>>(Istream&, geometricSurfacePatch&);
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 } // End namespace Foam
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 // ************************************************************************* //