axisRotationMotion.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) 2012-2013 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::solidBodyMotionFunctions::axisRotationMotion
26 
27 Description
28  Constant velocity rotation around CoG. Similar to rotatingMotion but
29  motion specified as rotation vector.
30 
31 SourceFiles
32  axisRotationMotion.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef axisRotationMotion_H
37 #define axisRotationMotion_H
38 
40 #include "primitiveFields.H"
41 #include "point.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace solidBodyMotionFunctions
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class axisRotationMotion Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
57 {
58  // Private data
59 
60  //- Origin
61  point origin_;
62 
63  //- Rotational velocity (deg/s)
65 
66 
67  // Private Member Functions
68 
69  //- Disallow copy construct
71 
72  //- Disallow default bitwise assignment
73  void operator=(const axisRotationMotion&);
74 
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("axisRotationMotion");
80 
81 
82  // Constructors
83 
84  //- Construct from components
86  (
87  const dictionary& SBMFCoeffs,
88  const Time& runTime
89  );
90 
91  //- Construct and return a clone
93  {
95  (
97  (
99  time_
100  )
101  );
102  }
103 
104 
105  //- Destructor
106  virtual ~axisRotationMotion();
107 
108 
109  // Member Functions
110 
111  //- Return the solid-body motion transformation septernion
112  virtual septernion transformation() const;
113 
114  //- Update properties from given dictionary
115  virtual bool read(const dictionary& SBMFCoeffs);
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace solidBodyMotionFunctions
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
Foam::Time
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:68
solidBodyMotionFunction.H
Foam::septernion
Septernion class used to perform translations and rotations in 3D space.
Definition: septernion.H:64
Foam::solidBodyMotionFunctions::axisRotationMotion::radialVelocity_
vector radialVelocity_
Rotational velocity (deg/s)
Definition: axisRotationMotion.H:63
point.H
Foam::solidBodyMotionFunctions::axisRotationMotion::origin_
point origin_
Origin.
Definition: axisRotationMotion.H:60
Foam::solidBodyMotionFunctions::axisRotationMotion::TypeName
TypeName("axisRotationMotion")
Runtime type information.
primitiveFields.H
Specialisations of Field<T> for scalar, vector and tensor.
Foam::solidBodyMotionFunctions::axisRotationMotion::read
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.
Definition: axisRotationMotion.C:96
Foam::solidBodyMotionFunctions::axisRotationMotion
Constant velocity rotation around CoG. Similar to rotatingMotion but motion specified as rotation vec...
Definition: axisRotationMotion.H:53
Foam::solidBodyMotionFunctions::axisRotationMotion::clone
virtual autoPtr< solidBodyMotionFunction > clone() const
Construct and return a clone.
Definition: axisRotationMotion.H:91
Foam::solidBodyMotionFunction::SBMFCoeffs_
dictionary SBMFCoeffs_
Definition: solidBodyMotionFunction.H:66
Foam::solidBodyMotionFunctions::axisRotationMotion::transformation
virtual septernion transformation() const
Return the solid-body motion transformation septernion.
Definition: axisRotationMotion.C:72
Foam::solidBodyMotionFunction
Base class for defining solid-body motions.
Definition: solidBodyMotionFunction.H:60
Foam::solidBodyMotionFunctions::axisRotationMotion::operator=
void operator=(const axisRotationMotion &)
Disallow default bitwise assignment.
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::solidBodyMotionFunctions::axisRotationMotion::axisRotationMotion
axisRotationMotion(const axisRotationMotion &)
Disallow copy construct.
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:117
Foam::solidBodyMotionFunctions::axisRotationMotion::~axisRotationMotion
virtual ~axisRotationMotion()
Destructor.
Definition: axisRotationMotion.C:65
Foam::Vector< scalar >
Foam::solidBodyMotionFunction::time_
const Time & time_
Definition: solidBodyMotionFunction.H:67