OpenFOAM
12
The OpenFOAM Foundation
Newmark.H
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) 2015-2024 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
Class
25
Foam::sixDoFSolvers::Newmark
26
27
Description
28
Newmark 2nd-order time-integrator for 6DoF solid-body motion.
29
30
Reference:
31
\verbatim
32
Newmark, N. M. (1959).
33
A method of computation for structural dynamics.
34
Journal of the Engineering Mechanics Division, 85(3), 67-94.
35
\endverbatim
36
37
Example specification in dynamicMeshDict:
38
\verbatim
39
solver
40
{
41
type Newmark;
42
gamma 0.5; // Velocity integration coefficient
43
beta 0.25; // Position integration coefficient
44
}
45
\endverbatim
46
47
SourceFiles
48
Newmark.C
49
50
\*---------------------------------------------------------------------------*/
51
52
#ifndef Newmark_H
53
#define Newmark_H
54
55
#include "
sixDoFSolver.H
"
56
57
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58
59
namespace
Foam
60
{
61
namespace
sixDoFSolvers
62
{
63
64
/*---------------------------------------------------------------------------*\
65
Class Newmark Declaration
66
\*---------------------------------------------------------------------------*/
67
68
class
Newmark
69
:
70
public
sixDoFSolver
71
{
72
// Private Data
73
74
//- Coefficient for velocity integration (default: 0.5)
75
const
scalar gamma_;
76
77
//- Coefficient for position and orientation integration (default: 0.25)
78
const
scalar beta_;
79
80
81
public
:
82
83
//- Runtime type information
84
TypeName
(
"Newmark"
);
85
86
87
// Constructors
88
89
//- Construct from a dictionary and the body
90
Newmark
91
(
92
const
dictionary
&
dict
,
93
sixDoFRigidBodyMotion
& body
94
);
95
96
97
//- Destructor
98
virtual
~Newmark
();
99
100
101
// Member Functions
102
103
//- Drag coefficient
104
virtual
void
solve
105
(
106
bool
firstIter,
107
const
vector
& fGlobal,
108
const
vector
& tauGlobal,
109
scalar deltaT,
110
scalar deltaT0
111
);
112
};
113
114
115
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116
117
}
// End namespace sixDoFSolvers
118
}
// End namespace Foam
119
120
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121
122
#endif
123
124
// ************************************************************************* //
Foam::Vector< scalar >
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition:
dictionary.H:162
Foam::sixDoFRigidBodyMotion
Six degree of freedom motion for a rigid body.
Definition:
sixDoFRigidBodyMotion.H:67
Foam::sixDoFSolver
Definition:
sixDoFSolver.H:50
Foam::sixDoFSolvers::Newmark
Newmark 2nd-order time-integrator for 6DoF solid-body motion.
Definition:
Newmark.H:70
Foam::sixDoFSolvers::Newmark::Newmark
Newmark(const dictionary &dict, sixDoFRigidBodyMotion &body)
Construct from a dictionary and the body.
Definition:
Newmark.C:44
Foam::sixDoFSolvers::Newmark::~Newmark
virtual ~Newmark()
Destructor.
Definition:
Newmark.C:64
Foam::sixDoFSolvers::Newmark::TypeName
TypeName("Newmark")
Runtime type information.
Foam::sixDoFSolvers::Newmark::solve
virtual void solve(bool firstIter, const vector &fGlobal, const vector &tauGlobal, scalar deltaT, scalar deltaT0)
Drag coefficient.
Definition:
Newmark.C:71
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.H:214
dict
dictionary dict
Definition:
searchingEngine.H:14
sixDoFSolver.H
src
rigidBodyMotion
sixDoFRigidBodyMotion
sixDoFSolvers
Newmark
Newmark.H
Generated by
1.9.1