Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
11License
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"
32// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
33
34namespace Foam
35{
36namespace coordSystem
37{
40}
41}
46
47// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
52{}
53
58{}
59
64{}
65
74(
75 const point& origin,
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,
110)
111:
112 coordinateSystem(dict, readOrigin)
113{}
114
115
117(
118 const dictionary& dict,
119 const word& dictName,
121)
122:
124{}
125
126
127// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
readOption
Enumeration defining read preferences.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
A Cartesian coordinate system.
Definition cartesianCS.H:68
static const cartesian null
Global (identity) cartesian coordinate system.
Definition cartesianCS.H:82
cartesian()=default
Default construct. Identity coordinate system.
User specification of a coordinate rotation.
Base class for coordinate system specification, the default coordinate system type is cartesian .
virtual const word & name() const
Return the name.
coordinateSystem(std::nullptr_t)
Construct null, without allocating a coordinateRotation specification.
virtual const point & origin() const
Return origin.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A class for handling words, derived from Foam::string.
Definition word.H:66
#define defineTypeName(Type)
Define the typeName.
Definition className.H:113
const word dictName("faMeshDefinition")
Namespace for coordinate systems.
Definition cartesianCS.C:30
Namespace for OpenFOAM.
vector point
Point is a vector.
Definition point.H:37
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
Definition exprTraits.C:127
Vector< scalar > vector
Definition vector.H:57
dictionary dict