1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::ellipticCylindricalCS
29 Elliptic cylindrical coordinate system.
31 Notation: u = a.x() v = a.y() z = a.z();
33 http://en.wikipedia.org/wiki/Elliptic_coordinates
36 ellipticCylindricalCS.C
39 Henrik Rusche, Wikki GmbH
42 \*---------------------------------------------------------------------------*/
44 #ifndef ellipticCylindricalCS_H
45 #define ellipticCylindricalCS_H
47 #include "coordinateSystem.H"
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 /*---------------------------------------------------------------------------*\
55 Class ellipticCylindricalCS Declaration
56 \*---------------------------------------------------------------------------*/
58 class ellipticCylindricalCS
60 public coordinateSystem
62 // Private data members
64 // Distance of the foci from the origin
67 //- Are angles in degrees? (default = true)
73 // Protected Member Functions
75 //- Convert from local coordinate system to the global Cartesian system
76 // with optional translation for the origin
77 virtual vector localToGlobal(const vector&, bool translate) const;
79 //- Convert from local coordinate system to the global Cartesian system
80 // with optional translation for the origin
81 virtual tmp<vectorField> localToGlobal
87 //- Convert from global Cartesian system to the local coordinate system
88 // with optional translation for the origin
89 virtual vector globalToLocal(const vector&, bool translate) const;
91 //- Convert from global Cartesian system to the local coordinate system
92 // with optional translation for the origin
93 virtual tmp<vectorField> globalToLocal
101 //- Runtime type information
102 TypeName("ellipticCylindrical");
108 ellipticCylindricalCS(const bool inDegrees = true);
111 ellipticCylindricalCS
113 const coordinateSystem&,
114 const bool inDegrees = true
117 //- Construct copy with a different name
118 ellipticCylindricalCS
121 const coordinateSystem&,
122 const bool inDegrees = true
125 //- Construct from origin, and rotation
126 ellipticCylindricalCS
130 const coordinateRotation& cr,
132 const bool inDegrees = true
135 //- Construct from origin and 2 axes
136 ellipticCylindricalCS
143 const bool inDegrees = true
146 //- Construct from dictionary
147 ellipticCylindricalCS
150 const dictionary& dict
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 } // End namespace Foam
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 // ************************************************************************* //