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-2021 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 :
52 {}
53 
54 
56 :
57  coordinateSystem(csys)
58 {}
59 
60 
62 :
63  coordinateSystem(std::move(csys))
64 {}
65 
66 
68 :
69  coordinateSystem(std::move(csys))
70 {}
71 
72 
74 :
75  coordinateSystem(crot)
76 {}
77 
78 
80 (
81  const point& origin,
82  const coordinateRotation& crot
83 )
84 :
85  coordinateSystem(origin, crot)
86 {}
87 
88 
90 (
91  const point& origin,
92  const vector& axis,
93  const vector& dirn
94 )
95 :
96  coordinateSystem(origin, axis, dirn)
97 {}
98 
99 
101 (
102  const word& name,
103  const point& origin,
104  const vector& axis,
105  const vector& dirn
106 )
107 :
108  coordinateSystem(name, origin, axis, dirn)
109 {}
110 
111 
113 (
114  const word& name,
115  const dictionary& dict
116 )
117 :
119 {}
120 
121 
123 :
125 {}
126 
127 
129 (
130  const dictionary& dict,
131  const word& dictName
132 )
133 :
135 {}
136 
137 
138 // ************************************************************************* //
Foam::coordSystem::cartesian::cartesian
cartesian()
Default construct. This is an identity coordinate system.
Definition: cartesianCS.C:49
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
dictName
const word dictName("faMeshDefinition")
cartesianCS.H
Foam::coordinateRotation
User specification of a coordinate rotation.
Definition: coordinateRotation.H:78
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::coordSystem::defineTypeName
defineTypeName(cartesian)
Foam::coordSystem::cartesian
A Cartesian coordinate system.
Definition: cartesianCS.H:69
Foam::Vector< scalar >
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
Foam::coordSystem::addToRunTimeSelectionTable
addToRunTimeSelectionTable(coordinateSystem, cartesian, dictionary)
Foam::coordinateSystem
Base class for coordinate system specification, the default coordinate system type is cartesian .
Definition: coordinateSystem.H:132
Foam::coordSystem::cartesian::null
static const cartesian null
Global (identity) cartesian coordinate system.
Definition: cartesianCS.H:82