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 -------------------------------------------------------------------------------
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::powerLaw
29 
30 Description
31  Standard power-law generalized Newtonian viscosity model
32 
33 SourceFiles
34  powerLaw.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef powerLaw_H
39 #define powerLaw_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 powerLaw Declaration
55 \*---------------------------------------------------------------------------*/
56 
57 class powerLaw
58 :
60 {
61  // Private Data
62 
63  dictionary powerLawCoeffs_;
64 
66  dimensionedScalar nuMin_;
67  dimensionedScalar nuMax_;
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName("powerLaw");
74 
75 
76  // Constructors
77 
78  //- Construct from components
79  explicit powerLaw(const dictionary& viscosityProperties);
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
92  virtual tmp<volScalarField> nu
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 // ************************************************************************* //
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::laminarModels::generalizedNewtonianViscosityModels::powerLaw
Standard power-law generalized Newtonian viscosity model.
Definition: powerLaw.H:56
Foam::laminarModels::generalizedNewtonianViscosityModels::powerLaw::powerLaw
powerLaw(const dictionary &viscosityProperties)
Construct from components.
Definition: powerLaw.C:57
Foam::laminarModels::generalizedNewtonianViscosityModels::powerLaw::read
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Definition: powerLaw.C:72
Foam::laminarModels::generalizedNewtonianViscosityModel::viscosityProperties
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
Definition: generalizedNewtonianViscosityModel.H:129
Foam::laminarModels::generalizedNewtonianViscosityModels::powerLaw::TypeName
TypeName("powerLaw")
Runtime type information.
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::powerLaw::nu
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
Definition: powerLaw.C:91
Foam::laminarModels::generalizedNewtonianViscosityModels::powerLaw::~powerLaw
virtual ~powerLaw()=default
Destructor.
Foam::GeometricField< scalar, fvPatchField, volMesh >
generalizedNewtonianViscosityModel.H