OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

parabolicCylindricalCS.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2007 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     parabolicCylindricalCS
00027 
00028 Description
00029     Parabolic cylindrical coordinate system.
00030     Notation: u = a.x() v = a.y() z = a.z();
00031 
00032 SourceFiles
00033     parabolicCylindricalCS.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef parabolicCylindricalCS_H
00038 #define parabolicCylindricalCS_H
00039 
00040 #include "coordinateSystem.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                     Class parabolicCylindricalCS Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 class parabolicCylindricalCS
00052 :
00053     public coordinateSystem
00054 {
00055 
00056 protected:
00057 
00058     // Protected Member Functions
00059 
00060         //- Convert from local coordinate system to the global Cartesian system
00061         //  with optional translation for the origin
00062         virtual vector localToGlobal(const vector&, bool translate) const;
00063 
00064         //- Convert from local coordinate system to the global Cartesian system
00065         //  with optional translation for the origin
00066         virtual tmp<vectorField> localToGlobal
00067         (
00068             const vectorField&,
00069             bool translate
00070         ) const;
00071 
00072         //- Convert from global Cartesian system to the local coordinate system
00073         //  with optional translation for the origin
00074         virtual vector globalToLocal(const vector&, bool translate) const;
00075 
00076         //- Convert from global Cartesian system to the local coordinate system
00077         //  with optional translation for the origin
00078         virtual tmp<vectorField> globalToLocal
00079         (
00080             const vectorField&,
00081             bool translate
00082         ) const;
00083 
00084 public:
00085 
00086     //- Runtime type information
00087     TypeName("parabolicCylindrical");
00088 
00089 
00090     // Constructors
00091 
00092         //- Construct null
00093         parabolicCylindricalCS();
00094 
00095         //- Construct from components
00096         parabolicCylindricalCS
00097         (
00098             const word& name,
00099             const point& origin,
00100             const vector& axis,
00101             const vector& direction
00102         );
00103 
00104         //- Construct from origin and rotation angles
00105         parabolicCylindricalCS
00106         (
00107             const word& name,
00108             const point& origin,
00109             const coordinateRotation& cr
00110         );
00111 
00112         //- Construct from dictionary
00113         parabolicCylindricalCS
00114         (
00115             const word& name,
00116             const dictionary& dict
00117         );
00118 
00119 
00120     // Member Functions
00121 
00122 };
00123 
00124 
00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00126 
00127 } // End namespace Foam
00128 
00129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00130 
00131 #endif
00132 
00133 // ************************************************************************* //
Copyright © 2000-2007 OpenCFD Ltd