waxSolventViscosity.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) 2017-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::waxSolventViscosity
26 
27 Description
28  Wax solvent mixture viscosity model.
29 
30 SourceFiles
31  waxSolventViscosity.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef waxSolventViscosity_H
36 #define waxSolventViscosity_H
37 
38 #include "filmViscosityModel.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace regionModels
45 {
46 namespace surfaceFilmModels
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class waxSolventViscosity Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 :
55  public filmViscosityModel
56 {
57  // Private member functions
58 
59  //- Correct the mixture viscosity
60  void correctMu();
61 
62  //- Disallow default bitwise copy construct
64 
65  //- Disallow default bitwise assignment
66  void operator=(const waxSolventViscosity&);
67 
68 
69 protected:
70 
71  // Protected data
72 
73  //- Wax viscosity
75 
76  //- Wax viscosity model
78 
79  //- Solvent viscosity
81 
82  //- Solvent viscosity model
84 
85 
86 public:
87 
88  //- Runtime type information
89  TypeName("waxSolvent");
90 
91 
92  // Constructors
93 
94  //- Construct from surface film model
96  (
98  const dictionary& dict,
100  );
101 
102 
103  //- Destructor
104  virtual ~waxSolventViscosity();
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 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace surfaceFilmModels
121 } // End namespace regionModels
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
TypeName("waxSolvent")
Runtime type information.
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
autoPtr< filmViscosityModel > muWaxModel_
Wax viscosity model.
Base class for surface film viscosity models.
autoPtr< filmViscosityModel > muSolventModel_
Solvent viscosity model.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionedScalar mu
Atomic mass unit.
virtual void correct(const volScalarField &p, const volScalarField &T)
Correct.
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.