floatingJoint.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::RBD::joints::floating
28 
29 Group
30  grpRigidBodyDynamicsJoints
31 
32 Description
33  Prismatic joint for translation along the specified arbitrary axis.
34 
35  Reference:
36  \verbatim
37  Featherstone, R. (2008).
38  Rigid body dynamics algorithms.
39  Springer.
40  Chapter 4.
41  \endverbatim
42 
43 SourceFiles
44  floating.C
45 
46 \*---------------------------------------------------------------------------*/
47 
48 #ifndef RBD_joints_floating_H
49 #define RBD_joints_floating_H
50 
51 #include "compositeJoint.H"
52 
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 
55 namespace Foam
56 {
57 namespace RBD
58 {
59 namespace joints
60 {
61 
62 /*---------------------------------------------------------------------------*\
63  Class floating Declaration
64 \*---------------------------------------------------------------------------*/
65 
66 class floating
67 :
68  public composite
69 {
70  // Private member functions
71 
72  //- Return a list of joints needed to emulate a floating body
73  static composite sixDoF();
74 
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("floating");
80 
81 
82  // Constructors
83 
84  //- Construct
85  floating();
86 
87  //- Construct for given model from dictionary
88  floating(const dictionary& dict);
89 
90  //- Clone this joint
91  virtual autoPtr<joint> clone() const;
92 
93 
94  //- Destructor
95  virtual ~floating() = default;
96 
97 
98  // Member Functions
99 
100  //- Write
101  virtual void write(Ostream&) const;
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace joints
108 } // End namespace RBD
109 } // End namespace Foam
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #endif
114 
115 // ************************************************************************* //
Foam::RBD::joints::floating::TypeName
TypeName("floating")
Runtime type information.
Foam::RBD::joints::floating::~floating
virtual ~floating()=default
Destructor.
Foam::RBD::joints::composite
Prismatic joint for translation along the specified arbitrary axis.
Definition: compositeJoint.H:69
Foam::RBD::joints::floating::floating
floating()
Construct.
Definition: floatingJoint.C:77
Foam::RBD::joints::floating::clone
virtual autoPtr< joint > clone() const
Clone this joint.
Definition: floatingJoint.C:89
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::RBD::joints::floating::write
virtual void write(Ostream &) const
Write.
Definition: floatingJoint.C:97
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::RBD::joints::floating
Prismatic joint for translation along the specified arbitrary axis.
Definition: floatingJoint.H:65
compositeJoint.H
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56