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 -------------------------------------------------------------------------------
10 License
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"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35 
36 // Patch name
37 defineTypeNameAndDebug(ignoreFaPatch, 0);
38 
39 // Add the patch constructor functions to the hash tables
40 addToRunTimeSelectionTable(faPatch, ignoreFaPatch, dictionary);
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,
90  const faBoundaryMesh& bm
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 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
Macros for easy insertion into run-time selection tables.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition: exprTraits.C:127
ignoreFaPatch(const word &name, const label index, const faBoundaryMesh &bm, const label nbrPolyPatchi=-1, const word &patchType=typeName)
Minimal construct from components.
Definition: ignoreFaPatch.C:41
A patch which will not exist in the faMesh. Typical example is a front and back plane of a 2-D geomet...
Definition: ignoreFaPatch.H:47
A class for handling words, derived from Foam::string.
Definition: word.H:63
defineTypeNameAndDebug(combustionModel, 0)
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition: faPatch.H:72
Finite area boundary mesh.
volScalarField & p
Namespace for OpenFOAM.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)