FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

displacementSBRStressFvMotionSolver.H

Go 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-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::displacementSBRStressFvMotionSolver
00026 
00027 Description
00028     Mesh motion solver for an fvMesh.  Based on solving the cell-centre
00029     solid-body rotation stress equations for the motion displacement.
00030 
00031 SourceFiles
00032     displacementSBRStressFvMotionSolver.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef displacementSBRStressFvMotionSolver_H
00037 #define displacementSBRStressFvMotionSolver_H
00038 
00039 #include <fvMotionSolvers/displacementFvMotionSolver.H>
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 
00046 // Forward class declarations
00047 class motionDiffusivity;
00048 
00049 /*---------------------------------------------------------------------------*\
00050              Class displacementSBRStressFvMotionSolver Declaration
00051 \*---------------------------------------------------------------------------*/
00052 
00053 class displacementSBRStressFvMotionSolver
00054 :
00055     public displacementFvMotionSolver
00056 {
00057     // Private data
00058 
00059         //- Point motion field
00060         mutable pointVectorField pointDisplacement_;
00061 
00062         //- Cell-centre motion field
00063         mutable volVectorField cellDisplacement_;
00064 
00065         //- Diffusivity used to control the motion
00066         autoPtr<motionDiffusivity> diffusivityPtr_;
00067 
00068 
00069     // Private Member Functions
00070 
00071         //- Disallow default bitwise copy construct
00072         displacementSBRStressFvMotionSolver
00073         (
00074             const displacementSBRStressFvMotionSolver&
00075         );
00076 
00077         //- Disallow default bitwise assignment
00078         void operator=(const displacementSBRStressFvMotionSolver&);
00079 
00080 
00081 public:
00082 
00083     //- Runtime type information
00084     TypeName("displacementSBRStress");
00085 
00086 
00087     // Constructors
00088 
00089         //- Construct from polyMesh and data stream
00090         displacementSBRStressFvMotionSolver
00091         (
00092             const polyMesh&,
00093             Istream& msDataUnused
00094         );
00095 
00096 
00097     // Destructor
00098 
00099         ~displacementSBRStressFvMotionSolver();
00100 
00101 
00102     // Member Functions
00103 
00104         //- Return reference to the point motion displacement field
00105         pointVectorField& pointDisplacement()
00106         {
00107             return pointDisplacement_;
00108         }
00109 
00110         //- Return const reference to the point motion displacement field
00111         const pointVectorField& pointDisplacement() const
00112         {
00113             return pointDisplacement_;
00114         }
00115 
00116         //- Return reference to the cell motion displacement field
00117         volVectorField& cellDisplacement()
00118         {
00119             return cellDisplacement_;
00120         }
00121 
00122         //- Return const reference to the cell motion displacement field
00123         const volVectorField& cellDisplacement() const
00124         {
00125             return cellDisplacement_;
00126         }
00127 
00128         //- Return point location obtained from the current motion field
00129         virtual tmp<pointField> curPoints() const;
00130 
00131         //- Solve for motion
00132         virtual void solve();
00133 
00134         //- Update topology
00135         virtual void updateMesh(const mapPolyMesh&);
00136 };
00137 
00138 
00139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00140 
00141 } // End namespace Foam
00142 
00143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00144 
00145 #endif
00146 
00147 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines