BirdCarreau.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-2022 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::generalisedNewtonianViscosityModels::BirdCarreau
26 
27 Description
28  Bird-Carreau generalised Newtonian viscosity model
29 
30  The Bird-Carreau-Yasuda form is also supported if the optional \c a
31  coefficient is specified. \c a defaults to 2 for the Bird-Carreau model.
32 
33  The coefficient applied to strain rate \f$\gamma\f$ can be specified either
34  as the constant \c k or the critical stress level at the transition to
35  shear thinning \c tauStar if \c tauStar is provided:
36 
37  Kinematic viscosity [m^2/s]
38 
39  \f[
40  \nu = \nu_\infty\,
41  + (\nu_0 - \nu_\infty)\,
42  \left(1 + (k\gamma)^a \right)^{(n - 1)/a}
43  \f]
44 
45  or
46 
47  \f[
48  \nu = \nu_\infty
49  + (\nu_0 - \nu_\infty)
50  \left(1 + (\frac{\nu_0\gamma}{\tau^*} )^a \right)^{(n - 1)/a}
51  \f]
52 
53  Example specification for a polymer:
54  \verbatim
55  viscosityModel BirdCarreau;
56 
57  nuInf 0;
58  tauStar 90;
59  n 0.5;
60  \endverbatim
61 
62  Note the viscosity \c nu0 at zero strain rate is a physical property,
63  generally specified in the physicalProperties file.
64 
65 SourceFiles
66  BirdCarreau.C
67 
68 \*---------------------------------------------------------------------------*/
69 
70 #ifndef BirdCarreau_H
71 #define BirdCarreau_H
72 
74 
75 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
76 
77 namespace Foam
78 {
79 namespace laminarModels
80 {
81 namespace generalisedNewtonianViscosityModels
82 {
83 
84 /*---------------------------------------------------------------------------*\
85  Class BirdCarreau Declaration
86 \*---------------------------------------------------------------------------*/
87 
88 class BirdCarreau
89 :
91 {
92  // Private Data
93 
94  dimensionedScalar nuInf_;
96  dimensionedScalar tauStar_;
99 
100 
101 public:
102 
103  //- Runtime type information
104  TypeName("BirdCarreau");
105 
106 
107  // Constructors
108 
109  //- Construct from components
111  (
112  const dictionary& viscosityProperties,
113  const Foam::viscosity& viscosity,
114  const volVectorField& U
115  );
116 
117 
118  //- Destructor
119  virtual ~BirdCarreau()
120  {}
121 
122 
123  // Member Functions
124 
125  //- Read transportProperties dictionary
126  virtual bool read(const dictionary& viscosityProperties);
127 
128  //- Return the laminar viscosity
129  virtual tmp<volScalarField> nu
130  (
131  const volScalarField& nu0,
133  ) const;
134 };
135 
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 } // End namespace generalisedNewtonianViscosityModels
140 } // End namespace laminarModels
141 } // End namespace Foam
142 
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 
145 #endif
146 
147 // ************************************************************************* //
Generic GeometricField class.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Bird-Carreau generalised Newtonian viscosity model.
Definition: BirdCarreau.H:90
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Definition: BirdCarreau.C:75
BirdCarreau(const dictionary &viscosityProperties, const Foam::viscosity &viscosity, const volVectorField &U)
Construct from components.
Definition: BirdCarreau.C:53
An abstract base class for strain-rate dependent generalised Newtonian viscosity models.
virtual tmp< volScalarField > strainRate() const
Return the strain-rate obtained from the velocity field.
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
A class for managing temporary objects.
Definition: tmp.H:55
Abstract base class for all fluid physical properties.
Definition: viscosity.H:50
U
Definition: pEqn.H:72
Namespace for OpenFOAM.