1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::velocityComponentLaplacianFvMotionSolver
29 Mesh motion solver for an fvMesh. Based on solving the cell-centre
30 Laplacian for the given component of the motion velocity.
33 velocityComponentLaplacianFvMotionSolver.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef velocityComponentLaplacianFvMotionSolver_H
38 #define velocityComponentLaplacianFvMotionSolver_H
40 #include "fvMotionSolver.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward class declarations
48 class motionDiffusivity;
50 /*---------------------------------------------------------------------------*\
51 Class velocityComponentLaplacianFvMotionSolver Declaration
52 \*---------------------------------------------------------------------------*/
54 class velocityComponentLaplacianFvMotionSolver
60 //- The component name to solve for
63 //- The component to solve for
66 //- Point motion field
67 mutable pointScalarField pointMotionU_;
69 //- Cell-centre motion field
70 mutable volScalarField cellMotionU_;
72 //- Diffusivity used to control the motion
73 autoPtr<motionDiffusivity> diffusivityPtr_;
76 // Private Member Functions
78 //- Disallow default bitwise copy construct
79 velocityComponentLaplacianFvMotionSolver
81 const velocityComponentLaplacianFvMotionSolver&
84 //- Disallow default bitwise assignment
85 void operator=(const velocityComponentLaplacianFvMotionSolver&);
90 //- Runtime type information
91 TypeName("velocityComponentLaplacian");
96 //- Construct from polyMesh and data stream (provides component)
97 velocityComponentLaplacianFvMotionSolver
106 ~velocityComponentLaplacianFvMotionSolver();
111 //- Non-const access to the cellMotionU in order to allow changes
112 // to the boundary motion
113 volScalarField& cellMotionU()
118 //- Return point location obtained from the current motion field
119 virtual tmp<pointField> curPoints() const;
122 virtual void solve();
125 virtual void updateMesh(const mapPolyMesh&);
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 } // End namespace Foam
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 // ************************************************************************* //