All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
coupledPointPatch.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::coupledPointPatch
26 
27 Description
28  coupled patch for post-processing. Used as the base class for processor
29  and cyclic pointPatches
30 
31 SourceFiles
32  coupledPointPatch.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef coupledPointPatch_H
37 #define coupledPointPatch_H
38 
39 #include "coupledPolyPatch.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 class pointBoundaryMesh;
47 
48 /*---------------------------------------------------------------------------*\
49  Class coupledPointPatch Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 {
54 protected:
55 
56  // Protected Member Functions
57 
58  //- Initialise the calculation of the patch geometry
59  virtual void initCalcGeometry(PstreamBuffers&) = 0;
60 
61  //- Calculate the patch geometry
62  virtual void calcGeometry(PstreamBuffers&) = 0;
63 
64  //- Initialise the patches for moving points
65  virtual void initMovePoints(PstreamBuffers&, const pointField&) = 0;
66 
67  //- Correct patches after moving points
68  virtual void movePoints(PstreamBuffers&, const pointField&) = 0;
69 
70  //- Initialise the update of the patch topology
71  virtual void initTopoChange(PstreamBuffers&) = 0;
72 
73  //- Update of the patch topology
74  virtual void topoChange(PstreamBuffers&) = 0;
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName(coupledPolyPatch::typeName_());
81 
82 
83  // Constructors
84 
85  //- Construct from components
87 
88  //- Disallow default bitwise copy construction
89  coupledPointPatch(const coupledPointPatch&) = delete;
90 
91 
92  //- Destructor
93  virtual ~coupledPointPatch();
94 
95 
96  // Member Operators
97 
98  //- Disallow default bitwise assignment
99  void operator=(const coupledPointPatch&) = delete;
100 };
101 
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 } // End namespace Foam
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 #endif
110 
111 // ************************************************************************* //
Buffers for inter-processor communications streams (UOPstream, UIPstream).
coupled patch for post-processing. Used as the base class for processor and cyclic pointPatches
TypeName(coupledPolyPatch::typeName_())
Runtime type information.
virtual void topoChange(PstreamBuffers &)=0
Update of the patch topology.
virtual ~coupledPointPatch()
Destructor.
virtual void initMovePoints(PstreamBuffers &, const pointField &)=0
Initialise the patches for moving points.
coupledPointPatch(const pointBoundaryMesh &bm)
Construct from components.
virtual void calcGeometry(PstreamBuffers &)=0
Calculate the patch geometry.
void operator=(const coupledPointPatch &)=delete
Disallow default bitwise assignment.
virtual void movePoints(PstreamBuffers &, const pointField &)=0
Correct patches after moving points.
virtual void initTopoChange(PstreamBuffers &)=0
Initialise the update of the patch topology.
virtual void initCalcGeometry(PstreamBuffers &)=0
Initialise the calculation of the patch geometry.
Foam::pointBoundaryMesh.
Namespace for OpenFOAM.