1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
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
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/>.
28 Empty front and back plane patch. Used for 2-D geometries.
33 \*---------------------------------------------------------------------------*/
35 #ifndef emptyPolyPatch_H
36 #define emptyPolyPatch_H
38 #include "polyPatch.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class emptyPolyPatch Declaration
47 \*---------------------------------------------------------------------------*/
55 //- Runtime type information
61 //- Construct from components
68 const polyBoundaryMesh& bm
71 //- Construct from dictionary
75 const dictionary& dict,
77 const polyBoundaryMesh& bm
80 //- Construct as copy, resetting the boundary mesh
81 emptyPolyPatch(const emptyPolyPatch&, const polyBoundaryMesh&);
83 //- Construct given the original patch and resetting the
84 // face list and boundary mesh information
87 const emptyPolyPatch& pp,
88 const polyBoundaryMesh& bm,
94 //- Construct given the original patch and a map
97 const emptyPolyPatch& pp,
98 const polyBoundaryMesh& bm,
100 const labelUList& mapAddressing,
104 //- Construct and return a clone, resetting the boundary mesh
105 virtual autoPtr<polyPatch> clone(const polyBoundaryMesh& bm) const
107 return autoPtr<polyPatch>(new emptyPolyPatch(*this, bm));
110 //- Construct and return a clone, resetting the face list
112 virtual autoPtr<polyPatch> clone
114 const polyBoundaryMesh& bm,
120 return autoPtr<polyPatch>
122 new emptyPolyPatch(*this, bm, index, newSize, newStart)
126 //- Construct and return a clone, resetting the face list
128 virtual autoPtr<polyPatch> clone
130 const polyBoundaryMesh& bm,
132 const labelUList& mapAddressing,
136 return autoPtr<polyPatch>
138 new emptyPolyPatch(*this, bm, index, mapAddressing, newStart)
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 } // End namespace Foam
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 // ************************************************************************* //