HerschelBulkley.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) 2018-2022 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::laminarModels::generalisedNewtonianViscosityModels::HerschelBulkley
26 
27 Description
28  Herschel-Bulkley generalised Newtonian viscosity model
29 
30  The Herschel-Bulkley model combines the effects of a Bingham plastic
31  and power-law behaviour of a fluid. At a low strain rate \f$\gamma\f$
32  the fluid adopts a viscosity \f$\nu_0\f$. Beyond a threshold stress
33  \f$\tau_0\f$, the viscosity is described as a power law.
34 
35  Kinematic viscosity [m^2/s]
36 
37  \f[
38  \nu = \min(\nu_0, \tau_0/\gamma + k\gamma^{n - 1})
39  \f]
40 
41  Example specification:
42  \verbatim
43  viscosityModel HerschelBulkley;
44 
45  tau0 0.01;
46  k 0.001;
47  n 0.2;
48  \endverbatim
49 
50  Note the viscosity \c nu0 at zero strain rate is a physical property,
51  generally specified in the physicalProperties file.
52 
53 SourceFiles
54  HerschelBulkley.C
55 
56 \*---------------------------------------------------------------------------*/
57 
58 #ifndef HerschelBulkley_H
59 #define HerschelBulkley_H
60 
62 
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64 
65 namespace Foam
66 {
67 namespace laminarModels
68 {
69 namespace generalisedNewtonianViscosityModels
70 {
71 
72 /*---------------------------------------------------------------------------*\
73  Class HerschelBulkley Declaration
74 \*---------------------------------------------------------------------------*/
75 
76 class HerschelBulkley
77 :
79 {
80  // Private Data
81 
84  dimensionedScalar tau0_;
85 
86 
87 public:
88 
89  //- Runtime type information
90  TypeName("HerschelBulkley");
91 
92 
93  // Constructors
94 
95  //- Construct from components
97  (
98  const dictionary& viscosityProperties,
100  const volVectorField& U
101  );
102 
103 
104  //- Destructor
105  virtual ~HerschelBulkley()
106  {}
107 
108 
109  // Member Functions
110 
111  //- Read transportProperties dictionary
112  virtual bool read(const dictionary& viscosityProperties);
113 
114  //- Return the laminar viscosity
115  virtual tmp<volScalarField> nu
116  (
117  const volScalarField& nu0,
119  ) const;
120 };
121 
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 } // End namespace generalisedNewtonianViscosityModels
126 } // End namespace laminarModels
127 } // End namespace Foam
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 #endif
132 
133 // ************************************************************************* //
U
Definition: pEqn.H:72
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
HerschelBulkley(const dictionary &viscosityProperties, const Foam::viscosity &viscosity, const volVectorField &U)
Construct from components.
virtual tmp< volScalarField > strainRate() const
Return the strain-rate obtained from the velocity field.
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Herschel-Bulkley generalised Newtonian viscosity model.
An abstract base class for strain-rate dependent generalised Newtonian viscosity models.
Abstract base class for all fluid physical properties.
Definition: viscosity.H:49
A class for managing temporary objects.
Definition: PtrList.H:53
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
Namespace for OpenFOAM.