Quemada.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) 2022-2023 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::mixtureViscosityModels::Quemada
26 
27 Description
28  Quemada viscosity model for for colloidal dispersions.
29 
30  References:
31  \verbatim
32  Quemada, D. (1998).
33  Rheological modelling of complex fluids. I.
34  The concept of effective volume fraction revisited.
35  The European Physical Journal-Applied Physics, 1(1), 119-127.
36  \endverbatim
37 
38 Usage
39  Example usage:
40  \verbatim
41  viscosityModel Quemada;
42 
43  rho 1996; // Dispersed phase density
44 
45  q 2; // Exponent, defaults to 2
46  muMax 1e-2; // Maximum viscosity (for numerical stability)
47 
48  \endverbatim
49 
50 SourceFiles
51  Quemada.C
52 
53 \*---------------------------------------------------------------------------*/
54 
55 #ifndef Quemada_H
56 #define Quemada_H
57 
58 #include "mixtureViscosityModel.H"
59 #include "dimensionedScalar.H"
60 #include "volFieldsFwd.H"
61 
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 
64 namespace Foam
65 {
66 namespace mixtureViscosityModels
67 {
68 
69 /*---------------------------------------------------------------------------*\
70  Class Quemada Declaration
71 \*---------------------------------------------------------------------------*/
72 
73 class Quemada
74 :
76 {
77  // Private data
78 
79  //- Exponent (defaults to 2)
80  scalar q_;
81 
82  //- Maximum viscosity
83  dimensionedScalar muMax_;
84 
85 
86 public:
87 
88  //- Runtime type information
89  TypeName("Quemada");
90 
91 
92  // Constructors
93 
94  //- Construct from mixture
96 
97 
98  //- Destructor
99  virtual ~Quemada()
100  {}
101 
102 
103  // Member Functions
104 
105  //- Return the mixture viscosity
106  // given the viscosity of the continuous phase
107  virtual tmp<volScalarField> mu
108  (
109  const volScalarField& muc,
110  const volVectorField& U
111  ) const;
112 
113  //- Read phaseProperties dictionary
114  virtual bool read();
115 };
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace mixtureViscosityModels
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
Generic GeometricField class.
Class to represent a mixture of two constant density phases.
An abstract base class for incompressible mixtureViscosityModels.
Quemada viscosity model for for colloidal dispersions.
Definition: Quemada.H:75
virtual ~Quemada()
Destructor.
Definition: Quemada.H:98
virtual tmp< volScalarField > mu(const volScalarField &muc, const volVectorField &U) const
Return the mixture viscosity.
Definition: Quemada.C:70
Quemada(const incompressibleDriftFluxMixture &mixture)
Construct from mixture.
Definition: Quemada.C:51
TypeName("Quemada")
Runtime type information.
virtual bool read()
Read phaseProperties dictionary.
Definition: Quemada.C:83
A class for managing temporary objects.
Definition: tmp.H:55
U
Definition: pEqn.H:72
Namespace for OpenFOAM.