HerschelBulkley.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) 2018-2020 OpenFOAM Foundation
9  Copyright (C) 2020 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::laminarModels::generalizedNewtonianViscosityModels::HerschelBulkley
29 
30 Description
31  Herschel-Bulkley generalized Newtonian viscosity model
32 
33 SourceFiles
34  HerschelBulkley.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef HerschelBulkley_H
39 #define HerschelBulkley_H
40 
42 #include "dimensionedScalar.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace laminarModels
49 {
50 namespace generalizedNewtonianViscosityModels
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class HerschelBulkley Declaration
55 \*---------------------------------------------------------------------------*/
56 
57 class HerschelBulkley
58 :
60 {
61  // Private Data
62 
63  dictionary HerschelBulkleyCoeffs_;
64 
66  dimensionedScalar tau0_;
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("HerschelBulkley");
73 
74 
75  // Constructors
76 
77  //- Construct from dictionary (components)
79 
80 
81  //- Destructor
82  virtual ~HerschelBulkley() = default;
83 
84 
85  // Member Functions
86 
87  //- Read transportProperties dictionary
88  virtual bool read(const dictionary& viscosityProperties);
89 
90  //- Return the laminar viscosity
91  virtual tmp<volScalarField> nu
92  (
93  const volScalarField& nu0,
94  const volScalarField& strainRate
95  ) const;
96 };
97 
98 
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100 
101 } // End namespace generalizedNewtonianViscosityModels
102 } // End namespace laminarModels
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
Foam::laminarModels::generalizedNewtonianViscosityModels::HerschelBulkley::read
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Definition: HerschelBulkley.C:76
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::laminarModels::generalizedNewtonianViscosityModels::HerschelBulkley::TypeName
TypeName("HerschelBulkley")
Runtime type information.
Foam::laminarModels::generalizedNewtonianViscosityModels::HerschelBulkley
Herschel-Bulkley generalized Newtonian viscosity model.
Definition: HerschelBulkley.H:56
Foam::laminarModels::generalizedNewtonianViscosityModels::HerschelBulkley::HerschelBulkley
HerschelBulkley(const dictionary &viscosityProperties)
Construct from dictionary (components)
Definition: HerschelBulkley.C:58
Foam::laminarModels::generalizedNewtonianViscosityModels::HerschelBulkley::~HerschelBulkley
virtual ~HerschelBulkley()=default
Destructor.
Foam::laminarModels::generalizedNewtonianViscosityModel::viscosityProperties
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
Definition: generalizedNewtonianViscosityModel.H:129
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
dimensionedScalar.H
Foam::laminarModels::generalizedNewtonianViscosityModel
An abstract base class for generalized Newtonian viscosity models.
Definition: generalizedNewtonianViscosityModel.H:63
Foam::laminarModels::generalizedNewtonianViscosityModels::HerschelBulkley::nu
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
Definition: HerschelBulkley.C:95
Foam::GeometricField< scalar, fvPatchField, volMesh >
generalizedNewtonianViscosityModel.H