wallPolyPatch.C
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2013 OpenFOAM Foundation
9 Copyright (C) 2021 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
29#include "wallPolyPatch.H"
31
32// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33
34namespace Foam
35{
37
40}
41
42// * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * * * //
43
45(
46 const word& name,
47 const label size,
48 const label start,
49 const label index,
50 const polyBoundaryMesh& bm,
51 const word& patchType
52)
53:
54 polyPatch(name, size, start, index, bm, patchType)
55{
56 // wall is not constraint type so add wall group explicitly
57 inGroups().appendUniq(typeName);
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 inGroups().appendUniq(typeName);
74}
75
76
78(
79 const wallPolyPatch& pp,
80 const polyBoundaryMesh& bm
81)
82:
83 polyPatch(pp, bm)
84{}
85
86
88(
89 const wallPolyPatch& pp,
90 const polyBoundaryMesh& bm,
91 const label index,
92 const label newSize,
93 const label newStart
94)
95:
96 polyPatch(pp, bm, index, newSize, newStart)
97{}
98
99
101(
102 const wallPolyPatch& pp,
103 const polyBoundaryMesh& bm,
104 const label index,
105 const labelUList& mapAddressing,
106 const label newStart
107)
108:
109 polyPatch(pp, bm, index, mapAddressing, newStart)
110{}
111
112
113// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
label appendUniq(const T &val)
Append an element if not already in the list.
Definition: ListI.H:232
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
const wordList & inGroups() const noexcept
The (optional) groups that the patch belongs to.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:75
Foam::wallPolyPatch.
Definition: wallPolyPatch.H:53
A class for handling words, derived from Foam::string.
Definition: word.H:68
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition: className.H:121
Namespace for OpenFOAM.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
dictionary dict