All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 #include "dimensionedScalar.H"
63 
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 
66 namespace Foam
67 {
68 namespace laminarModels
69 {
70 namespace generalisedNewtonianViscosityModels
71 {
72 
73 
74 /*---------------------------------------------------------------------------*\
75  Class Casson Declaration
76 \*---------------------------------------------------------------------------*/
77 
78 class Casson
79 :
81 {
82  // Private Data
83 
85  dimensionedScalar tau0_;
86  dimensionedScalar nuMin_;
87  dimensionedScalar nuMax_;
88 
89 
90 public:
91 
92  //- Runtime type information
93  TypeName("Casson");
94 
95 
96  // Constructors
97 
98  //- Construct from components
100 
101 
102  //- Destructor
103  virtual ~Casson()
104  {}
105 
106 
107  // Member Functions
108 
109  //- Read transportProperties dictionary
110  virtual bool read(const dictionary& viscosityProperties);
111 
112  //- Return the laminar viscosity
113  virtual tmp<volScalarField> nu
114  (
115  const volScalarField& nu0,
116  const volScalarField& strainRate
117  ) const;
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace generalisedNewtonianViscosityModels
124 } // End namespace laminarModels
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Definition: Casson.C:70
Casson generalised Newtonian viscosity model.
Definition: Casson.H:77
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
Casson(const dictionary &viscosityProperties)
Construct from components.
Definition: Casson.C:53
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
An abstract base class for generalised Newtonian viscosity models.
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
Definition: Casson.C:91
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.