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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::coordinateRotations::identity
28 
29 Description
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 | Required | Default
42  type | Type name: none | yes |
43  \endtable
44 
45 SourceFiles
46  identityRotation.C
47 
48 \*---------------------------------------------------------------------------*/
49 
50 #ifndef coordinateRotations_identity_H
51 #define coordinateRotations_identity_H
52 
53 #include "coordinateRotation.H"
54 
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 
57 namespace Foam
58 {
59 namespace coordinateRotations
60 {
61 
62 /*---------------------------------------------------------------------------*\
63  Class coordinateRotations::identity Declaration
64 \*---------------------------------------------------------------------------*/
65 
66 class identity
67 :
68  public coordinateRotation
69 {
70 public:
71 
72  //- Runtime type information
73  TypeNameNoDebug("none");
74 
75 
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 // ************************************************************************* //
Foam::Tensor< scalar >
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::coordinateRotations::identity::~identity
virtual ~identity()=default
Destructor.
Foam::coordinateRotations::identity::clear
virtual void clear()
Reset specification (no-op)
Definition: identityRotation.C:57
Foam::coordinateRotations::identity::write
virtual void write(Ostream &os) const
Write information.
Definition: identityRotation.C:67
Foam::coordinateRotation
User specification of a coordinate rotation.
Definition: coordinateRotation.H:78
Foam::coordinateRotations::identity::TypeNameNoDebug
TypeNameNoDebug("none")
Runtime type information.
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
os
OBJstream os(runTime.globalPath()/outputName)
Foam::coordinateRotations::identity::identity
identity()=default
Default construct.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::coordinateRotations::identity::writeEntry
virtual void writeEntry(const word &keyword, Ostream &os) const
Write dictionary entry.
Definition: identityRotation.C:74
Foam::coordinateRotations::identity
An identity coordinateRotation.
Definition: identityRotation.H:75
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::identity
labelList identity(const label len, label start=0)
Create identity map of the given length with (map[i] == i)
Definition: labelList.C:38
Foam::coordinateRotations::identity::operator=
identity & operator=(const identity &)=default
Copy assignment.
coordinateRotation.H
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::coordinateRotations::identity::clone
autoPtr< coordinateRotation > clone() const
Return clone.
Definition: identityRotation.H:103
Foam::coordinateRotations::identity::R
virtual tensor R() const
Return an identity rotation tensor.
Definition: identityRotation.C:61