identityRotation.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 | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2018-2021 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::coordinateRotations::identity
28
29Description
30 An identity coordinateRotation.
31
32 \verbatim
33 rotation
34 {
35 type none;
36 }
37 \endverbatim
38
39 \heading Dictionary entries
40 \table
41 Property | Description | Reqd | Default
42 type | Type name: none | yes |
43 \endtable
44
45SourceFiles
46 identityRotation.C
47
48\*---------------------------------------------------------------------------*/
49
50#ifndef Foam_coordinateRotations_identity_H
51#define Foam_coordinateRotations_identity_H
52
53#include "coordinateRotation.H"
54
55// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56
57namespace Foam
58{
59namespace coordinateRotations
60{
61
62/*---------------------------------------------------------------------------*\
63 Class coordinateRotations::identity Declaration
64\*---------------------------------------------------------------------------*/
65
66class identity
67:
68 public coordinateRotation
69{
70public:
71
72 //- Runtime type information
73 TypeNameNoDebug("none");
74
76 // Generated Methods
77
78 //- Default construct
79 identity() = default;
80
81 //- Copy construct
82 identity(const identity&) = default;
83
84 //- Copy assignment
85 identity& operator=(const identity&) = default;
86
87
88 // Constructors
89
90 //- Construct from dictionary
91 explicit identity(const dictionary& unused);
92
93 //- Return clone
95 {
96 return
99 }
100
101
102 //- Destructor
103 virtual ~identity() = default;
104
105
106 // Member Functions
107
108 //- Reset specification (no-op)
109 virtual void clear();
110
111 //- Return an identity rotation tensor
112 virtual tensor R() const;
113
114 //- Write information
115 virtual void write(Ostream& os) const;
116
117 //- Write dictionary entry
118 virtual void writeEntry(const word& keyword, Ostream& os) const;
119};
120
121
122// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124} // End namespace coordinateRotations
125} // End namespace Foam
126
127// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128
129#endif
130
131// ************************************************************************* //
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
User specification of a coordinate rotation.
An identity coordinateRotation.
virtual ~identity()=default
Destructor.
virtual tensor R() const
Return an identity rotation tensor.
identity & operator=(const identity &)=default
Copy assignment.
TypeNameNoDebug("none")
Runtime type information.
virtual void writeEntry(const word &keyword, Ostream &os) const
Write dictionary entry.
identity()=default
Default construct.
virtual void clear()
Reset specification (no-op)
autoPtr< coordinateRotation > clone() const
Return clone.
identity(const identity &)=default
Copy construct.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
A class for handling words, derived from Foam::string.
Definition: word.H:68
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i)
Definition: labelList.C:38
runTime write()
#define TypeNameNoDebug(TypeNameString)
Declare a ClassNameNoDebug() with extra virtual type info.
Definition: typeInfo.H:68