|
|
|
laminar.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::incompressible::RASModels::laminar 00027 00028 Description 00029 Dummy turbulence model for laminar incompressible flow. 00030 00031 SourceFiles 00032 laminar.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef rasLaminar_H 00037 #define rasLaminar_H 00038 00039 #include "RASModel.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 namespace incompressible 00046 { 00047 namespace RASModels 00048 { 00049 00050 /*---------------------------------------------------------------------------*\ 00051 Class laminar Declaration 00052 \*---------------------------------------------------------------------------*/ 00053 00054 class laminar 00055 : 00056 public RASModel 00057 { 00058 00059 public: 00060 00061 //- Runtime type information 00062 TypeName("laminar"); 00063 00064 // Constructors 00065 00066 //- Construct from components 00067 laminar 00068 ( 00069 const volVectorField& U, 00070 const surfaceScalarField& phi, 00071 transportModel& transport 00072 ); 00073 00074 00075 //- Destructor 00076 virtual ~laminar() 00077 {} 00078 00079 00080 // Member Functions 00081 00082 //- Return the turbulence viscosity, i.e. 0 for laminar flow 00083 virtual tmp<volScalarField> nut() const; 00084 00085 //- Return the effective viscosity, i.e. the laminar viscosity 00086 virtual tmp<volScalarField> nuEff() const 00087 { 00088 return tmp<volScalarField>(new volScalarField("nuEff", nu())); 00089 } 00090 00091 //- Return the turbulence kinetic energy, i.e. 0 for laminar flow 00092 virtual tmp<volScalarField> k() const; 00093 00094 //- Return the turbulence kinetic energy dissipation rate, 00095 // i.e. 0 for laminar flow 00096 virtual tmp<volScalarField> epsilon() const; 00097 00098 //- Return the Reynolds stress tensor, i.e. 0 for laminar flow 00099 virtual tmp<volSymmTensorField> R() const; 00100 00101 //- Return the effective stress tensor, i.e. the laminar stress 00102 virtual tmp<volSymmTensorField> devReff() const; 00103 00104 //- Return the source term for the momentum equation 00105 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const; 00106 00107 //- Correct the laminar viscosity 00108 virtual void correct(); 00109 00110 //- Read RASProperties dictionary 00111 virtual bool read(); 00112 }; 00113 00114 00115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00116 00117 } // End namespace RASModels 00118 } // End namespace incompressible 00119 } // End namespace Foam 00120 00121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00122 00123 #endif 00124 00125 // ************************************************************************* // |