fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / src / ODE / sixDOF / sixDOFbodies / sixDOFbodies.H
blob81592b1895fcef9759d1d441fbcdbe08a7da3a32
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     sixDOFbodies
28 Description
29     6-DOF solver for multiple bodies
31 Author
32     Dubravko Matijasevic, FSB Zagreb.  All rights reserved.
34 SourceFiles
35     sixDOFbodies.C
37 \*---------------------------------------------------------------------------*/
39 #ifndef sixDOFbodies_H
40 #define sixDOFbodies_H
42 #include "Time.H"
43 #include "IOdictionary.H"
44 #include "sixDOFqODE.H"
45 #include "ODESolver.H"
46 #include "finiteRotation.H"
47 #include "primitiveFields.H"
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 namespace Foam
54 /*---------------------------------------------------------------------------*\
55                         Class sixDOFbodies Declaration
56 \*---------------------------------------------------------------------------*/
58 class sixDOFbodies
60     public IOdictionary
62     // Private data
64         //- Reference to time
65         const Time& runTime_;
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&);
85         //- Set bodies
86         void setBodies();
89 public:
91     // Constructors
93         //- Construct from Time
94         sixDOFbodies(const Time& runTime);
97     // Destructor
99         ~sixDOFbodies()
100         {}
103     // Member Functions
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
112         void solve();
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 } // End namespace Foam
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 #endif
124 // ************************************************************************* //