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-2023 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 paint using the first form of the model:
54  \verbatim
55  viscosityModel BirdCarreau;
56 
57  nuInf 1e-5;
58  k 10;
59  n 0.5;
60  \endverbatim
61 
62  Example specification for a polymer using the second form of the model:
63  \verbatim
64  viscosityModel BirdCarreau;
65 
66  nuInf 0;
67  tauStar 90;
68  n 0.5;
69  \endverbatim
70 
71  Note the viscosity \c nu0 at zero strain rate is a physical property,
72  generally specified in the physicalProperties file.
73 
74 SourceFiles
75  BirdCarreau.C
76 
77 \*---------------------------------------------------------------------------*/
78 
79 #ifndef BirdCarreau_H
80 #define BirdCarreau_H
81 
83 
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85 
86 namespace Foam
87 {
88 namespace laminarModels
89 {
90 namespace generalisedNewtonianViscosityModels
91 {
92 
93 /*---------------------------------------------------------------------------*\
94  Class BirdCarreau Declaration
95 \*---------------------------------------------------------------------------*/
96 
97 class BirdCarreau
98 :
100 {
101  // Private Data
102 
103  dimensionedScalar nuInf_;
105  dimensionedScalar tauStar_;
108 
109 
110 public:
111 
112  //- Runtime type information
113  TypeName("BirdCarreau");
114 
115 
116  // Constructors
117 
118  //- Construct from components
120  (
121  const dictionary& viscosityProperties,
122  const Foam::viscosity& viscosity,
123  const volVectorField& U
124  );
125 
126 
127  //- Destructor
128  virtual ~BirdCarreau()
129  {}
130 
131 
132  // Member Functions
133 
134  //- Read transportProperties dictionary
135  virtual bool read(const dictionary& viscosityProperties);
136 
137  //- Return the laminar viscosity
138  virtual tmp<volScalarField> nu
139  (
140  const volScalarField& nu0,
142  ) const;
143 };
144 
145 
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 
148 } // End namespace generalisedNewtonianViscosityModels
149 } // End namespace laminarModels
150 } // End namespace Foam
151 
152 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 
154 #endif
155 
156 // ************************************************************************* //
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:99
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.