1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
5 \\ / A nd | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
28 The boundaryRegion persistent data saved as a Map<dictionary>.
30 The meshReader supports boundaryRegion information.
32 The <tt>constant/boundaryRegion</tt> file is an @c IOMap<dictionary>
33 that is used to save the information persistently.
34 It contains the boundaryRegion information of the following form:
50 \*---------------------------------------------------------------------------*/
52 #ifndef boundaryRegion_H
53 #define boundaryRegion_H
57 #include "dictionary.H"
58 #include "labelList.H"
60 #include "wordReList.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 => names) selected by patterns
114 Map<word> names(const List<wordRe>& patterns) const;
116 //- Return a Map of (id => type)
117 Map<word> boundaryTypes() const;
119 //- Return BoundaryType corresponding to patch 'name'
120 word boundaryType(const word& name) const;
122 //- Read constant/boundaryRegion
125 const objectRegistry&,
126 const word& name = "boundaryRegion",
127 const fileName& instance = "constant"
130 //- Write constant/boundaryRegion for later reuse
133 const objectRegistry&,
134 const word& name = "boundaryRegion",
135 const fileName& instance = "constant"
142 void operator=(const boundaryRegion&);
144 //- Assign from Map<dictionary>
145 void operator=(const Map<dictionary>&);
151 // each dictionary entry is a single word:
153 // newPatchName originalName;
155 void rename(const dictionary&);
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 } // End namespace Foam
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 // ************************************************************************* //