|
|
|
velocityLaplacianFvMotionSolver.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-2007 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 velocityLaplacianFvMotionSolver 00027 00028 Description 00029 Mesh motion solver for an fvMesh. Based on solving the cell-centre 00030 Laplacian for the motion velocity. 00031 00032 SourceFiles 00033 velocityLaplacianFvMotionSolver.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef velocityLaplacianFvMotionSolver_H 00038 #define velocityLaplacianFvMotionSolver_H 00039 00040 #include "fvMotionSolver.H" 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 00047 // Forward class declarations 00048 class motionDiffusivity; 00049 00050 /*---------------------------------------------------------------------------*\ 00051 Class velocityLaplacianFvMotionSolver Declaration 00052 \*---------------------------------------------------------------------------*/ 00053 00054 class velocityLaplacianFvMotionSolver 00055 : 00056 public fvMotionSolver 00057 { 00058 // Private data 00059 00060 //- Point motion field 00061 mutable pointVectorField pointMotionU_; 00062 00063 //- Cell-centre motion field 00064 mutable volVectorField cellMotionU_; 00065 00066 //- Diffusivity used to control the motion 00067 autoPtr<motionDiffusivity> diffusivityPtr_; 00068 00069 00070 // Private Member Functions 00071 00072 //- Disallow default bitwise copy construct 00073 velocityLaplacianFvMotionSolver 00074 ( 00075 const velocityLaplacianFvMotionSolver& 00076 ); 00077 00078 //- Disallow default bitwise assignment 00079 void operator=(const velocityLaplacianFvMotionSolver&); 00080 00081 00082 public: 00083 00084 //- Runtime type information 00085 TypeName("velocityLaplacian"); 00086 00087 00088 // Constructors 00089 00090 //- Construct from polyMesh and data stream 00091 velocityLaplacianFvMotionSolver(const polyMesh& mesh, Istream& msData); 00092 00093 00094 // Destructor 00095 00096 ~velocityLaplacianFvMotionSolver(); 00097 00098 00099 // Member Functions 00100 00101 //- Return reference to the point motion velocity field 00102 pointVectorField& pointMotionU() 00103 { 00104 return pointMotionU_; 00105 } 00106 00107 //- Return const reference to the point motion velocity field 00108 const pointVectorField& pointMotionU() const 00109 { 00110 return pointMotionU_; 00111 } 00112 00113 //- Return reference to the cell motion velocity field 00114 volVectorField& cellMotionU() 00115 { 00116 return cellMotionU_; 00117 } 00118 00119 //- Return const reference to the cell motion velocity field 00120 const volVectorField& cellMotionU() const 00121 { 00122 return cellMotionU_; 00123 } 00124 00125 //- Return point location obtained from the current motion field 00126 virtual tmp<pointField> curPoints() const; 00127 00128 //- Solve for motion 00129 virtual void solve(); 00130 }; 00131 00132 00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00134 00135 } // End namespace Foam 00136 00137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00138 00139 #endif 00140 00141 // ************************************************************************* // |