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

coupledFacePointPatch.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::coupledFacePointPatch
00027 
00028 Description
00029     coupled patch for post-processing.  Used as the base class for processor
00030     and cyclic pointPatches
00031 
00032 SourceFiles
00033     coupledFacePointPatch.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef coupledFacePointPatch_H
00038 #define coupledFacePointPatch_H
00039 
00040 #include "coupledPointPatch.H"
00041 #include "facePointPatch.H"
00042 #include "coupledPolyPatch.H"
00043 
00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00045 
00046 namespace Foam
00047 {
00048 
00049 class pointBoundaryMesh;
00050 
00051 /*---------------------------------------------------------------------------*\
00052                       Class coupledFacePointPatch Declaration
00053 \*---------------------------------------------------------------------------*/
00054 
00055 class coupledFacePointPatch
00056 :
00057     public facePointPatch,
00058     public coupledPointPatch
00059 {
00060     // Private data
00061 
00062         const coupledPolyPatch& coupledPolyPatch_;
00063 
00064 
00065     // Private Member Functions
00066 
00067         //- Disallow default construct as copy
00068         coupledFacePointPatch(const coupledFacePointPatch&);
00069 
00070         //- Disallow default assignment
00071         void operator=(const coupledFacePointPatch&);
00072 
00073 
00074 protected:
00075 
00076     // Demand driven private data
00077 
00078         //- The set of labels of the pointPatch points which are
00079         //  non-global, i.e. present only in this coupledPointPatch.
00080         //  MUST be initialised by calcGeometry()!
00081         labelList nonGlobalPatchPoints_;
00082 
00083         labelList loneMeshPoints_;
00084 
00085 
00086         // Construction of demand-driven data
00087 
00088             //- Calculate mesh points
00089             virtual void calcGeometry() = 0;
00090 
00091 
00092 public:
00093 
00094     //- Runtime type information
00095     TypeName(coupledPolyPatch::typeName_());
00096 
00097 
00098     // Constructors
00099 
00100         //- Construct from components
00101         coupledFacePointPatch
00102         (
00103             const polyPatch& patch,
00104             const pointBoundaryMesh& bm
00105         );
00106 
00107 
00108     // Destructor
00109 
00110         virtual ~coupledFacePointPatch();
00111 
00112 
00113     // Member Functions
00114 
00115         // Access
00116 
00117             //- Return true because this patch is coupled
00118             virtual bool coupled() const
00119             {
00120                 return true;
00121             }
00122 
00123 
00124         // Access functions for demand driven data
00125 
00126             //- Return the set of labels of the pointPatch points which are
00127             //  non-global, i.e. present in this coupledFacePointPatch
00128             virtual const labelList& nonGlobalPatchPoints() const;
00129 
00130             //- Return the set of labels of the pointPatch points which are
00131             //  lone, i.e. present in this coupledFacePointPatch but not
00132             //  associated with any faces
00133             virtual const labelList& loneMeshPoints() const;
00134 
00135             //- Return point unit normals.  Not impelemented.
00136             virtual const vectorField& pointNormals() const;
00137 };
00138 
00139 
00140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00141 
00142 } // End namespace Foam
00143 
00144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00145 
00146 #endif
00147 
00148 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd