00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2010 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 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your 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, see <http://www.gnu.org/licenses/>. 00023 00024 Class 00025 Foam::mixerFvMesh 00026 00027 Description 00028 A rotating slider mesh 00029 00030 SourceFiles 00031 mixerFvMesh.C 00032 00033 \*---------------------------------------------------------------------------*/ 00034 00035 #ifndef mixerFvMesh_H 00036 #define mixerFvMesh_H 00037 00038 #include <topoChangerFvMesh/topoChangerFvMesh.H> 00039 #include <meshTools/cylindricalCS.H> 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 // Forward declaration of classes 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 // ************************ vim: set sw=4 sts=4 et: ************************ //