slurry.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2014 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::mixtureViscosityModels::slurry
28 
29 Description
30  Thomas' viscosity correction for slurry.
31 
32  References:
33  \verbatim
34  "Transport characteristics of suspension:
35  VIII. A note on the viscosity of Newtonian suspensions
36  of uniform spherical particles".
37  D.G. Thomas,
38  J. Colloid Sci. 20 (3), 1965, p267.
39  \endverbatim
40 
41 SourceFiles
42  slurry.C
43 
44 \*---------------------------------------------------------------------------*/
45 
46 #ifndef slurry_H
47 #define slurry_H
48 
49 #include "mixtureViscosityModel.H"
50 #include "dimensionedScalar.H"
51 #include "volFields.H"
52 
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 
55 namespace Foam
56 {
57 
58 class incompressibleTwoPhaseInteractingMixture;
59 
60 namespace mixtureViscosityModels
61 {
62 
63 /*---------------------------------------------------------------------------*\
64  Class slurry Declaration
65 \*---------------------------------------------------------------------------*/
66 
67 class slurry
68 :
70 {
71 protected:
72 
73  // Protected data
74 
75  //- Slurry phase fraction
76  const volScalarField& alpha_;
77 
78 
79 public:
80 
81  //- Runtime type information
82  TypeName("slurry");
83 
84 
85  // Constructors
86 
87  //- Construct from components
88  slurry
89  (
90  const word& name,
92  const volVectorField& U,
93  const surfaceScalarField& phi,
94  const word modelName=typeName
95  );
96 
97 
98  //- Destructor
99  ~slurry()
100  {}
101 
102 
103  // Member Functions
104 
105  //- Return the mixture viscosity
106  // given the viscosity of the continuous phase
107  tmp<volScalarField> mu(const volScalarField& muc) const;
108 
109  //- Read transportProperties dictionary
110  bool read(const dictionary& viscosityProperties);
111 };
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 } // End namespace mixtureViscosityModels
117 } // End namespace Foam
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 #endif
122 
123 // ************************************************************************* //
volFields.H
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::mixtureViscosityModel
An abstract base class for incompressible mixtureViscosityModels.
Definition: mixtureViscosityModel.H:62
Foam::mixtureViscosityModels::slurry
Thomas' viscosity correction for slurry.
Definition: slurry.H:66
Foam::mixtureViscosityModels::slurry::TypeName
TypeName("slurry")
Runtime type information.
Foam::mixtureViscosityModel::viscosityProperties
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
Definition: mixtureViscosityModel.H:139
Foam::mixtureViscosityModels::slurry::read
bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
mixtureViscosityModel.H
Foam::mixtureViscosityModels::slurry::alpha_
const volScalarField & alpha_
Slurry phase fraction.
Definition: slurry.H:75
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::mixtureViscosityModels::slurry::mu
tmp< volScalarField > mu(const volScalarField &muc) const
Return the mixture viscosity.
dimensionedScalar.H
U
U
Definition: pEqn.H:72
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
Foam::mixtureViscosityModels::slurry::slurry
slurry(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi, const word modelName=typeName)
Construct from components.
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::mixtureViscosityModels::slurry::~slurry
~slurry()
Destructor.
Definition: slurry.H:98