|
|
|
wallModel.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::wallModel 00027 00028 Description 00029 A wall interaction model 00030 00031 SourceFiles 00032 wallModelI.H 00033 wallModel.C 00034 wallModelIO.C 00035 00036 \*---------------------------------------------------------------------------*/ 00037 00038 #ifndef wallModel_H 00039 #define wallModel_H 00040 00041 #include "spray.H" 00042 #include "IOdictionary.H" 00043 #include "fvCFD.H" 00044 #include "autoPtr.H" 00045 #include "runTimeSelectionTables.H" 00046 00047 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00048 00049 namespace Foam 00050 { 00051 00052 /*---------------------------------------------------------------------------*\ 00053 Class wallModel Declaration 00054 \*---------------------------------------------------------------------------*/ 00055 00056 class wallModel 00057 { 00058 00059 protected: 00060 00061 // Protected data 00062 00063 const dictionary& dict_; 00064 const fvMesh& mesh_; 00065 spray& spray_; 00066 00067 00068 public: 00069 00070 //- Runtime type information 00071 TypeName("wallModel"); 00072 00073 // Declare runtime constructor selection table 00074 00075 declareRunTimeSelectionTable 00076 ( 00077 autoPtr, 00078 wallModel, 00079 dictionary, 00080 ( 00081 const dictionary& dict, 00082 const volVectorField& U, 00083 spray& sm 00084 ), 00085 (dict, U, sm) 00086 ); 00087 00088 00089 // Constructors 00090 00091 //- Construct from components 00092 wallModel 00093 ( 00094 const dictionary& dict, 00095 const volVectorField& U, 00096 spray& sm 00097 ); 00098 00099 00100 // Destructor 00101 00102 virtual ~wallModel(); 00103 00104 00105 // Selector 00106 00107 static autoPtr<wallModel> New 00108 ( 00109 const dictionary& dict, 00110 const volVectorField& U, 00111 spray& sm 00112 ); 00113 00114 00115 // Member Functions 00116 00117 //- Return true if parcel is to be kept, false if it is to be removed 00118 virtual bool wallTreatment 00119 ( 00120 parcel& parcel, 00121 const label facei 00122 ) const = 0; 00123 00124 }; 00125 00126 00127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00128 00129 } // End namespace Foam 00130 00131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00132 00133 #endif 00134 00135 // ************************************************************************* // |