|
|
|
coupledFacePointPatch.HGo 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 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 in this processorPointPatch 00080 mutable labelList* nonGlobalPatchPointsPtr_; 00081 00082 //- Mesh points 00083 mutable labelList* meshPointsPtr_; 00084 00085 00086 // Construction of demand-driven data 00087 00088 //- Calculate mesh points 00089 virtual void calcMeshPoints() const = 0; 00090 00091 00092 public: 00093 00094 typedef pointBoundaryMesh BoundaryMesh; 00095 00096 00097 //- Runtime type information 00098 TypeName(coupledPolyPatch::typeName_()); 00099 00100 00101 // Constructors 00102 00103 //- Construct from components 00104 coupledFacePointPatch 00105 ( 00106 const polyPatch& patch, 00107 const pointBoundaryMesh& bm 00108 ); 00109 00110 00111 // Destructor 00112 00113 virtual ~coupledFacePointPatch(); 00114 00115 00116 // Member Functions 00117 00118 // Access 00119 00120 //- Return size 00121 virtual label size() const 00122 { 00123 return meshPoints().size(); 00124 } 00125 00126 //- Return true because this patch is coupled 00127 virtual bool coupled() const 00128 { 00129 return true; 00130 } 00131 00132 00133 // Access functions for demand driven data 00134 00135 //- Return the set of labels of the pointPatch points which are 00136 // non-global, i.e. present in this processorPointPatch 00137 virtual const labelList& nonGlobalPatchPoints() const; 00138 00139 //- Return mesh points 00140 virtual const labelList& meshPoints() const; 00141 00142 //- Return pointField of points in patch. Not impelemented. 00143 virtual const pointField& localPoints() const; 00144 00145 //- Return point unit normals. Not impelemented. 00146 virtual const vectorField& pointNormals() const; 00147 }; 00148 00149 00150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00151 00152 } // End namespace Foam 00153 00154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00155 00156 #endif 00157 00158 // ************************************************************************* // |