1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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
29 The boundaryRegion persistent data saved as a Map<dictionary>.
31 The meshReader supports boundaryRegion information.
33 The <tt>constant/boundaryRegion</tt> file is an @c IOMap<dictionary>
34 that is used to save the information persistently.
35 It contains the boundaryRegion information of the following form:
51 \*---------------------------------------------------------------------------*/
53 #ifndef boundaryRegion_H
54 #define boundaryRegion_H
58 #include "dictionary.H"
59 #include "labelList.H"
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67 /*---------------------------------------------------------------------------*\
68 Class boundaryRegion Declaration
69 \*---------------------------------------------------------------------------*/
73 public Map<dictionary>
75 // Private Member Functions
77 //- Disallow default bitwise copy construct
78 boundaryRegion(const boundaryRegion&);
88 //- Construct read from registry, name. instance
91 const objectRegistry&,
92 const word& name = "boundaryRegion",
93 const fileName& instance = "constant"
103 //- Append to the end, return index
104 label append(const dictionary&);
106 //- Return index corresponding to patch 'name'
107 // returns -1 if not found
108 label findIndex(const word& name) const;
110 //- Return a Map of (id => name)
111 Map<word> names() const;
113 //- Return a Map of (id => type)
114 Map<word> boundaryTypes() const;
116 //- Return BoundaryType corresponding to patch 'name'
117 word boundaryType(const word& name) const;
119 //- Read constant/boundaryRegion
122 const objectRegistry&,
123 const word& name = "boundaryRegion",
124 const fileName& instance = "constant"
127 //- Write constant/boundaryRegion for later reuse
130 const objectRegistry&,
131 const word& name = "boundaryRegion",
132 const fileName& instance = "constant"
139 void operator=(const boundaryRegion&);
141 //- Assign from Map<dictionary>
142 void operator=(const Map<dictionary>&);
148 // each dictionary entry is a single word:
150 // newPatchName originalName;
152 void rename(const dictionary&);
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 } // End namespace Foam
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 // ************************************************************************* //