wallPolyPatch.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "wallPolyPatch.H"
28 
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
33  defineTypeNameAndDebug(wallPolyPatch, 0);
34 
35  addToRunTimeSelectionTable(polyPatch, wallPolyPatch, word);
36  addToRunTimeSelectionTable(polyPatch, wallPolyPatch, dictionary);
37 }
38 
39 // * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * * * //
40 
42 (
43  const word& name,
44  const label size,
45  const label start,
46  const label index,
47  const polyBoundaryMesh& bm,
48  const word& patchType
49 )
50 :
51  polyPatch(name, size, start, index, bm, patchType)
52 {
53  // wall is not constraint type so add wall group explicitly
54  if (findIndex(inGroups(), typeName) == -1)
55  {
56  inGroups().append(typeName);
57  }
58 }
59 
60 
62 (
63  const word& name,
64  const dictionary& dict,
65  const label index,
66  const polyBoundaryMesh& bm,
67  const word& patchType
68 )
69 :
70  polyPatch(name, dict, index, bm, patchType)
71 {
72  // wall is not constraint type so add wall group explicitly
73  if (findIndex(inGroups(), typeName) == -1)
74  {
75  inGroups().append(typeName);
76  }
77 }
78 
79 
81 (
82  const wallPolyPatch& pp,
83  const polyBoundaryMesh& bm
84 )
85 :
86  polyPatch(pp, bm)
87 {}
88 
89 
91 (
92  const wallPolyPatch& pp,
93  const polyBoundaryMesh& bm,
94  const label index,
95  const label newSize,
96  const label newStart
97 )
98 :
99  polyPatch(pp, bm, index, newSize, newStart)
100 {}
101 
102 
104 (
105  const wallPolyPatch& pp,
106  const polyBoundaryMesh& bm,
107  const label index,
108  const labelUList& mapAddressing,
109  const label newStart
110 )
111 :
112  polyPatch(pp, bm, index, mapAddressing, newStart)
113 {}
114 
115 
116 // ************************************************************************* //
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
Macros for easy insertion into run-time selection tables.
A class for handling words, derived from string.
Definition: word.H:59
Foam::wallPolyPatch.
Definition: wallPolyPatch.H:48
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Definition: HashTable.H:60
Foam::polyBoundaryMesh.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
wallPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
Definition: wallPolyPatch.C:42
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:66
Namespace for OpenFOAM.