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