|
|
|
SKA.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::solidBodyMotionFunctions::SKA 00027 00028 Description 00029 Sea Keeping Analysis (SKA) 6DoF motion function. 00030 00031 Obtained by interpolating tabulated data for surge (x-translation), 00032 sway (y-translation), heave (z-translation), roll (rotation about x), 00033 pitch (rotation about y) and yaw (rotation about z). 00034 00035 See Also 00036 SDA (Ship design analysis) for 3DoF motion. 00037 00038 SourceFiles 00039 SKA.C 00040 00041 \*---------------------------------------------------------------------------*/ 00042 00043 #ifndef SKA_H 00044 #define SKA_H 00045 00046 #include "solidBodyMotionFunction.H" 00047 #include "primitiveFields.H" 00048 #include "Vector2D.H" 00049 00050 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00051 00052 namespace Foam 00053 { 00054 namespace solidBodyMotionFunctions 00055 { 00056 00057 /*---------------------------------------------------------------------------*\ 00058 Class SKA Declaration 00059 \*---------------------------------------------------------------------------*/ 00060 00061 class SKA 00062 : 00063 public solidBodyMotionFunction 00064 { 00065 // Private data 00066 00067 //- Time data file name read from dictionary 00068 fileName timeDataFileName_; 00069 00070 //- Center of gravity read from dictionary 00071 vector CofG_; 00072 00073 //- Type used to read in the translation and rotation "vectors" 00074 typedef Vector2D<vector> translationRotationVectors; 00075 00076 //- Field of times 00077 scalarField times_; 00078 00079 //- Field of translation and rotation "vectors" 00080 Field<translationRotationVectors> values_; 00081 00082 00083 // Private Member Functions 00084 00085 //- Disallow copy construct 00086 SKA(const SKA&); 00087 00088 //- Disallow default bitwise assignment 00089 void operator=(const SKA&); 00090 00091 00092 public: 00093 00094 //- Runtime type information 00095 TypeName("SKA"); 00096 00097 00098 // Constructors 00099 00100 //- Construct from components 00101 SKA 00102 ( 00103 const dictionary& SBMFCoeffs, 00104 const Time& runTime 00105 ); 00106 00107 00108 // Destructor 00109 00110 virtual ~SKA(); 00111 00112 00113 // Member Functions 00114 00115 //- Return the solid-body motion transformation septernion 00116 virtual septernion transformation() const; 00117 00118 //- Update properties from given dictionary 00119 virtual bool read(const dictionary& SBMFCoeffs); 00120 }; 00121 00122 00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00124 00125 } // End namespace solidBodyMotionFunctions 00126 } // End namespace Foam 00127 00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00129 00130 #endif 00131 00132 // ************************************************************************* // |