|
|
|
displacementInterpolationFvMotionSolver.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::displacementInterpolationFvMotionSolver 00027 00028 Description 00029 Mesh motion solver for an fvMesh. 00030 00031 Scales inbetween motion prescribed on faceZones. Works out per point 00032 the distance between the bounding face zones (in all three directions) 00033 at the start and then every time step 00034 - moves the faceZones based on tables 00035 - interpolates the displacement of all points based on the 00036 faceZone motion. 00037 00038 Tables are in the @a constant/tables directory. 00039 00040 Note 00041 could be a motionSolver - does not use any fvMesh structure. 00042 00043 SourceFiles 00044 displacementInterpolationFvMotionSolver.C 00045 00046 \*---------------------------------------------------------------------------*/ 00047 00048 #ifndef displacementInterpolationFvMotionSolver_H 00049 #define displacementInterpolationFvMotionSolver_H 00050 00051 #include "displacementFvMotionSolver.H" 00052 00053 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00054 00055 namespace Foam 00056 { 00057 00058 /*---------------------------------------------------------------------------*\ 00059 Class displacementInterpolationFvMotionSolver Declaration 00060 \*---------------------------------------------------------------------------*/ 00061 00062 class displacementInterpolationFvMotionSolver 00063 : 00064 public displacementFvMotionSolver 00065 { 00066 // Private data 00067 00068 //- Additional settings for motion solver 00069 dictionary dynamicMeshCoeffs_; 00070 00071 00072 // Face zone information (note: could pack these to only contain 00073 // used zones) 00074 00075 //- Interpolation table. From faceZone to times. 00076 List<scalarField> times_; 00077 00078 //- Interpolation table. From faceZone to displacements. 00079 List<vectorField> displacements_; 00080 00081 // Range information. 00082 00083 //- Per direction, per range the index of the lower 00084 // faceZone 00085 FixedList<labelList, 3> rangeToZone_; 00086 00087 //- Per direction, per range the points that are in it 00088 FixedList<labelListList, 3> rangeToPoints_; 00089 00090 //- Per direction, per range the weight of the points relative 00091 // to this and the next range. 00092 FixedList<List<scalarField>, 3> rangeToWeights_; 00093 00094 00095 // Private Member Functions 00096 00097 //- Disallow default bitwise copy construct 00098 displacementInterpolationFvMotionSolver 00099 ( 00100 const displacementInterpolationFvMotionSolver& 00101 ); 00102 00103 //- Disallow default bitwise assignment 00104 void operator=(const displacementInterpolationFvMotionSolver&); 00105 00106 00107 public: 00108 00109 //- Runtime type information 00110 TypeName("displacementInterpolation"); 00111 00112 00113 // Constructors 00114 00115 //- Construct from polyMesh and data stream 00116 displacementInterpolationFvMotionSolver 00117 ( 00118 const polyMesh&, 00119 Istream& msDataUnused 00120 ); 00121 00122 00123 // Destructor 00124 00125 ~displacementInterpolationFvMotionSolver(); 00126 00127 00128 // Member Functions 00129 00130 //- Return point location obtained from the current motion field 00131 virtual tmp<pointField> curPoints() const; 00132 00133 //- Solve for motion 00134 virtual void solve() 00135 {} 00136 }; 00137 00138 00139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00140 00141 } // End namespace Foam 00142 00143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00144 00145 #endif 00146 00147 // ************************************************************************* // |