BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / OpenFOAM / meshes / pointMesh / pointPatches / constraint / cyclic / cyclicPointPatch.C
blob902cfdb901efcddfc5dde8f18ec2caadeb8e3a47
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
13     the Free Software Foundation, either version 3 of the License, or
14     (at your 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
19     for more details.
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/>.
24 \*---------------------------------------------------------------------------*/
26 #include "cyclicPointPatch.H"
27 #include "pointBoundaryMesh.H"
28 #include "addToRunTimeSelectionTable.H"
29 #include "pointMesh.H"
30 #include "edgeList.H"
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
36 namespace Foam
38     defineTypeNameAndDebug(cyclicPointPatch, 0);
39     addToRunTimeSelectionTable
40     (
41         facePointPatch,
42         cyclicPointPatch,
43         polyPatch
44     );
47 // * * * * * * * * * * * * * Protected Member Functions  * * * * * * * * * * //
49 void Foam::cyclicPointPatch::initGeometry(PstreamBuffers&)
53 void Foam::cyclicPointPatch::calcGeometry(PstreamBuffers&)
57 void Foam::cyclicPointPatch::initMovePoints(PstreamBuffers&, const pointField&)
61 void Foam::cyclicPointPatch::movePoints(PstreamBuffers&, const pointField&)
65 void Foam::cyclicPointPatch::initUpdateMesh(PstreamBuffers& pBufs)
67     facePointPatch::initUpdateMesh(pBufs);
68     cyclicPointPatch::initGeometry(pBufs);
72 void Foam::cyclicPointPatch::updateMesh(PstreamBuffers& pBufs)
74     facePointPatch::updateMesh(pBufs);
75     cyclicPointPatch::calcGeometry(pBufs);
79 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
81 Foam::cyclicPointPatch::cyclicPointPatch
83     const polyPatch& patch,
84     const pointBoundaryMesh& bm
87     coupledFacePointPatch(patch, bm),
88     cyclicPolyPatch_(refCast<const cyclicPolyPatch>(patch))
92 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
94 Foam::cyclicPointPatch::~cyclicPointPatch()
98 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
100 const Foam::edgeList& Foam::cyclicPointPatch::transformPairs() const
102     return cyclicPolyPatch_.coupledPoints();
106 // ************************************************************************* //