cyclicAMIPointPatch.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-2020 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 "cyclicAMIPointPatch.H"
27 #include "pointBoundaryMesh.H"
28 #include "pointMesh.H"
29 #include "Time.H"
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36  defineTypeNameAndDebug(cyclicAMIPointPatch, 0);
38  (
39  facePointPatch,
40  cyclicAMIPointPatch,
41  polyPatch
42  );
43 }
44 
45 
46 // * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
47 
49 {}
50 
51 
53 {}
54 
55 
57 (
59  const pointField&
60 )
61 {}
62 
63 
65 {}
66 
67 
69 {
71 // cyclicAMIPointPatch::initCalcGeometry(pBufs);
72 }
73 
74 
76 {
78 // cyclicAMIPointPatch::calcGeometry(pBufs);
79 }
80 
81 
82 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
83 
85 (
86  const polyPatch& patch,
87  const pointBoundaryMesh& bm
88 )
89 :
90  coupledFacePointPatch(patch, bm),
91  cyclicAMIPolyPatch_(refCast<const cyclicAMIPolyPatch>(patch))
92 {}
93 
94 
95 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
96 
98 {}
99 
100 
101 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
102 
104 {
105  return
107  || !this->boundaryMesh().mesh().mesh().time().processorCase();
108 }
109 
110 
111 // ************************************************************************* //
virtual ~cyclicAMIPointPatch()
Destructor.
virtual void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
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.
Macros for easy insertion into run-time selection tables.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
virtual bool coupled() const
Return true if this patch field is coupled.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
Buffers for inter-processor communications streams (UOPstream, UIPstream).
static bool & parRun()
Is this a parallel run?
Definition: UPstream.H:399
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.
cyclicAMIPointPatch(const polyPatch &patch, const pointBoundaryMesh &bm)
Construct from components.
virtual void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
Namespace for OpenFOAM.