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-2021 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 SourceFiles
31  HerschelBulkley.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef HerschelBulkley_H
36 #define HerschelBulkley_H
37 
39 #include "dimensionedScalar.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace laminarModels
46 {
47 namespace generalisedNewtonianViscosityModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class HerschelBulkley Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class HerschelBulkley
55 :
57 {
58  // Private Data
59 
62  dimensionedScalar tau0_;
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("HerschelBulkley");
69 
70 
71  // Constructors
72 
73  //- Construct from components
75 
76 
77  //- Destructor
78  virtual ~HerschelBulkley()
79  {}
80 
81 
82  // Member Functions
83 
84  //- Read transportProperties dictionary
85  virtual bool read(const dictionary& viscosityProperties);
86 
87  //- Return the laminar viscosity
88  virtual tmp<volScalarField> nu
89  (
90  const volScalarField& nu0,
91  const volScalarField& strainRate
92  ) const;
93 };
94 
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 } // End namespace generalisedNewtonianViscosityModels
99 } // End namespace laminarModels
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Herschel-Bulkley generalised Newtonian viscosity model.
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
An abstract base class for generalised Newtonian viscosity models.
A class for managing temporary objects.
Definition: PtrList.H:53
HerschelBulkley(const dictionary &viscosityProperties)
Construct from components.
Namespace for OpenFOAM.