ArrheniusViscosity.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::regionModels::surfaceFilmModels::ArrheniusViscosity
26 
27 Description
28  The Arrhenius temperature-dependent viscosity model multiplies the viscosity
29  of a base model by an Arrhenius-type temperature function:
30 
31  mu = mu0*exp(k1*(1/(T + k2) - 1/(Tref + k2)))
32 
33  Where:
34  mu0 is the base-model viscosity
35  k1 and k2 are Arrhenius coefficients
36  T is the local temperature
37  Tref is the reference temperature
38 
39 SourceFiles
40  ArrheniusViscosity.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef ArrheniusViscosity_H
45 #define ArrheniusViscosity_H
46 
47 #include "filmViscosityModel.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 namespace regionModels
54 {
55 namespace surfaceFilmModels
56 {
57 
58 /*---------------------------------------------------------------------------*\
59  Class ArrheniusViscosity Declaration
60 \*---------------------------------------------------------------------------*/
61 
63 :
64  public filmViscosityModel
65 {
66  // Private member functions
67 
68  //- Disallow default bitwise copy construct
70 
71  //- Disallow default bitwise assignment
72  void operator=(const ArrheniusViscosity&);
73 
74 
75 protected:
76 
77  // Protected data
78 
79  //- Base viscosity model
81 
82  //- Coefficient k1
84 
85  //- Coefficient k2
87 
88  //- Reference temperature
90 
91 
92 public:
93 
94  //- Runtime type information
95  TypeName("Arrhenius");
96 
97 
98  // Constructors
99 
100  //- Construct from surface film model
102  (
104  const dictionary& dict,
106  );
107 
108 
109  //- Destructor
110  virtual ~ArrheniusViscosity();
111 
112 
113  // Member Functions
114 
115  //- Correct
116  virtual void correct
117  (
118  const volScalarField& p,
119  const volScalarField& T
120  );
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace surfaceFilmModels
127 } // End namespace regionModels
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
virtual void correct(const volScalarField &p, const volScalarField &T)
Correct.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
autoPtr< filmViscosityModel > viscosity_
Base viscosity model.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
The Arrhenius temperature-dependent viscosity model multiplies the viscosity of a base model by an Ar...
Base class for surface film viscosity models.
TypeName("Arrhenius")
Runtime type information.
dimensionedScalar Tref_
Reference temperature.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionedScalar mu
Atomic mass unit.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
volScalarField & p
Namespace for OpenFOAM.