cartesianCS.C
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) 2011-2014 OpenFOAM Foundation
9  Copyright (C) 2018-2022 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "cartesianCS.H"
31 
32 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36 namespace coordSystem
37 {
40 }
41 }
42 
43 
45 
46 
47 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
48 
50 :
51  coordinateSystem(csys)
52 {}
53 
54 
56 :
57  coordinateSystem(std::move(csys))
58 {}
59 
60 
62 :
63  coordinateSystem(std::move(csys))
64 {}
65 
66 
68 :
69  coordinateSystem(crot)
70 {}
71 
72 
74 (
75  const point& origin,
76  const coordinateRotation& crot
77 )
78 :
79  coordinateSystem(origin, crot)
80 {}
81 
82 
84 (
85  const point& origin,
86  const vector& axis,
87  const vector& dirn
88 )
89 :
90  coordinateSystem(origin, axis, dirn)
91 {}
92 
93 
95 (
96  const word& name,
97  const point& origin,
98  const vector& axis,
99  const vector& dirn
100 )
101 :
102  coordinateSystem(name, origin, axis, dirn)
103 {}
104 
105 
107 (
108  const dictionary& dict,
109  IOobjectOption::readOption readOrigin
110 )
111 :
112  coordinateSystem(dict, readOrigin)
113 {}
114 
115 
117 (
118  const dictionary& dict,
119  const word& dictName,
120  IOobjectOption::readOption readOrigin
121 )
122 :
124 {}
125 
126 
127 // ************************************************************************* //
Base class for coordinate system specification, the default coordinate system type is cartesian ...
User specification of a coordinate rotation.
dictionary dict
static const cartesian null
Global (identity) cartesian coordinate system.
Definition: cartesianCS.H:82
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
const word dictName("faMeshDefinition")
Macros for easy insertion into run-time selection tables.
A Cartesian coordinate system.
Definition: cartesianCS.H:65
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition: exprTraits.C:127
A class for handling words, derived from Foam::string.
Definition: word.H:63
cartesian()=default
Default construct. Identity coordinate system.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
defineTypeName(cartesian)
addToRunTimeSelectionTable(coordinateSystem, cartesian, dictionary)
Namespace for OpenFOAM.
readOption
Enumeration defining read preferences.