OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen 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-2007 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     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         mutable edgeList* transformPairsPtr_;
00075 
00076 
00077         // Construction of demand-driven data
00078 
00079             //- Calculate mesh points
00080             virtual void calcMeshPoints() const;
00081 
00082 
00083 public:
00084 
00085     typedef coupledPointPatch CoupledPointPatch;
00086     typedef pointBoundaryMesh BoundaryMesh;
00087 
00088 
00089     //- Runtime type information
00090     TypeName(cyclicPolyPatch::typeName_());
00091 
00092 
00093     // Constructors
00094 
00095         //- Construct from components
00096         cyclicPointPatch
00097         (
00098             const polyPatch& patch,
00099             const pointBoundaryMesh& bm
00100         );
00101 
00102 
00103     // Destructor
00104 
00105         virtual ~cyclicPointPatch();
00106 
00107 
00108     // Member Functions
00109 
00110         // Access
00111 
00112             //- Return the underlying cyclicPolyPatch
00113             const cyclicPolyPatch& cyclicPatch() const
00114             {
00115                 return cyclicPolyPatch_;
00116             }
00117 
00118             //- Are the cyclic planes parallel
00119             bool parallel() const
00120             {
00121                 return cyclicPolyPatch_.parallel();
00122             }
00123 
00124             //- Return face transformation tensor
00125             const tensorField& forwardT() const
00126             {
00127                 return cyclicPolyPatch_.forwardT();
00128             }
00129 
00130             //- Return neighbour-cell transformation tensor
00131             const tensorField& reverseT() const
00132             {
00133                 return cyclicPolyPatch_.reverseT();
00134             }
00135 
00136 
00137         // Access functions for demand driven data
00138 
00139             //- Return the set of pairs of points that require transformation
00140             //  and/or mapping
00141             virtual const edgeList& transformPairs() const;
00142 };
00143 
00144 
00145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00146 
00147 } // End namespace Foam
00148 
00149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00150 
00151 #endif
00152 
00153 // ************************************************************************* //
Copyright © 2000-2007 OpenCFD Ltd