Loading...
Searching...
No Matches
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-2023 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
32// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33
34namespace Foam
35{
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
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
74}
75
76
78(
79 const wallPolyPatch& pp,
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.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
void size(const label n)
Definition UList.H:118
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
label index() const noexcept
The index of this patch in the boundaryMesh.
void addGroup(const word &name)
Add (unique) group for the patch.
A polyBoundaryMesh is a polyPatch list with registered IO, a reference to the associated polyMesh,...
A patch is a list of labels that address the faces in the global face list.
Definition polyPatch.H:73
friend class polyBoundaryMesh
Definition polyPatch.H:112
polyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
Definition polyPatch.C:75
label start() const noexcept
Return start label of this patch in the polyMesh face list.
Definition polyPatch.H:446
Foam::wallPolyPatch.
wallPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
A class for handling words, derived from Foam::string.
Definition word.H:66
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition className.H:142
Namespace for OpenFOAM.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition exprTraits.C:127
UList< label > labelUList
A UList of labels.
Definition UList.H:75
dictionary dict