FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

cyclicPointPatch.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::cyclicPointPatch
00026 
00027 Description
00028     Cyclic patch for post-processing.
00029 
00030 SourceFiles
00031     cyclicPointPatch.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef cyclicPointPatch_H
00036 #define cyclicPointPatch_H
00037 
00038 #include <OpenFOAM/coupledFacePointPatch.H>
00039 #include <OpenFOAM/cyclicPolyPatch.H>
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 
00046 /*---------------------------------------------------------------------------*\
00047                       Class cyclicPointPatch Declaration
00048 \*---------------------------------------------------------------------------*/
00049 
00050 class cyclicPointPatch
00051 :
00052     public coupledFacePointPatch
00053 {
00054     // Private data
00055 
00056         //- Local reference cast into the cyclic patch
00057         const cyclicPolyPatch& cyclicPolyPatch_;
00058 
00059 
00060     // Private Member Functions
00061 
00062         //- Disallow default construct as copy
00063         cyclicPointPatch(const cyclicPointPatch&);
00064 
00065         //- Disallow default assignment
00066         void operator=(const cyclicPointPatch&);
00067 
00068 
00069     // Demand driven private data
00070 
00071         //- The set of pairs of points that require transformation
00072         //  and/or mapping
00073         edgeList transformPairs_;
00074 
00075         //- Initialise the calculation of the patch geometry
00076         virtual void initGeometry();
00077 
00078         //- Calculate the patch geometry
00079         virtual void calcGeometry();
00080 
00081         //- Initialise the patches for moving points
00082         virtual void initMovePoints(const pointField&);
00083 
00084         //- Correct patches after moving points
00085         virtual void movePoints(const pointField&);
00086 
00087         //- Initialise the update of the patch topology
00088         virtual void initUpdateMesh();
00089 
00090         //- Update of the patch topology
00091         virtual void updateMesh();
00092 
00093 
00094 public:
00095 
00096     //- Runtime type information
00097     TypeName(cyclicPolyPatch::typeName_());
00098 
00099 
00100     // Constructors
00101 
00102         //- Construct from components
00103         cyclicPointPatch
00104         (
00105             const polyPatch& patch,
00106             const pointBoundaryMesh& bm
00107         );
00108 
00109 
00110     // Destructor
00111 
00112         virtual ~cyclicPointPatch();
00113 
00114 
00115     // Member Functions
00116 
00117         // Access
00118 
00119             //- Return the underlying cyclicPolyPatch
00120             const cyclicPolyPatch& cyclicPatch() const
00121             {
00122                 return cyclicPolyPatch_;
00123             }
00124 
00125             //- Are the cyclic planes parallel
00126             bool parallel() const
00127             {
00128                 return cyclicPolyPatch_.parallel();
00129             }
00130 
00131             //- Return face transformation tensor
00132             const tensorField& forwardT() const
00133             {
00134                 return cyclicPolyPatch_.forwardT();
00135             }
00136 
00137             //- Return neighbour-cell transformation tensor
00138             const tensorField& reverseT() const
00139             {
00140                 return cyclicPolyPatch_.reverseT();
00141             }
00142 
00143 
00144         // Access functions for demand driven data
00145 
00146             //- Return the set of pairs of points that require transformation
00147             //  and/or mapping
00148             virtual const edgeList& transformPairs() const;
00149 };
00150 
00151 
00152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00153 
00154 } // End namespace Foam
00155 
00156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00157 
00158 #endif
00159 
00160 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines