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-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::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 
63 protected:
64 
65  // Protected data
66 
67  //- Wax viscosity
69 
70  //- Wax viscosity model
72 
73  //- Solvent viscosity
75 
76  //- Solvent viscosity model
78 
79 
80 public:
81 
82  //- Runtime type information
83  TypeName("waxSolvent");
84 
85 
86  // Constructors
87 
88  //- Construct from surface film model
90  (
92  const dictionary& dict,
94  );
95 
96  //- Disallow default bitwise copy construction
98 
99 
100  //- Destructor
101  virtual ~waxSolventViscosity();
102 
103 
104  // Member Functions
105 
106  //- Correct
107  virtual void correct
108  (
109  const volScalarField& p,
110  const volScalarField& T
111  );
112 
113 
114  // Member Operators
115 
116  //- Disallow default bitwise assignment
117  void operator=(const waxSolventViscosity&) = delete;
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace surfaceFilmModels
124 } // End namespace regionModels
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
waxSolventViscosity(surfaceFilmRegionModel &film, const dictionary &dict, volScalarField &mu)
Construct from surface film model.
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.
void operator=(const waxSolventViscosity &)=delete
Disallow default bitwise assignment.
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.