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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::laminarModels::generalizedNewtonianViscosityModels::HerschelBulkley
29
30Description
31 Herschel-Bulkley generalized Newtonian viscosity model
32
33SourceFiles
34 HerschelBulkley.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef HerschelBulkley_H
39#define HerschelBulkley_H
40
42#include "dimensionedScalar.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48namespace laminarModels
49{
50namespace generalizedNewtonianViscosityModels
51{
52
53/*---------------------------------------------------------------------------*\
54 Class HerschelBulkley Declaration
55\*---------------------------------------------------------------------------*/
58:
60{
61 // Private Data
62
63 dictionary HerschelBulkleyCoeffs_;
64
67
68
69public:
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
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// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
An abstract base class for generalized Newtonian viscosity models.
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
Herschel-Bulkley generalized Newtonian viscosity model.
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
A class for managing temporary objects.
Definition: tmp.H:65
Namespace for OpenFOAM.
volScalarField & nu
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73