CrossPowerLaw.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-2020 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::generalizedNewtonianViscosityModels::CrossPowerLaw
26 
27 Description
28  Cross-Power law generalized Newtonian viscosity model
29 
30  The strain rate coefficient can be specified either as the constant \c m or
31  the critical stress level at the transition to shear thinning \c
32  tauStar if \c tauStar is provided:
33 
34  Kinematic viscosity [m^2/s]
35 
36  \f[
37  \nu = \nu_\infty + \frac{(\nu_0 - \nu_\infty)}{1 + (m\gamma)^n}
38  \f]
39 
40  or
41 
42  \f[
43  \nu = \nu_\infty
44  + \frac{(\nu_0 - \nu_\infty)}
45  {1 + \left(\frac{\nu_0\gamma}{\tau^*}\right)^n}
46  \f]
47 
48  Example specification:
49  \verbatim
50  viscosityModel CrossPowerLaw;
51 
52  nuInf 10;
53  m 0.4;
54  n 3;
55  \endverbatim
56 
57 SourceFiles
58  CrossPowerLaw.C
59 
60 \*---------------------------------------------------------------------------*/
61 
62 #ifndef CrossPowerLaw_H
63 #define CrossPowerLaw_H
64 
66 #include "dimensionedScalar.H"
67 
68 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
69 
70 namespace Foam
71 {
72 namespace laminarModels
73 {
74 namespace generalizedNewtonianViscosityModels
75 {
76 
77 /*---------------------------------------------------------------------------*\
78  Class CrossPowerLaw Declaration
79 \*---------------------------------------------------------------------------*/
80 
81 class CrossPowerLaw
82 :
84 {
85  // Private Data
86 
87  dimensionedScalar nuInf_;
89  dimensionedScalar tauStar_;
91 
92 
93 public:
94 
95  //- Runtime type information
96  TypeName("CrossPowerLaw");
97 
98 
99  // Constructors
100 
101  //- Construct from components
103 
104 
105  //- Destructor
106  virtual ~CrossPowerLaw()
107  {}
108 
109 
110  // Member Functions
111 
112  //- Read transportProperties dictionary
113  virtual bool read(const dictionary& viscosityProperties);
114 
115  //- Return the laminar viscosity
116  virtual tmp<volScalarField> nu
117  (
118  const volScalarField& nu0,
119  const volScalarField& strainRate
120  ) const;
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace generalizedNewtonianViscosityModels
127 } // End namespace laminarModels
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
An abstract base class for generalized Newtonian viscosity models.
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Definition: CrossPowerLaw.C:73
CrossPowerLaw(const dictionary &viscosityProperties)
Construct from components.
Definition: CrossPowerLaw.C:55
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
Cross-Power law generalized Newtonian viscosity model.
Definition: CrossPowerLaw.H:80
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.