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-2026 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 {
34 
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 )
49 :
50  polyPatch(name, size, start, index, bm)
51 {
52  // wall is not constraint type so add wall group explicitly
53  if (findIndex(inGroups(), typeName) == -1)
54  {
56  }
57 }
58 
59 
61 (
62  const word& name,
63  const dictionary& dict,
64  const label index,
65  const polyBoundaryMesh& bm
66 )
67 :
68  polyPatch(name, dict, index, bm)
69 {
70  // wall is not constraint type so add wall group explicitly
71  if (findIndex(inGroups(), typeName) == -1)
72  {
74  }
75 }
76 
77 
79 (
80  const wallPolyPatch& pp,
81  const polyBoundaryMesh& bm
82 )
83 :
84  polyPatch(pp, bm)
85 {}
86 
87 
89 (
90  const wallPolyPatch& pp,
91  const polyBoundaryMesh& bm,
92  const label index,
93  const label newSize,
94  const label newStart
95 )
96 :
97  polyPatch(pp, bm, index, newSize, newStart)
98 {}
99 
100 
101 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
void append(const T &)
Append an element at the end of the list.
Definition: ListI.H:178
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
const wordList & inGroups() const
Return the optional groups patch belongs to.
Foam::polyBoundaryMesh.
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:71
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
Foam::wallPolyPatch.
Definition: wallPolyPatch.H:51
wallPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm)
Construct from components.
Definition: wallPolyPatch.C:42
A class for handling words, derived from string.
Definition: word.H:63
Namespace for OpenFOAM.
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
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
dictionary dict