OpenFOAM: API Guide
v2112
The open source CFD toolbox
compositeJoint.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::composite
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
composite.C
45
46
\*---------------------------------------------------------------------------*/
47
48
#ifndef RBD_joints_composite_H
49
#define RBD_joints_composite_H
50
51
#include "
joint.H
"
52
53
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54
55
namespace
Foam
56
{
57
namespace
RBD
58
{
59
60
// Forward declaration of classes
61
class
rigidBodyModel;
62
63
namespace
joints
64
{
65
66
/*---------------------------------------------------------------------------*\
67
Class composite Declaration
68
\*---------------------------------------------------------------------------*/
69
70
class
composite
71
:
72
public
PtrList
<joint>,
73
public
joint
74
{
75
// Private member functions
76
77
//- Set the properties of the last joint following construction
78
// of the body containing the joint
79
void
setLastJoint();
80
81
82
public
:
83
84
//- Runtime type information
85
TypeName
(
"composite"
);
86
87
//- Allow the rigidBodyModel class to set the last joint state
88
friend
class
Foam::RBD::rigidBodyModel
;
89
90
91
// Constructors
92
93
//- Construct for given PtrList<joint>
94
composite
(
const
PtrList<joint>
& joints);
95
96
//- Construct for given model from dictionary
97
composite
(
const
dictionary
&
dict
);
98
99
//- Clone this joint
100
virtual
autoPtr<joint>
clone
()
const
;
101
102
103
//- Destructor
104
virtual
~composite
();
105
106
107
// Member Functions
108
109
//- Update the model state for this joint
110
virtual
void
jcalc
111
(
112
joint::XSvc
& J,
113
const
scalarField
& q,
114
const
scalarField
& qDot
115
)
const
;
116
117
//- Write
118
virtual
void
write
(
Ostream
&)
const
;
119
};
120
121
122
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124
}
// End namespace joints
125
}
// End namespace RBD
126
}
// End namespace Foam
127
128
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129
130
#endif
131
132
// ************************************************************************* //
Foam::Field< scalar >
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition:
Ostream.H:62
Foam::PtrList
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition:
PtrList.H:73
Foam::RBD::joint::XSvc
Joint state returned by jcalc.
Definition:
joint.H:125
Foam::RBD::joint
Abstract base-class for all rigid-body joints.
Definition:
joint.H:85
Foam::RBD::joints::composite
Prismatic joint for translation along the specified arbitrary axis.
Definition:
compositeJoint.H:73
Foam::RBD::joints::composite::clone
virtual autoPtr< joint > clone() const
Clone this joint.
Definition:
compositeJoint.C:77
Foam::RBD::joints::composite::~composite
virtual ~composite()
Destructor.
Definition:
compositeJoint.C:85
Foam::RBD::joints::composite::TypeName
TypeName("composite")
Runtime type information.
Foam::RBD::joints::composite::jcalc
virtual void jcalc(joint::XSvc &J, const scalarField &q, const scalarField &qDot) const
Update the model state for this joint.
Definition:
compositeJoint.C:92
Foam::RBD::rigidBodyModel
Basic rigid-body model representing a system of rigid-bodies connected by 1-6 DoF joints.
Definition:
rigidBodyModel.H:84
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition:
autoPtr.H:66
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition:
dictionary.H:126
joint.H
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:34
write
runTime write()
dict
dictionary dict
Definition:
searchingEngine.H:14
TypeName
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition:
typeInfo.H:73
src
rigidBodyDynamics
joints
composite
compositeJoint.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.