1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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::solidBodyMotionFunctions::SDA
29 Ship design analysis (SDA) 3DoF motion function.
31 Comprising sinusoidal roll (rotation about x), heave (z-translation)
32 and sway (y-translation) motions with changing amplitude and phase.
35 SKA (Sea Keeping Analysis) for 6DoF motion.
40 \*---------------------------------------------------------------------------*/
45 #include "solidBodyMotionFunction.H"
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 namespace solidBodyMotionFunctions
54 /*---------------------------------------------------------------------------*\
56 \*---------------------------------------------------------------------------*/
60 public solidBodyMotionFunction
70 //- Max roll amplitude [rad]
73 //- Min roll amplitude [rad]
76 //- Heave amplitude [m]
79 //- Sway amplitude [m]
82 //- Damping Coefficient [-]
85 //- Time Period for liquid [sec]
88 //- Natural Period of Ship [sec]
91 //- Reference time step [sec]
94 //- Incr. in Tp/unit 'dTi'[-]
98 // Private Member Functions
100 //- Disallow copy construct
103 //- Disallow default bitwise assignment
104 void operator=(const SDA&);
107 //- Calculate transform given time
108 septernion calcTransformation(const scalar t) const;
113 //- Runtime type information
119 //- Construct from components
122 const dictionary& SBMFCoeffs,
134 //- Return the solid-body motion transformation septernion
135 virtual septernion transformation() const;
137 //- Return the solid-body motion velocity septernion
138 virtual septernion velocity() const;
140 //- Update properties from given dictionary
141 virtual bool read(const dictionary& SBMFCoeffs);
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 } // End namespace solidBodyMotionFunctions
148 } // End namespace Foam
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 // ************************************************************************* //