00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2010 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 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your 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, see <http://www.gnu.org/licenses/>. 00023 00024 Class 00025 Foam::viscosityModel 00026 00027 Description 00028 00029 SourceFiles 00030 viscosityModel.C 00031 00032 \*---------------------------------------------------------------------------*/ 00033 00034 #ifndef viscosityModel_H 00035 #define viscosityModel_H 00036 00037 #include <OpenFOAM/dictionary.H> 00038 #include <finiteVolume/volFields.H> 00039 #include <OpenFOAM/dimensionedTypes.H> 00040 #include <OpenFOAM/runTimeSelectionTables.H> 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 namespace kineticTheoryModels 00047 { 00048 00049 /*---------------------------------------------------------------------------*\ 00050 Class viscosityModel Declaration 00051 \*---------------------------------------------------------------------------*/ 00052 00053 class viscosityModel 00054 { 00055 // Private member functions 00056 00057 //- Disallow default bitwise copy construct 00058 viscosityModel(const viscosityModel&); 00059 00060 //- Disallow default bitwise assignment 00061 void operator=(const viscosityModel&); 00062 00063 00064 protected: 00065 00066 // Protected data 00067 00068 const dictionary& dict_; 00069 00070 00071 public: 00072 00073 //- Runtime type information 00074 TypeName("viscosityModel"); 00075 00076 // Declare runtime constructor selection table 00077 declareRunTimeSelectionTable 00078 ( 00079 autoPtr, 00080 viscosityModel, 00081 dictionary, 00082 ( 00083 const dictionary& dict 00084 ), 00085 (dict) 00086 ); 00087 00088 00089 // Constructors 00090 00091 //- Construct from components 00092 viscosityModel(const dictionary& dict); 00093 00094 00095 // Selectors 00096 00097 static autoPtr<viscosityModel> New 00098 ( 00099 const dictionary& dict 00100 ); 00101 00102 00103 //- Destructor 00104 virtual ~viscosityModel(); 00105 00106 00107 // Member Functions 00108 00109 virtual tmp<volScalarField> mua 00110 ( 00111 const volScalarField& alpha, 00112 const volScalarField& Theta, 00113 const volScalarField& g0, 00114 const dimensionedScalar& rhoa, 00115 const dimensionedScalar& da, 00116 const dimensionedScalar& e 00117 ) const = 0; 00118 }; 00119 00120 00121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00122 00123 } // End namespace kineticTheoryModels 00124 } // End namespace Foam 00125 00126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00127 00128 #endif 00129 00130 // ************************ vim: set sw=4 sts=4 et: ************************ //