|
|
|
radialModel.HGo 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::radialModel 00027 00028 SourceFiles 00029 radialModel.C 00030 00031 \*---------------------------------------------------------------------------*/ 00032 00033 #ifndef radialModel_H 00034 #define radialModel_H 00035 00036 #include "dictionary.H" 00037 #include "volFields.H" 00038 #include "dimensionedTypes.H" 00039 #include "runTimeSelectionTables.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 /*---------------------------------------------------------------------------*\ 00047 Class radialModel Declaration 00048 \*---------------------------------------------------------------------------*/ 00049 00050 class radialModel 00051 { 00052 // Private member functions 00053 00054 //- Disallow default bitwise copy construct 00055 radialModel(const radialModel&); 00056 00057 //- Disallow default bitwise assignment 00058 void operator=(const radialModel&); 00059 00060 00061 protected: 00062 00063 // Protected data 00064 00065 const dictionary& dict_; 00066 00067 00068 public: 00069 00070 //- Runtime type information 00071 TypeName("radialModel"); 00072 00073 // Declare runtime constructor selection table 00074 declareRunTimeSelectionTable 00075 ( 00076 autoPtr, 00077 radialModel, 00078 dictionary, 00079 ( 00080 const dictionary& dict 00081 ), 00082 (dict) 00083 ); 00084 00085 00086 // Constructors 00087 00088 //- Construct from components 00089 radialModel(const dictionary& dict); 00090 00091 00092 // Selectors 00093 00094 static autoPtr<radialModel> New 00095 ( 00096 const dictionary& dict 00097 ); 00098 00099 00100 //- Destructor 00101 virtual ~radialModel(); 00102 00103 00104 // Member Functions 00105 00106 //- Radial distribution function 00107 virtual tmp<volScalarField> g0 00108 ( 00109 const volScalarField& alpha, 00110 const dimensionedScalar& alphaMax 00111 ) const = 0; 00112 00113 //- Derivative of the radial distribution function 00114 virtual tmp<volScalarField> g0prime 00115 ( 00116 const volScalarField& alpha, 00117 const dimensionedScalar& alphaMax 00118 ) const = 0; 00119 }; 00120 00121 00122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00123 00124 } // End namespace Foam 00125 00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00127 00128 #endif 00129 00130 // ************************************************************************* // |