Loading...
Searching...
No Matches
ignoreFaPatch.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) 2023 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26\*---------------------------------------------------------------------------*/
27
28#include "ignoreFaPatch.H"
31// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33namespace Foam
34{
35
36// Patch name
38
39// Add the patch constructor functions to the hash tables
41
42} // End namespace Foam
43
44
45// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
46
48(
49 const word& name,
50 const label index,
51 const faBoundaryMesh& bm,
52 const label nbrPolyPatchi,
53 const word& patchType
54)
55:
56 ignoreFaPatch(name, labelList(), index, bm, nbrPolyPatchi, patchType)
57{}
58
59
61(
62 const word& name,
63 const labelUList& edgeLabels,
64 const label index,
65 const faBoundaryMesh& bm,
66 const label nbrPolyPatchi,
67 const word& patchType
68)
69:
70 faPatch(name, edgeLabels, index, bm, nbrPolyPatchi, patchType)
71{}
72
73
75(
76 const word& name,
77 const dictionary& dict,
78 const label index,
79 const faBoundaryMesh& bm,
80 const word& patchType
81)
82:
83 faPatch(name, dict, index, bm, patchType)
84{}
85
86
88(
89 const ignoreFaPatch& p,
91)
92:
93 faPatch(p, bm)
94{}
95
96
98(
99 const ignoreFaPatch& p,
100 const faBoundaryMesh& bm,
101 const label index,
102 const labelUList& edgeLabels,
103 const label nbrPolyPatchi
104)
105:
106 faPatch(p, bm, index, edgeLabels, nbrPolyPatchi)
107{}
108
109
110// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Finite area boundary mesh, which is a faPatch list with registered IO, a reference to the associated ...
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition faPatch.H:76
const labelList & edgeLabels() const noexcept
Return the list of edges.
Definition faPatch.H:335
friend class faBoundaryMesh
The faPatch geometry initialisation is called by faBoundaryMesh.
Definition faPatch.H:130
A patch which will not exist in the faMesh. Typical example is a front and back plane of a 2-D geomet...
ignoreFaPatch(const word &name, const label index, const faBoundaryMesh &bm, const label nbrPolyPatchi=-1, const word &patchType=typeName)
Minimal construct from components.
label index() const noexcept
The index of this patch in the boundaryMesh.
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
volScalarField & p
Namespace for OpenFOAM.
List< label > labelList
A List of labels.
Definition List.H:62
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