initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / src / meshTools / coordinateSystems / parabolicCylindricalCS.H
bloba6b3570c0fb196650326d33d698758f054002bc2
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2008 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::parabolicCylindricalCS
28 Description
29     Parabolic cylindrical coordinate system.
31     Notation: u = a.x() v = a.y() z = a.z();
33 SourceFiles
34     parabolicCylindricalCS.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef parabolicCylindricalCS_H
39 #define parabolicCylindricalCS_H
41 #include "coordinateSystem.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace Foam
48 /*---------------------------------------------------------------------------*\
49                     Class parabolicCylindricalCS Declaration
50 \*---------------------------------------------------------------------------*/
52 class parabolicCylindricalCS
54     public coordinateSystem
57 protected:
59     // Protected Member Functions
61         //- Convert from local coordinate system to the global Cartesian system
62         //  with optional translation for the origin
63         virtual vector localToGlobal(const vector&, bool translate) const;
65         //- Convert from local coordinate system to the global Cartesian system
66         //  with optional translation for the origin
67         virtual tmp<vectorField> localToGlobal
68         (
69             const vectorField&,
70             bool translate
71         ) const;
73         //- Convert from global Cartesian system to the local coordinate system
74         //  with optional translation for the origin
75         virtual vector globalToLocal(const vector&, bool translate) const;
77         //- Convert from global Cartesian system to the local coordinate system
78         //  with optional translation for the origin
79         virtual tmp<vectorField> globalToLocal
80         (
81             const vectorField&,
82             bool translate
83         ) const;
85 public:
87     //- Runtime type information
88     TypeName("parabolicCylindrical");
91     // Constructors
93         //- Construct null
94         parabolicCylindricalCS();
96         //- Construct from components
97         parabolicCylindricalCS
98         (
99             const word& name,
100             const point& origin,
101             const vector& axis,
102             const vector& direction
103         );
105         //- Construct from origin and rotation angles
106         parabolicCylindricalCS
107         (
108             const word& name,
109             const point& origin,
110             const coordinateRotation& cr
111         );
113         //- Construct from dictionary
114         parabolicCylindricalCS
115         (
116             const word& name,
117             const dictionary& dict
118         );
121     // Member Functions
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 } // End namespace Foam
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 #endif
134 // ************************************************************************* //