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