|
|
|
directMappedWallPolyPatch.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::directMappedWallPolyPatch 00027 00028 Description 00029 Determines a mapping between patch face centres and mesh cell or face 00030 centres and processors they're on. 00031 00032 Note 00033 Storage is not optimal. It stores all face centres and cells on all 00034 processors to keep the addressing calculation simple. 00035 00036 SourceFiles 00037 directMappedWallPolyPatch.C 00038 00039 \*---------------------------------------------------------------------------*/ 00040 00041 #ifndef directMappedWallPolyPatch_H 00042 #define directMappedWallPolyPatch_H 00043 00044 #include "wallPolyPatch.H" 00045 #include "directMappedPatchBase.H" 00046 00047 00048 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00049 00050 namespace Foam 00051 { 00052 00053 class polyMesh; 00054 00055 /*---------------------------------------------------------------------------*\ 00056 Class directMappedWallPolyPatch Declaration 00057 \*---------------------------------------------------------------------------*/ 00058 00059 class directMappedWallPolyPatch 00060 : 00061 public wallPolyPatch, 00062 public directMappedPatchBase 00063 { 00064 00065 protected: 00066 00067 //- Initialise the calculation of the patch geometry 00068 virtual void initGeometry(); 00069 00070 //- Calculate the patch geometry 00071 virtual void calcGeometry(); 00072 00073 //- Initialise the patches for moving points 00074 virtual void initMovePoints(const pointField&); 00075 00076 //- Correct patches after moving points 00077 virtual void movePoints(const pointField&); 00078 00079 //- Initialise the update of the patch topology 00080 virtual void initUpdateMesh(); 00081 00082 //- Update of the patch topology 00083 virtual void updateMesh(); 00084 00085 00086 public: 00087 00088 //- Runtime type information 00089 TypeName("directMappedWall"); 00090 00091 00092 // Constructors 00093 00094 //- Construct from components 00095 directMappedWallPolyPatch 00096 ( 00097 const word& name, 00098 const label size, 00099 const label start, 00100 const label index, 00101 const polyBoundaryMesh& bm 00102 ); 00103 00104 //- Construct from dictionary 00105 directMappedWallPolyPatch 00106 ( 00107 const word& name, 00108 const dictionary& dict, 00109 const label index, 00110 const polyBoundaryMesh& bm 00111 ); 00112 00113 //- Construct as copy, resetting the boundary mesh 00114 directMappedWallPolyPatch 00115 ( 00116 const directMappedWallPolyPatch&, 00117 const polyBoundaryMesh& 00118 ); 00119 00120 //- Construct given the original patch and resetting the 00121 // face list and boundary mesh information 00122 directMappedWallPolyPatch 00123 ( 00124 const directMappedWallPolyPatch& pp, 00125 const polyBoundaryMesh& bm, 00126 const label index, 00127 const label newSize, 00128 const label newStart 00129 ); 00130 00131 //- Construct and return a clone, resetting the boundary mesh 00132 virtual autoPtr<polyPatch> clone(const polyBoundaryMesh& bm) const 00133 { 00134 return autoPtr<polyPatch>(new directMappedWallPolyPatch(*this, bm)); 00135 } 00136 00137 //- Construct and return a clone, resetting the face list 00138 // and boundary mesh 00139 virtual autoPtr<polyPatch> clone 00140 ( 00141 const polyBoundaryMesh& bm, 00142 const label index, 00143 const label newSize, 00144 const label newStart 00145 ) const 00146 { 00147 return autoPtr<polyPatch> 00148 ( 00149 new directMappedWallPolyPatch 00150 ( 00151 *this, 00152 bm, 00153 index, 00154 newSize, 00155 newStart 00156 ) 00157 ); 00158 } 00159 00160 00161 //- Destructor 00162 virtual ~directMappedWallPolyPatch(); 00163 00164 00165 // Member functions 00166 00167 //- Write the polyPatch data as a dictionary 00168 virtual void write(Ostream&) const; 00169 }; 00170 00171 00172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00173 00174 } // End namespace Foam 00175 00176 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00177 00178 #endif 00179 00180 // ************************************************************************* // |