nullJoint.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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::RBD::joints::null
28
29Group
30 grpRigidBodyDynamicsJoints
31
32Description
33 Null joint for the root-body.
34
35 Reference:
36 \verbatim
37 Featherstone, R. (2008).
38 Rigid body dynamics algorithms.
39 Springer.
40 Chapter 4.
41 \endverbatim
42
43SourceFiles
44 nullJoint.C
45
46\*---------------------------------------------------------------------------*/
47
48#ifndef RBD_joints_null_H
49#define RBD_joints_null_H
50
51#include "joint.H"
52
53// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54
55namespace Foam
56{
57namespace RBD
58{
59namespace joints
60{
61
62/*---------------------------------------------------------------------------*\
63 Class null Declaration
64\*---------------------------------------------------------------------------*/
66class null
67:
68 public joint
69{
70
71public:
72
73 //- Runtime type information
74 TypeName("null");
75
76
77 // Constructors
78
79 //- Construct for given model
80 null();
81
82 //- Construct for given model from dictionary
83 null(const dictionary& dict);
84
85 //- Clone this joint
86 virtual autoPtr<joint> clone() const;
87
88
89 //- Destructor
90 virtual ~null();
91
92
93 // Member Functions
94
95 //- Update the model state for this joint
96 virtual void jcalc
97 (
98 joint::XSvc& J,
99 const scalarField& q,
100 const scalarField& qDot
101 ) 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// ************************************************************************* //
Joint state returned by jcalc.
Definition: joint.H:125
Abstract base-class for all rigid-body joints.
Definition: joint.H:85
Null joint for the root-body.
Definition: nullJoint.H:68
TypeName("null")
Runtime type information.
virtual ~null()
Destructor.
Definition: nullJoint.C:75
virtual autoPtr< joint > clone() const
Clone this joint.
Definition: nullJoint.C:67
virtual void jcalc(joint::XSvc &J, const scalarField &q, const scalarField &qDot) const
Update the model state for this joint.
Definition: nullJoint.C:82
null()
Construct for given model.
Definition: nullJoint.C:55
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73