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-2024 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 colloidal dispersions.
29 
30  Reference:
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 
61 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62 
63 namespace Foam
64 {
65 namespace mixtureViscosityModels
66 {
67 
68 /*---------------------------------------------------------------------------*\
69  Class Quemada Declaration
70 \*---------------------------------------------------------------------------*/
71 
72 class Quemada
73 :
75 {
76  // Private data
77 
78  //- Exponent (defaults to 2)
79  scalar q_;
80 
81  //- Maximum viscosity
82  dimensionedScalar muMax_;
83 
84 
85 public:
86 
87  //- Runtime type information
88  TypeName("Quemada");
89 
90 
91  // Constructors
92 
93  //- Construct from mixture
95 
96 
97  //- Destructor
98  virtual ~Quemada()
99  {}
100 
101 
102  // Member Functions
103 
104  //- Return the mixture viscosity
105  // given the viscosity of the continuous phase
106  virtual tmp<volScalarField> mu
107  (
108  const volScalarField& muc,
109  const volVectorField& U
110  ) const;
111 
112  //- Read phaseProperties dictionary
113  virtual bool read();
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace mixtureViscosityModels
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
Generic GeometricField class.
Class to represent a mixture of two constant density phases.
An abstract base class for incompressible mixtureViscosityModels.
Quemada viscosity model for colloidal dispersions.
Definition: Quemada.H:74
virtual ~Quemada()
Destructor.
Definition: Quemada.H:97
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.