Casson.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2018-2020 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::laminarModels::generalizedNewtonianViscosityModels::Casson
28 
29 Description
30  Casson generalized Newtonian viscosity model
31 
32  References:
33  \verbatim
34  Casson, N. (1959).
35  Rheology of disperse systems.
36  In Proceedings of a Conference Organized by the
37  British Society of Rheology.
38  Pergamon Press, New York.
39 
40  Fournier, R. L. (2011).
41  Basic transport phenomena in biomedical engineering.
42  CRC Press.
43  \endverbatim
44 
45  Example specification for blood:
46  \verbatim
47  viscosityModel Casson;
48 
49  m 3.934986e-6;
50  tau0 2.9032e-6;
51  nuMax 13.3333e-6;
52  nuMin 3.9047e-6;
53  \endverbatim
54 
55 SourceFiles
56  Casson.C
57 
58 \*---------------------------------------------------------------------------*/
59 
60 #ifndef Casson_H
61 #define Casson_H
62 
64 #include "dimensionedScalar.H"
65 
66 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67 
68 namespace Foam
69 {
70 namespace laminarModels
71 {
72 namespace generalizedNewtonianViscosityModels
73 {
74 
75 
76 /*---------------------------------------------------------------------------*\
77  Class Casson Declaration
78 \*---------------------------------------------------------------------------*/
79 
80 class Casson
81 :
83 {
84  // Private Data
85 
87  dimensionedScalar tau0_;
88  dimensionedScalar nuMin_;
89  dimensionedScalar nuMax_;
90 
91 
92 public:
93 
94  //- Runtime type information
95  TypeName("Casson");
96 
97 
98  // Constructors
99 
100  //- Construct from dictionary (components)
101  explicit Casson(const dictionary& viscosityProperties);
102 
103 
104  //- Destructor
105  virtual ~Casson() = default;
106 
107 
108  // Member Functions
109 
110  //- Read transportProperties dictionary
111  virtual bool read(const dictionary& viscosityProperties);
112 
113  //- Return the laminar viscosity
114  virtual tmp<volScalarField> nu
115  (
116  const volScalarField& nu0,
117  const volScalarField& strainRate
118  ) const;
119 };
120 
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 } // End namespace generalizedNewtonianViscosityModels
125 } // End namespace laminarModels
126 } // End namespace Foam
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #endif
131 
132 // ************************************************************************* //
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::laminarModels::generalizedNewtonianViscosityModels::Casson
Casson generalized Newtonian viscosity model.
Definition: Casson.H:79
Foam::laminarModels::generalizedNewtonianViscosityModels::Casson::TypeName
TypeName("Casson")
Runtime type information.
Foam::laminarModels::generalizedNewtonianViscosityModels::Casson::Casson
Casson(const dictionary &viscosityProperties)
Construct from dictionary (components)
Definition: Casson.C:56
Foam::laminarModels::generalizedNewtonianViscosityModel::viscosityProperties
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
Definition: generalizedNewtonianViscosityModel.H:129
Foam::laminarModels::generalizedNewtonianViscosityModels::Casson::~Casson
virtual ~Casson()=default
Destructor.
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
dimensionedScalar.H
Foam::laminarModels::generalizedNewtonianViscosityModel
An abstract base class for generalized Newtonian viscosity models.
Definition: generalizedNewtonianViscosityModel.H:63
Foam::laminarModels::generalizedNewtonianViscosityModels::Casson::read
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Definition: Casson.C:71
Foam::laminarModels::generalizedNewtonianViscosityModels::Casson::nu
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
Definition: Casson.C:92
Foam::GeometricField< scalar, fvPatchField, volMesh >
generalizedNewtonianViscosityModel.H