|
|
|
coupledPointPatch.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-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::coupledPointPatch 00027 00028 Description 00029 coupled patch for post-processing. Used as the base class for processor 00030 and cyclic pointPatches 00031 00032 SourceFiles 00033 coupledPointPatch.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef coupledPointPatch_H 00038 #define coupledPointPatch_H 00039 00040 #include "coupledPolyPatch.H" 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 00047 class pointBoundaryMesh; 00048 00049 /*---------------------------------------------------------------------------*\ 00050 Class coupledPointPatch Declaration 00051 \*---------------------------------------------------------------------------*/ 00052 00053 class coupledPointPatch 00054 { 00055 // Private Member Functions 00056 00057 //- Disallow default construct as copy 00058 coupledPointPatch(const coupledPointPatch&); 00059 00060 //- Disallow default assignment 00061 void operator=(const coupledPointPatch&); 00062 00063 00064 protected: 00065 00066 // Protected Member Functions 00067 00068 //- Initialise the calculation of the patch geometry 00069 virtual void initGeometry() = 0; 00070 00071 //- Calculate the patch geometry 00072 virtual void calcGeometry() = 0; 00073 00074 //- Initialise the patches for moving points 00075 virtual void initMovePoints(const pointField&) = 0; 00076 00077 //- Correct patches after moving points 00078 virtual void movePoints(const pointField&) = 0; 00079 00080 //- Initialise the update of the patch topology 00081 virtual void initUpdateMesh() = 0; 00082 00083 //- Update of the patch topology 00084 virtual void updateMesh() = 0; 00085 00086 00087 public: 00088 00089 //- Runtime type information 00090 TypeName(coupledPolyPatch::typeName_()); 00091 00092 00093 // Constructors 00094 00095 //- Construct from components 00096 coupledPointPatch(const pointBoundaryMesh& bm); 00097 00098 00099 // Destructor 00100 00101 virtual ~coupledPointPatch(); 00102 00103 00104 // Member Functions 00105 00106 // Access 00107 00108 //- Return true because this patch is coupled 00109 virtual bool coupled() const 00110 { 00111 return true; 00112 } 00113 }; 00114 00115 00116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00117 00118 } // End namespace Foam 00119 00120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00121 00122 #endif 00123 00124 // ************************************************************************* // |