OpenFOAM
10
The OpenFOAM Foundation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
nullJoint.C
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration | Website: https://openfoam.org
5
\\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
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
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
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.
20
21
You should have received a copy of the GNU General Public License
22
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23
24
\*---------------------------------------------------------------------------*/
25
26
#include "
nullJoint.H
"
27
#include "
rigidBodyModel.H
"
28
#include "
addToRunTimeSelectionTable.H
"
29
30
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31
32
namespace
Foam
33
{
34
namespace
RBD
35
{
36
namespace
joints
37
{
38
defineTypeNameAndDebug
(null, 0);
39
40
addToRunTimeSelectionTable
41
(
42
joint,
43
null,
44
dictionary
45
);
46
}
47
}
48
}
49
50
51
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
52
53
Foam::RBD::joints::null::null
(
const
rigidBodyModel
& model)
54
:
55
joint
(model, 0)
56
{}
57
58
59
Foam::RBD::joints::null::null
60
(
61
const
rigidBodyModel
& model,
62
const
dictionary
& dict
63
)
64
:
65
joint
(model, 0)
66
{}
67
68
69
Foam::autoPtr<Foam::RBD::joint>
Foam::RBD::joints::null::clone
()
const
70
{
71
return
autoPtr<joint>
(
new
null
(*
this
));
72
}
73
74
75
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
76
77
Foam::RBD::joints::null::~null
()
78
{}
79
80
81
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
82
83
void
Foam::RBD::joints::null::jcalc
84
(
85
joint::XSvc
& J,
86
const
rigidBodyModelState
& state
87
)
const
88
{
89
FatalErrorInFunction
90
<<
"Cannot calculate the state of a null-joint"
91
<<
abort
(
FatalError
);
92
}
93
94
95
// ************************************************************************* //
Foam::RBD::joint
Abstract base-class for all rigid-body joints.
Definition:
joint.H:80
Foam::FatalError
error FatalError
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition:
dictionary.H:156
FatalErrorInFunction
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition:
error.H:306
Foam::RBD::joints::defineTypeNameAndDebug
defineTypeNameAndDebug(composite, 0)
Foam::RBD::joints::addToRunTimeSelectionTable
addToRunTimeSelectionTable(joint, composite, dictionary)
Foam::RBD::joints::null::~null
virtual ~null()
Destructor.
Definition:
nullJoint.C:77
Foam::RBD::joints::null::null
null(const rigidBodyModel &model)
Construct for given model.
Definition:
nullJoint.C:53
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::RBD::joints::null::clone
virtual autoPtr< joint > clone() const
Clone this joint.
Definition:
nullJoint.C:69
Foam::RBD::rigidBodyModelState
Holds the motion state of rigid-body model.
Definition:
rigidBodyModelState.H:65
Foam::RBD::joint::XSvc
Joint state returned by jcalc.
Definition:
joint.H:123
Foam::abort
errorManip< error > abort(error &err)
Definition:
errorManip.H:131
Foam::RBD::joint::joint
joint(const rigidBodyModel &model, const label nDoF)
Construct joint setting the size of the motion sub-space.
Definition:
jointI.H:28
Foam::RBD::joints::null::jcalc
virtual void jcalc(joint::XSvc &J, const rigidBodyModelState &state) const
Update the model state for this joint.
Definition:
nullJoint.C:84
Foam::autoPtr
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition:
PtrList.H:52
Foam::RBD::rigidBodyModel
Basic rigid-body model representing a system of rigid-bodies connected by 1-6 DoF joints...
Definition:
rigidBodyModel.H:76
nullJoint.H
rigidBodyModel.H
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.H:213
src
rigidBodyDynamics
joints
null
nullJoint.C
Generated by
1.8.13