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
29 6-DOF solver for multiple bodies
32 Dubravko Matijasevic, FSB Zagreb. All rights reserved.
37 \*---------------------------------------------------------------------------*/
39 #ifndef sixDOFbodies_H
40 #define sixDOFbodies_H
43 #include "IOdictionary.H"
44 #include "sixDOFqODE.H"
45 #include "ODESolver.H"
46 #include "finiteRotation.H"
47 #include "primitiveFields.H"
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 /*---------------------------------------------------------------------------*\
55 Class sixDOFbodies Declaration
56 \*---------------------------------------------------------------------------*/
67 // Pointer list of Foam::sixDOFqODE objects
68 PtrList<sixDOFqODE> odes_;
70 // Pointer list of Foam::sixDOFqODE solvers
71 PtrList<ODESolver> solvers_;
73 // Name list of solved bodies
74 const wordList names_;
77 // Private Member Functions
79 //- Disallow default bitwise copy construct
80 sixDOFbodies(const sixDOFbodies&);
82 //- Disallow default bitwise assignment
83 void operator=(const sixDOFbodies&);
93 //- Construct from Time
94 sixDOFbodies(const Time& runTime);
105 //- Return list of names
106 const wordList& names() const;
108 //- Return list of bodies
109 const PtrList<sixDOFqODE>& operator()() const;
111 //- Solve ODEs and update position
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 } // End namespace Foam
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 // ************************************************************************* //