sixDoFRigidBodyState.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) 2017-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 Class
25  Foam::functionObjects::sixDoFRigidBodyState
26 
27 Description
28  Writes the 6-DoF motion state.
29 
30  Example of function object specification:
31  \verbatim
32  sixDoFRigidBodyState
33  {
34  type sixDoFRigidBodyState;
35  libs ("libsixDoFRigidBodyState.so");
36  angleFormat degrees;
37  }
38  \endverbatim
39 
40 Usage
41  \table
42  Property | Description | Required | Default value
43  type | type name: sixDoFRigidBodyState | yes |
44  angleFormat | degrees or radians | no | radian
45  \endtable
46 
47 See also
48  Foam::functionObjects::fvMeshFunctionObject
49  Foam::functionObjects::logFiles
50 
51 SourceFiles
52  sixDoFRigidBodyState.C
53 
54 \*---------------------------------------------------------------------------*/
55 
56 #ifndef sixDoFRigidBodyState_H
57 #define sixDoFRigidBodyState_H
58 
59 #include "fvMeshFunctionObject.H"
60 #include "logFiles.H"
61 
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 
64 namespace Foam
65 {
66 namespace functionObjects
67 {
68 
69 /*---------------------------------------------------------------------------*\
70  Class sixDoFRigidBodyState Declaration
71 \*---------------------------------------------------------------------------*/
72 
73 class sixDoFRigidBodyState
74 :
75  public fvMeshFunctionObject,
76  public logFiles
77 {
78  // Private data
79 
80  word angleFormat_;
81 
82 
83  // Private Member Functions
84 
85  //- Disallow default bitwise copy construct
86  sixDoFRigidBodyState(const sixDoFRigidBodyState&);
87 
88  //- Disallow default bitwise assignment
89  void operator=(const sixDoFRigidBodyState&);
90 
91 
92 protected:
93 
94  // Protected Member Functions
95 
96  //- overloaded writeFileHeader from writeFile
97  virtual void writeFileHeader(const label i = 0);
98 
99 
100 public:
101 
102  //- Runtime type information
103  TypeName("sixDoFRigidBodyState");
104 
105 
106  // Constructors
107 
108  //- Construct from Time and dictionary
110  (
111  const word& name,
112  const Time& runTime,
113  const dictionary& dict
114  );
115 
116 
117  //- Destructor
118  virtual ~sixDoFRigidBodyState();
119 
120 
121  // Member Functions
122 
123  //- Read the sixDoFRigidBodyState data
124  virtual bool read(const dictionary&);
125 
126  //- Execute, currently does nothing
127  virtual bool execute();
128 
129  //- Write the sixDoFRigidBodyState
130  virtual bool write();
131 };
132 
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 } // End namespace functionObjects
137 } // End namespace Foam
138 
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 
141 #endif
142 
143 // ************************************************************************* //
dictionary dict
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
engineTime & runTime
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:68
virtual bool execute()
Execute, currently does nothing.
virtual bool read(const dictionary &)
Read the sixDoFRigidBodyState data.
A class for handling words, derived from string.
Definition: word.H:59
TypeName("sixDoFRigidBodyState")
Runtime type information.
virtual void writeFileHeader(const label i=0)
overloaded writeFileHeader from writeFile
virtual bool write()
Write the sixDoFRigidBodyState.
Namespace for OpenFOAM.