symmetryFaPatch.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  Copyright (C) 2022 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 "symmetryFaPatch.H"
31 
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
38 }
39 
40 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
41 
43 {
44  // Non-orthogonal correction not allowed
45  cv = Zero;
46 }
47 
48 
49 // * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * * * //
50 
52 (
53  const word& name,
54  const labelUList& edgeLabels,
55  const label index,
56  const faBoundaryMesh& bm,
57  const label nbrPolyPatchi,
58  const word& patchType
59 )
60 :
61  faPatch(name, edgeLabels, index, bm, nbrPolyPatchi, patchType)
62 {}
63 
64 
66 (
67  const word& name,
68  const dictionary& dict,
69  const label index,
70  const faBoundaryMesh& bm,
71  const word& patchType
72 )
73 :
74  faPatch(name, dict, index, bm, patchType)
75 {
76  if (ngbPolyPatchIndex() < 0)
77  {
79  << "Neighbour polyPatch index is not specified for faPatch "
80  << this->name() << exit(FatalError);
81  }
82 }
83 
84 
86 (
87  const symmetryFaPatch& p,
88  const faBoundaryMesh& bm
89 )
90 :
91  faPatch(p, bm)
92 {}
93 
94 
96 (
97  const symmetryFaPatch& p,
98  const faBoundaryMesh& bm,
99  const label index,
100  const labelUList& edgeLabels,
101  const label nbrPolyPatchi
102 )
103 :
104  faPatch(p, bm, index, edgeLabels, nbrPolyPatchi)
105 {}
106 
107 
108 // ************************************************************************* //
dictionary dict
symmetryFaPatch(const word &name, const labelUList &edgeLabels, const label index, const faBoundaryMesh &bm, const label nbrPolyPatchi, const word &patchType)
Construct from components.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:125
error FatalError
Error stream (stdout output on all processes), with additional &#39;FOAM FATAL ERROR&#39; header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:598
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
virtual void makeCorrVecs(vectorField &) const
Make patch face non-orthogonality correction vectors.
A class for handling words, derived from Foam::string.
Definition: word.H:63
const word & name() const noexcept
The patch name.
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
Symmetry-plane patch.
Namespace for OpenFOAM.
label ngbPolyPatchIndex() const noexcept
The neighbour polyPatch index.
Definition: faPatch.H:359
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:127