emptyFaPatch.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) 2016-2017 Wikki 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 "emptyFaPatch.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35 
36 // Patch name
37 defineTypeNameAndDebug(emptyFaPatch, 0);
38 
39 // Add the patch constructor functions to the hash tables
40 addToRunTimeSelectionTable(faPatch, emptyFaPatch, 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 ngbPolyPatchIndex
53 )
54 :
55  emptyFaPatch(name, labelList(), index, bm, ngbPolyPatchIndex)
56 {}
57 
58 
60 (
61  const word& name,
62  const labelList& edgeLabels,
63  const label index,
64  const faBoundaryMesh& bm,
65  const label ngbPolyPatchIndex
66 )
67 :
68  faPatch(name, edgeLabels, index, bm, ngbPolyPatchIndex)
69 {}
70 
71 
72 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
73 
74 
75 // Over-riding the face normals return from the underlying patch
76 // This is the only piece of info used out of the underlying primitivePatch
77 // I choose to store it there because it is used in primitive patch operations
78 // and it should not be duplicated as before. However, to ensure everything
79 // in the empty patch is sized to zero, we shall here return a reference to
80 // a zero-sized field (it does not matter what the field is
81 //
82 // const vectorField& emptyFaPatch::edgeNormals() const
83 // {
84 // return faceAreas();
85 // }
86 
87 
88 // ************************************************************************* //
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Foam::labelList
List< label > labelList
A List of labels.
Definition: List.H:67
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::emptyFaPatch
A patch which will not exist in the faMesh. Typical example is a front and back plane of a 2-D geomet...
Definition: emptyFaPatch.H:56
Foam::emptyFaPatch::emptyFaPatch
emptyFaPatch(const word &name, const label index, const faBoundaryMesh &bm, const label ngbPolyPatchIndex=-1)
Minimal construct from components.
Definition: emptyFaPatch.C:48
Foam::faBoundaryMesh
Finite area boundary mesh.
Definition: faBoundaryMesh.H:65
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::List< label >
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
Foam::faPatch
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition: faPatch.H:69
emptyFaPatch.H
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)