Casson.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-2021 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::Casson
26 
27 Description
28  Casson generalised Newtonian viscosity model
29 
30  References:
31  \verbatim
32  Casson, N. (1959).
33  Rheology of disperse systems.
34  In Proceedings of a Conference Organised by the
35  British Society of Rheology.
36  Pergamon Press, New York.
37 
38  Fournier, R. L. (2011).
39  Basic transport phenomena in biomedical engineering.
40  CRC Press.
41  \endverbatim
42 
43  Example specification for blood:
44  \verbatim
45  viscosityModel Casson;
46 
47  m 3.934986e-6;
48  tau0 2.9032e-6;
49  nuMax 13.3333e-6;
50  nuMin 3.9047e-6;
51  \endverbatim
52 
53 SourceFiles
54  Casson.C
55 
56 \*---------------------------------------------------------------------------*/
57 
58 #ifndef Casson_H
59 #define Casson_H
60 
62 
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64 
65 namespace Foam
66 {
67 namespace laminarModels
68 {
69 namespace generalisedNewtonianViscosityModels
70 {
71 
72 /*---------------------------------------------------------------------------*\
73  Class Casson Declaration
74 \*---------------------------------------------------------------------------*/
75 
76 class Casson
77 :
79 {
80  // Private Data
81 
83  dimensionedScalar tau0_;
84  dimensionedScalar nuMin_;
85  dimensionedScalar nuMax_;
86 
87 
88 public:
89 
90  //- Runtime type information
91  TypeName("Casson");
92 
93 
94  // Constructors
95 
96  //- Construct from components
97  Casson
98  (
99  const dictionary& viscosityProperties,
100  const Foam::viscosity& viscosity,
101  const volVectorField& U
102  );
103 
104 
105  //- Destructor
106  virtual ~Casson()
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,
120  ) const;
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace generalisedNewtonianViscosityModels
127 } // End namespace laminarModels
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Definition: Casson.C:72
Casson generalised Newtonian viscosity model.
Definition: Casson.H:75
U
Definition: pEqn.H:72
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual tmp< volScalarField > strainRate() const
Return the strain-rate obtained from the velocity field.
Casson(const dictionary &viscosityProperties, const Foam::viscosity &viscosity, const volVectorField &U)
Construct from components.
Definition: Casson.C:52
An abstract base class for strain-rate dependent generalised Newtonian viscosity models.
Abstract base class for all fluid physical properties.
Definition: viscosity.H:49
A class for managing temporary objects.
Definition: PtrList.H:53
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
Namespace for OpenFOAM.