Newmark.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 | Copyright (C) 2016 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::RBD::rigidBodySolvers::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 "rigidBodySolver.H"
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 namespace Foam
60 {
61 namespace RBD
62 {
63 namespace rigidBodySolvers
64 {
65 
66 /*---------------------------------------------------------------------------*\
67  Class Newmark Declaration
68 \*---------------------------------------------------------------------------*/
69 
70 class Newmark
71 :
72  public rigidBodySolver
73 {
74  // Private data
75 
76  //- Coefficient for velocity integration (default: 0.5)
77  const scalar gamma_;
78 
79  //- Coefficient for position and orientation integration (default: 0.25)
80  const scalar beta_;
81 
82 
83 public:
84 
85  //- Runtime type information
86  TypeName("Newmark");
87 
88 
89  // Constructors
90 
91  //- Construct for the given body from dictionary
92  Newmark
93  (
94  rigidBodyMotion& body,
95  const dictionary& dict
96  );
97 
98 
99  //- Destructor
100  virtual ~Newmark();
101 
102 
103  // Member Functions
104 
105  //- Integrate the rigid-body motion for one time-step
106  virtual void solve
107  (
108  const scalarField& tau,
109  const Field<spatialVector>& fx
110  );
111 };
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 } // End namespace rigidBodySolvers
117 } // End namespace RBD
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #endif
123 
124 // ************************************************************************* //
dictionary dict
virtual ~Newmark()
Destructor.
Definition: Newmark.C:67
TypeName("Newmark")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
Newmark(rigidBodyMotion &body, const dictionary &dict)
Construct for the given body from dictionary.
Definition: Newmark.C:47
Six degree of freedom motion for a rigid body.
Newmark 2nd-order time-integrator for 6DoF solid-body motion.
Definition: Newmark.H:69
Namespace for OpenFOAM.
virtual void solve(const scalarField &tau, const Field< spatialVector > &fx)
Integrate the rigid-body motion for one time-step.
Definition: Newmark.C:74