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

cylindricalCS.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     cylindricalCS
00027 
00028 Description
00029     Cylindrical coordinate system.
00030 
00031 SourceFiles
00032     cylindricalCS.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef cylindricalCS_H
00037 #define cylindricalCS_H
00038 
00039 #include "coordinateSystem.H"
00040 #include "typeInfo.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                            Class cylindricalCS Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 class cylindricalCS
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("cylindrical");
00088 
00089 
00090     // Constructors
00091 
00092         //- Construct null
00093         cylindricalCS();
00094 
00095         //- Construct from components
00096         cylindricalCS
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         cylindricalCS
00106         (
00107             const word& name,
00108             const point& origin,
00109             const coordinateRotation& cr
00110         );
00111 
00112         //- Construct from dictionary
00113         cylindricalCS(const word& name, const dictionary& dict);
00114 
00115 
00116     // Member Functions
00117 
00118 };
00119 
00120 
00121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00122 
00123 } // End namespace Foam
00124 
00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00126 
00127 #endif
00128 
00129 // ************************************************************************* //
Copyright © 2000-2007 OpenCFD Ltd