|
|
|
displacementComponentLaplacianFvMotionSolver.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 displacementComponentLaplacianFvMotionSolver 00027 00028 Description 00029 Mesh motion solver for an fvMesh. Based on solving the cell-centre 00030 Laplacian for the given component of the motion displacement. 00031 00032 SourceFiles 00033 displacementComponentLaplacianFvMotionSolver.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef displacementComponentLaplacianFvMotionSolver_H 00038 #define displacementComponentLaplacianFvMotionSolver_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 displacementComponentLaplacianFvMotionSolver Declaration 00052 \*---------------------------------------------------------------------------*/ 00053 00054 class displacementComponentLaplacianFvMotionSolver 00055 : 00056 public fvMotionSolver 00057 { 00058 // Private data 00059 00060 //- The component name to solve for 00061 word cmptName_; 00062 00063 //- The component to solve for 00064 direction cmpt_; 00065 00066 //- Reference point field for this component 00067 scalarField points0_; 00068 00069 //- Point motion field 00070 mutable pointScalarField pointDisplacement_; 00071 00072 //- Cell-centre motion field 00073 mutable volScalarField cellDisplacement_; 00074 00075 //- Diffusivity used to control the motion 00076 autoPtr<motionDiffusivity> diffusivityPtr_; 00077 00078 00079 // Private Member Functions 00080 00081 //- Disallow default bitwise copy construct 00082 displacementComponentLaplacianFvMotionSolver 00083 ( 00084 const displacementComponentLaplacianFvMotionSolver& 00085 ); 00086 00087 //- Disallow default bitwise assignment 00088 void operator=(const displacementComponentLaplacianFvMotionSolver&); 00089 00090 //- Return the component corresponding to the given component name 00091 direction cmpt(const word& cmptName) const; 00092 00093 00094 public: 00095 00096 //- Runtime type information 00097 TypeName("displacementComponentLaplacian"); 00098 00099 00100 // Constructors 00101 00102 displacementComponentLaplacianFvMotionSolver 00103 ( 00104 const polyMesh& mesh, 00105 Istream& msData 00106 ); 00107 00108 00109 // Destructor 00110 00111 ~displacementComponentLaplacianFvMotionSolver(); 00112 00113 00114 // Member Functions 00115 00116 //- Non-const access to the cellDisplacement in order to allow 00117 // changes to the boundary motion 00118 volScalarField& cellDisplacement() 00119 { 00120 return cellDisplacement_; 00121 } 00122 00123 //- Return point location obtained from the current motion field 00124 virtual tmp<pointField> curPoints() const; 00125 00126 //- Solve for motion 00127 virtual void solve(); 00128 }; 00129 00130 00131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00132 00133 } // End namespace Foam 00134 00135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00136 00137 #endif 00138 00139 // ************************************************************************* // |