![]() |
|
00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2005 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 mixerFvMesh 00027 00028 Description 00029 00030 SourceFiles 00031 mixerFvMesh.C 00032 00033 \*---------------------------------------------------------------------------*/ 00034 00035 #ifndef mixerFvMesh_H 00036 #define mixerFvMesh_H 00037 00038 #include "topoChangerFvMesh.H" 00039 #include "cylindricalCS.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 // Class forward declarations 00047 00048 /*---------------------------------------------------------------------------*\ 00049 Class mixerFvMesh Declaration 00050 \*---------------------------------------------------------------------------*/ 00051 00052 class mixerFvMesh 00053 : 00054 public topoChangerFvMesh 00055 { 00056 // Private data 00057 00058 //- Motion dictionary 00059 dictionary motionDict_; 00060 00061 //- Coordinate system 00062 autoPtr<coordinateSystem> csPtr_; 00063 00064 // - Rotational speed in rotations per minute (rpm) 00065 scalar rpm_; 00066 00067 //- Markup field for points. Moving points marked with 1 00068 mutable scalarField* movingPointsMaskPtr_; 00069 00070 00071 // Private Member Functions 00072 00073 //- Disallow default bitwise copy construct 00074 mixerFvMesh(const mixerFvMesh&); 00075 00076 //- Disallow default bitwise assignment 00077 void operator=(const mixerFvMesh&); 00078 00079 00080 //- Add mixer zones and modifiers 00081 void addZonesAndModifiers(); 00082 00083 //- Calculate moving masks 00084 void calcMovingMasks() const; 00085 00086 //- Return moving points mask 00087 const scalarField& movingPointsMask() const; 00088 00089 00090 public: 00091 00092 //- Runtime type information 00093 TypeName("mixerFvMesh"); 00094 00095 00096 // Constructors 00097 00098 //- Construct from IOobject 00099 explicit mixerFvMesh(const IOobject& io); 00100 00101 00102 // Destructor 00103 00104 virtual ~mixerFvMesh(); 00105 00106 00107 // Member Functions 00108 00109 //- Return coordinate system 00110 const coordinateSystem& cs() const 00111 { 00112 return csPtr_(); 00113 } 00114 00115 //- Update the mesh for both mesh motion and topology change 00116 virtual bool update(); 00117 }; 00118 00119 00120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00121 00122 } // End namespace Foam 00123 00124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00125 00126 #endif 00127 00128 // ************************************************************************* //