powerLaw.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::powerLaw
29
30Description
31 Standard power-law generalized Newtonian viscosity model
32
33SourceFiles
34 powerLaw.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef powerLaw_H
39#define powerLaw_H
40
42#include "dimensionedScalar.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48namespace laminarModels
49{
50namespace generalizedNewtonianViscosityModels
51{
52
53/*---------------------------------------------------------------------------*\
54 Class powerLaw Declaration
55\*---------------------------------------------------------------------------*/
57class powerLaw
58:
60{
61 // Private Data
62
63 dictionary powerLawCoeffs_;
64
66 dimensionedScalar nuMin_;
67 dimensionedScalar nuMax_;
68
69
70public:
71
72 //- Runtime type information
73 TypeName("powerLaw");
74
75
76 // Constructors
77
78 //- Construct from components
80
81
82 //- Destructor
83 virtual ~powerLaw() = default;
84
85
86 // Member Functions
87
88 //- Read transportProperties dictionary
89 virtual bool read(const dictionary& viscosityProperties);
90
91 //- Return the laminar viscosity
93 (
94 const volScalarField& nu0,
95 const volScalarField& strainRate
96 ) const;
97};
98
99
100// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101
102} // End namespace generalizedNewtonianViscosityModels
103} // End namespace laminarModels
104} // End namespace Foam
105
106// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107
108#endif
109
110// ************************************************************************* //
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.
Standard power-law generalized Newtonian viscosity model.
Definition: powerLaw.H:59
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Definition: powerLaw.C:72
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