OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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-2009 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 the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     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, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::cyclicPointPatch
00027 
00028 Description
00029     Cyclic patch for post-processing.
00030 
00031 SourceFiles
00032     cyclicPointPatch.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef cyclicPointPatch_H
00037 #define cyclicPointPatch_H
00038 
00039 #include "coupledFacePointPatch.H"
00040 #include "cyclicPolyPatch.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                       Class cyclicPointPatch Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 class cyclicPointPatch
00052 :
00053     public coupledFacePointPatch
00054 {
00055     // Private data
00056 
00057         //- Local reference cast into the cyclic patch
00058         const cyclicPolyPatch& cyclicPolyPatch_;
00059 
00060 
00061     // Private Member Functions
00062 
00063         //- Disallow default construct as copy
00064         cyclicPointPatch(const cyclicPointPatch&);
00065 
00066         //- Disallow default assignment
00067         void operator=(const cyclicPointPatch&);
00068 
00069 
00070     // Demand driven private data
00071 
00072         //- The set of pairs of points that require transformation
00073         //  and/or mapping
00074         edgeList transformPairs_;
00075 
00076         //- Initialise the calculation of the patch geometry
00077         virtual void initGeometry();
00078 
00079         //- Calculate the patch geometry
00080         virtual void calcGeometry();
00081 
00082         //- Initialise the patches for moving points
00083         virtual void initMovePoints(const pointField&);
00084 
00085         //- Correct patches after moving points
00086         virtual void movePoints(const pointField&);
00087 
00088         //- Initialise the update of the patch topology
00089         virtual void initUpdateMesh();
00090 
00091         //- Update of the patch topology
00092         virtual void updateMesh();
00093 
00094 
00095 public:
00096 
00097     //- Runtime type information
00098     TypeName(cyclicPolyPatch::typeName_());
00099 
00100 
00101     // Constructors
00102 
00103         //- Construct from components
00104         cyclicPointPatch
00105         (
00106             const polyPatch& patch,
00107             const pointBoundaryMesh& bm
00108         );
00109 
00110 
00111     // Destructor
00112 
00113         virtual ~cyclicPointPatch();
00114 
00115 
00116     // Member Functions
00117 
00118         // Access
00119 
00120             //- Return the underlying cyclicPolyPatch
00121             const cyclicPolyPatch& cyclicPatch() const
00122             {
00123                 return cyclicPolyPatch_;
00124             }
00125 
00126             //- Are the cyclic planes parallel
00127             bool parallel() const
00128             {
00129                 return cyclicPolyPatch_.parallel();
00130             }
00131 
00132             //- Return face transformation tensor
00133             const tensorField& forwardT() const
00134             {
00135                 return cyclicPolyPatch_.forwardT();
00136             }
00137 
00138             //- Return neighbour-cell transformation tensor
00139             const tensorField& reverseT() const
00140             {
00141                 return cyclicPolyPatch_.reverseT();
00142             }
00143 
00144 
00145         // Access functions for demand driven data
00146 
00147             //- Return the set of pairs of points that require transformation
00148             //  and/or mapping
00149             virtual const edgeList& transformPairs() const;
00150 };
00151 
00152 
00153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00154 
00155 } // End namespace Foam
00156 
00157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00158 
00159 #endif
00160 
00161 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd