|
|
|
SDA.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::SDA 00027 00028 Description 00029 Ship design analysis (SDA) 3DoF motion function. 00030 00031 Comprising sinusoidal roll (rotation about x), heave (z-translation) 00032 and sway (y-translation) motions with changing amplitude and phase. 00033 00034 See Also 00035 SKA (Sea Keeping Analysis) for 6DoF motion. 00036 00037 SourceFiles 00038 SDA.C 00039 00040 \*---------------------------------------------------------------------------*/ 00041 00042 #ifndef SDA_H 00043 #define SDA_H 00044 00045 #include "solidBodyMotionFunction.H" 00046 00047 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00048 00049 namespace Foam 00050 { 00051 namespace solidBodyMotionFunctions 00052 { 00053 00054 /*---------------------------------------------------------------------------*\ 00055 Class SDA Declaration 00056 \*---------------------------------------------------------------------------*/ 00057 00058 class SDA 00059 : 00060 public solidBodyMotionFunction 00061 { 00062 // Private data 00063 00064 //- Center of gravity 00065 vector CofG_; 00066 00067 //- Model scale ratio 00068 scalar lamda_; 00069 00070 //- Max roll amplitude [rad] 00071 scalar rollAmax_; 00072 00073 //- Min roll amplitude [rad] 00074 scalar rollAmin_; 00075 00076 //- Heave amplitude [m] 00077 scalar heaveA_; 00078 00079 //- Sway amplitude [m] 00080 scalar swayA_; 00081 00082 //- Damping Coefficient [-] 00083 scalar Q_; 00084 00085 //- Time Period for liquid [sec] 00086 scalar Tp_; 00087 00088 //- Natural Period of Ship [sec] 00089 scalar Tpn_; 00090 00091 //- Reference time step [sec] 00092 scalar dTi_; 00093 00094 //- Incr. in Tp/unit 'dTi'[-] 00095 scalar dTp_; 00096 00097 00098 // Private Member Functions 00099 00100 //- Disallow copy construct 00101 SDA(const SDA&); 00102 00103 //- Disallow default bitwise assignment 00104 void operator=(const SDA&); 00105 00106 00107 public: 00108 00109 //- Runtime type information 00110 TypeName("SDA"); 00111 00112 00113 // Constructors 00114 00115 //- Construct from components 00116 SDA 00117 ( 00118 const dictionary& SBMFCoeffs, 00119 const Time& runTime 00120 ); 00121 00122 00123 // Destructor 00124 00125 virtual ~SDA(); 00126 00127 00128 // Member Functions 00129 00130 //- Return the solid-body motion transformation septernion 00131 virtual septernion transformation() const; 00132 00133 //- Update properties from given dictionary 00134 virtual bool read(const dictionary& SBMFCoeffs); 00135 }; 00136 00137 00138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00139 00140 } // End namespace solidBodyMotionFunctions 00141 } // End namespace Foam 00142 00143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00144 00145 #endif 00146 00147 // ************************************************************************* // |