OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

wedge.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-2009 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     Foam::extrudeModels::wedge
00027 
00028 Description
00029     Extrudes by rotating a surface around an axis
00030     - extrusion is opposite the surface/patch normal so inwards the source
00031       mesh
00032     - axis direction has to be consistent with this.
00033     - use -mergeFaces option if doing full 360 and want to merge front and back
00034     - note direction of axis. This should be consistent with rotating against
00035       the patch normal direction. If you get it wrong you'll see all cells
00036       with extreme aspect ratio and internal faces wrong way around in
00037       checkMesh
00038 
00039 \*---------------------------------------------------------------------------*/
00040 
00041 #ifndef wedge_H
00042 #define wedge_H
00043 
00044 #include "extrudeModel.H"
00045 
00046 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00047 
00048 namespace Foam
00049 {
00050 namespace extrudeModels
00051 {
00052 
00053 /*---------------------------------------------------------------------------*\
00054                          Class wedge Declaration
00055 \*---------------------------------------------------------------------------*/
00056 
00057 class wedge
00058 :
00059     public extrudeModel
00060 {
00061     // Private data
00062 
00063         //- Point on axis
00064         const point axisPt_;
00065 
00066         //- Normalized direction of axis
00067         const vector axis_;
00068 
00069         //- Overall angle (radians)
00070         const scalar angle_;
00071 
00072 
00073 public:
00074 
00075     //- Runtime type information
00076     TypeName("wedge");
00077 
00078     // Constructors
00079 
00080         //- Construct from components
00081         wedge(const dictionary& dict);
00082 
00083 
00084     //- Destrcuctor
00085     ~wedge();
00086 
00087 
00088     // Member Operators
00089 
00090         point operator()
00091         (
00092             const point& surfacePoint,
00093             const vector& surfaceNormal,
00094             const label layer
00095         ) const;
00096 };
00097 
00098 
00099 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00100 
00101 } // End namespace extrudeModels
00102 } // End namespace Foam
00103 
00104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00105 
00106 #endif
00107 
00108 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd