cyclicPointPatch.C
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-2018 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 \*---------------------------------------------------------------------------*/
25 
26 #include "cyclicPointPatch.H"
27 #include "pointBoundaryMesh.H"
29 #include "pointMesh.H"
30 #include "edgeList.H"
31 
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33 
34 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
35 
36 namespace Foam
37 {
38  defineTypeNameAndDebug(cyclicPointPatch, 0);
40  (
41  facePointPatch,
42  cyclicPointPatch,
43  polyPatch
44  );
45 }
46 
47 // * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
48 
49 void Foam::cyclicPointPatch::initGeometry(PstreamBuffers&)
50 {}
51 
52 
53 void Foam::cyclicPointPatch::calcGeometry(PstreamBuffers&)
54 {}
55 
56 
57 void Foam::cyclicPointPatch::initMovePoints(PstreamBuffers&, const pointField&)
58 {}
59 
60 
61 void Foam::cyclicPointPatch::movePoints(PstreamBuffers&, const pointField&)
62 {}
63 
64 
65 void Foam::cyclicPointPatch::initUpdateMesh(PstreamBuffers& pBufs)
66 {
68  cyclicPointPatch::initGeometry(pBufs);
69 }
70 
71 
72 void Foam::cyclicPointPatch::updateMesh(PstreamBuffers& pBufs)
73 {
75  cyclicPointPatch::calcGeometry(pBufs);
76 }
77 
78 
79 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
80 
81 Foam::cyclicPointPatch::cyclicPointPatch
82 (
83  const polyPatch& patch,
84  const pointBoundaryMesh& bm
85 )
86 :
87  coupledFacePointPatch(patch, bm),
88  cyclicPolyPatch_(refCast<const cyclicPolyPatch>(patch))
89 {}
90 
91 
92 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
93 
95 {}
96 
97 
98 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
99 
101 {
102  return cyclicPolyPatch_.coupledPoints();
103 }
104 
105 
106 // ************************************************************************* //
Foam::pointBoundaryMesh.
coupled patch for post-processing. Used as the base class for processor and cyclic pointPatches ...
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
virtual ~cyclicPointPatch()
Destructor.
Macros for easy insertion into run-time selection tables.
vectorField pointField
pointField is a vectorField.
Definition: pointFieldFwd.H:42
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual const edgeList & transformPairs() const
Return the set of pairs of points that require transformation.
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:66
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
Namespace for OpenFOAM.