symmetryFaPatch.H
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) 2019 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 Class
28  Foam::symmetryFaPatch
29 
30 Description
31  Symmetry-plane patch.
32 
33 Author
34  Zeljko Tukovic, FMENA
35  Hrvoje Jasak, Wikki Ltd.
36 
37 SourceFiles
38  symmetryFaPatch.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef symmetryFaPatch_H
43 #define symmetryFaPatch_H
44 
45 #include "faPatch.H"
46 #include "symmetryPolyPatch.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class symmetryFaPatch Declaration
55 \*---------------------------------------------------------------------------*/
56 
57 class symmetryFaPatch
58 :
59  public faPatch
60 {
61 
62 protected:
63 
64  // Protected Member Functions
65 
66  //- Make patch face non-orthogonality correction vectors
67  virtual void makeCorrVecs(vectorField&) const;
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName(symmetryPolyPatch::typeName_());
74 
75 
76  // Constructors
77 
78  //- Construct from components
80  (
81  const word& name,
82  const labelList& edgeLabels,
83  const label index,
84  const faBoundaryMesh& bm,
85  const label ngbPolyPatchIndex
86  );
87 
88  //- Construct from dictionary
90  (
91  const word& name,
92  const dictionary& dict,
93  const label index,
94  const faBoundaryMesh& bm
95  );
96 
97  //- Construct and return a clone, resetting the edge list
98  // and boundary mesh
100  (
101  const faBoundaryMesh& bm,
102  const labelList& edgeLabels,
103  const label index,
104  const label ngbPolyPatchIndex
105  ) const
106  {
107  return autoPtr<faPatch>
108  (
109  new symmetryFaPatch
110  (
112  )
113  );
114  }
115 
116  //- Destructor
117  virtual ~symmetryFaPatch() = default;
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace Foam
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 #endif
128 
129 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
symmetryPolyPatch.H
Foam::symmetryFaPatch::makeCorrVecs
virtual void makeCorrVecs(vectorField &) const
Make patch face non-orthogonality correction vectors.
Definition: symmetryFaPatch.C:41
Foam::faPatch::edgeLabels
const labelList & edgeLabels() const noexcept
Return the list of edges.
Definition: faPatch.H:225
Foam::faBoundaryMesh
Finite area boundary mesh.
Definition: faBoundaryMesh.H:65
Foam::Field< vector >
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
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::patchIdentifier::index
label index() const noexcept
The index of this patch in the boundaryMesh.
Definition: patchIdentifier.H:147
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::symmetryFaPatch::~symmetryFaPatch
virtual ~symmetryFaPatch()=default
Destructor.
Foam::List< label >
faPatch.H
Foam::symmetryFaPatch::symmetryFaPatch
symmetryFaPatch(const word &name, const labelList &edgeLabels, const label index, const faBoundaryMesh &bm, const label ngbPolyPatchIndex)
Construct from components.
Definition: symmetryFaPatch.C:51
Foam::symmetryFaPatch
Symmetry-plane patch.
Definition: symmetryFaPatch.H:56
Foam::patchIdentifier::name
const word & name() const noexcept
The patch name.
Definition: patchIdentifier.H:135
Foam::List::clone
autoPtr< List< T > > clone() const
Clone.
Definition: ListI.H:100
Foam::faPatch
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition: faPatch.H:69
Foam::symmetryFaPatch::TypeName
TypeName(symmetryPolyPatch::typeName_())
Runtime type information.
Foam::faPatch::ngbPolyPatchIndex
label ngbPolyPatchIndex() const noexcept
The neighbour polyPatch index.
Definition: faPatch.H:246