All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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-2019 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 protected:
67 
68  // Protected data
69 
70  //- Base viscosity model
72 
73  //- Coefficient k1
75 
76  //- Coefficient k2
78 
79  //- Reference temperature
81 
82 
83 public:
84 
85  //- Runtime type information
86  TypeName("Arrhenius");
87 
88 
89  // Constructors
90 
91  //- Construct from surface film model
93  (
95  const dictionary& dict,
97  );
98 
99  //- Disallow default bitwise copy construction
100  ArrheniusViscosity(const ArrheniusViscosity&) = delete;
101 
102 
103  //- Destructor
104  virtual ~ArrheniusViscosity();
105 
106 
107  // Member Functions
108 
109  //- Correct
110  virtual void correct
111  (
112  const volScalarField& p,
113  const volScalarField& T
114  );
115 
116 
117  // Member Operators
118 
119  //- Disallow default bitwise assignment
120  void operator=(const ArrheniusViscosity&) = delete;
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:158
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.
void operator=(const ArrheniusViscosity &)=delete
Disallow default bitwise assignment.
dimensionedScalar Tref_
Reference temperature.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
ArrheniusViscosity(surfaceFilmRegionModel &film, const dictionary &dict, volScalarField &mu)
Construct from surface film model.
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.