OpenFOAM: API Guide
v2112
The open source CFD toolbox
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
-------------------------------------------------------------------------------
11
License
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
"
30
#include "
addToRunTimeSelectionTable.H
"
31
32
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33
34
namespace
Foam
35
{
36
defineTypeNameAndDebug
(wallPolyPatch, 0);
37
38
addToRunTimeSelectionTable
(polyPatch, wallPolyPatch, word);
39
addToRunTimeSelectionTable
(polyPatch, wallPolyPatch, dictionary);
40
}
41
42
// * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * * * //
43
44
Foam::wallPolyPatch::wallPolyPatch
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
61
Foam::wallPolyPatch::wallPolyPatch
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
77
Foam::wallPolyPatch::wallPolyPatch
78
(
79
const
wallPolyPatch
& pp,
80
const
polyBoundaryMesh
& bm
81
)
82
:
83
polyPatch
(pp, bm)
84
{}
85
86
87
Foam::wallPolyPatch::wallPolyPatch
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
100
Foam::wallPolyPatch::wallPolyPatch
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
// ************************************************************************* //
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Foam::word
A class for handling words, derived from Foam::string.
Definition:
word.H:65
Foam::polyBoundaryMesh
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
Definition:
polyBoundaryMesh.H:63
wallPolyPatch.H
Foam::wallPolyPatch::wallPolyPatch
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:45
Foam::polyPatch
A patch is a list of labels that address the faces in the global face list.
Definition:
polyPatch.H:68
dict
dictionary dict
Definition:
searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition:
dictionary.H:123
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::wallPolyPatch
Foam::wallPolyPatch.
Definition:
wallPolyPatch.H:50
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
Foam::UList< label >
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition:
exprTraits.C:59
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)
src
OpenFOAM
meshes
polyMesh
polyPatches
derived
wall
wallPolyPatch.C
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.