1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::solidBodyMotionFunctions::SDA
28 Ship design analysis (SDA) 3DoF motion function.
30 Comprising sinusoidal roll (rotation about x), heave (z-translation)
31 and sway (y-translation) motions with changing amplitude and phase.
34 SKA (Sea Keeping Analysis) for 6DoF motion.
39 \*---------------------------------------------------------------------------*/
44 #include "solidBodyMotionFunction.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 namespace solidBodyMotionFunctions
53 /*---------------------------------------------------------------------------*\
55 \*---------------------------------------------------------------------------*/
59 public solidBodyMotionFunction
69 //- Max roll amplitude [rad]
72 //- Min roll amplitude [rad]
75 //- Heave amplitude [m]
78 //- Sway amplitude [m]
81 //- Damping Coefficient [-]
84 //- Time Period for liquid [sec]
87 //- Natural Period of Ship [sec]
90 //- Reference time step [sec]
93 //- Incr. in Tp/unit 'dTi'[-]
97 // Private Member Functions
99 //- Disallow copy construct
102 //- Disallow default bitwise assignment
103 void operator=(const SDA&);
108 //- Runtime type information
114 //- Construct from components
117 const dictionary& SBMFCoeffs,
128 //- Return the solid-body motion transformation septernion
129 virtual septernion transformation() const;
131 //- Update properties from given dictionary
132 virtual bool read(const dictionary& SBMFCoeffs);
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 } // End namespace solidBodyMotionFunctions
139 } // End namespace Foam
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 // ************************************************************************* //