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

extrudeModel.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::extrudeModel
00027 
00028 Description
00029     Top level extrusion model class
00030 
00031 SourceFiles
00032     extrudeModel.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef extrudeModel_H
00037 #define extrudeModel_H
00038 
00039 #include "dictionary.H"
00040 #include "point.H"
00041 #include "autoPtr.H"
00042 #include "runTimeSelectionTables.H"
00043 
00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00045 
00046 namespace Foam
00047 {
00048 
00049 /*---------------------------------------------------------------------------*\
00050                         Class extrudeModel Declaration
00051 \*---------------------------------------------------------------------------*/
00052 
00053 class extrudeModel
00054 {
00055 protected:
00056 
00057     // Protected data
00058 
00059         const label nLayers_;
00060 
00061         const dictionary& dict_;
00062 
00063         const dictionary& coeffDict_;
00064 
00065 
00066     // Private Member Functions
00067 
00068         //- Disallow default bitwise copy construct
00069         extrudeModel(const extrudeModel&);
00070 
00071         //- Disallow default bitwise assignment
00072         void operator=(const extrudeModel&);
00073 
00074 
00075 public:
00076 
00077     //- Runtime type information
00078     TypeName("extrudeModel");
00079 
00080     //- Declare runtime constructor selection table
00081 
00082         declareRunTimeSelectionTable
00083         (
00084             autoPtr,
00085             extrudeModel,
00086             dictionary,
00087             (
00088                 const dictionary& dict
00089             ),
00090             (dict)
00091         );
00092 
00093 
00094     // Constructors
00095 
00096         //- Construct from dictionary
00097         extrudeModel(const word& modelType, const dictionary&);
00098 
00099 
00100     // Selectors
00101 
00102         //- Select null constructed
00103         static autoPtr<extrudeModel> New(const dictionary&);
00104 
00105 
00106     //- Destructor
00107     virtual ~extrudeModel();
00108 
00109 
00110     // Member Functions
00111 
00112         // Access
00113 
00114             label nLayers() const;
00115 
00116 
00117     // Member Operators
00118 
00119         virtual point operator()
00120         (
00121             const point& surfacePoint,
00122             const vector& surfaceNormal,
00123             const label layer
00124         ) const = 0;
00125 };
00126 
00127 
00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00129 
00130 } // End namespace Foam
00131 
00132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00133 
00134 #endif
00135 
00136 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd