1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::cyclicPointPatch
29 Cyclic patch for post-processing.
34 \*---------------------------------------------------------------------------*/
36 #ifndef cyclicPointPatch_H
37 #define cyclicPointPatch_H
39 #include "coupledFacePointPatch.H"
40 #include "cyclicPolyPatch.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class cyclicPointPatch Declaration
49 \*---------------------------------------------------------------------------*/
51 class cyclicPointPatch
53 public coupledFacePointPatch
57 //- Local reference cast into the cyclic patch
58 const cyclicPolyPatch& cyclicPolyPatch_;
61 // Private Member Functions
63 //- Disallow default construct as copy
64 cyclicPointPatch(const cyclicPointPatch&);
66 //- Disallow default assignment
67 void operator=(const cyclicPointPatch&);
70 // Demand driven private data
72 //- The set of pairs of points that require transformation
74 edgeList transformPairs_;
76 //- Initialise the calculation of the patch geometry
77 virtual void initGeometry();
79 //- Calculate the patch geometry
80 virtual void calcGeometry();
82 //- Initialise the patches for moving points
83 virtual void initMovePoints(const pointField&);
85 //- Correct patches after moving points
86 virtual void movePoints(const pointField&);
88 //- Initialise the update of the patch topology
89 virtual void initUpdateMesh();
91 //- Update of the patch topology
92 virtual void updateMesh();
97 //- Runtime type information
98 TypeName(cyclicPolyPatch::typeName_());
103 //- Construct from components
106 const polyPatch& patch,
107 const pointBoundaryMesh& bm
113 virtual ~cyclicPointPatch();
120 //- Return the underlying cyclicPolyPatch
121 const cyclicPolyPatch& cyclicPatch() const
123 return cyclicPolyPatch_;
126 //- Are the cyclic planes parallel
127 bool parallel() const
129 return cyclicPolyPatch_.parallel();
132 //- Return face transformation tensor
133 const tensorField& forwardT() const
135 return cyclicPolyPatch_.forwardT();
138 //- Return neighbour-cell transformation tensor
139 const tensorField& reverseT() const
141 return cyclicPolyPatch_.reverseT();
145 // Access functions for demand driven data
147 //- Return the set of pairs of points that require transformation
149 virtual const edgeList& transformPairs() const;
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 } // End namespace Foam
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 // ************************************************************************* //