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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::laminarModels::generalizedNewtonianViscosityModels::Casson
28
29Description
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
55SourceFiles
56 Casson.C
57
58\*---------------------------------------------------------------------------*/
59
60#ifndef Casson_H
61#define Casson_H
62
64#include "dimensionedScalar.H"
65
66// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67
68namespace Foam
69{
70namespace laminarModels
71{
72namespace generalizedNewtonianViscosityModels
73{
74
75
76/*---------------------------------------------------------------------------*\
77 Class Casson Declaration
78\*---------------------------------------------------------------------------*/
80class Casson
81:
83{
84 // Private Data
85
88 dimensionedScalar nuMin_;
89 dimensionedScalar nuMax_;
90
91
92public:
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// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
An abstract base class for generalized Newtonian viscosity models.
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
Casson generalized Newtonian viscosity model.
Definition: Casson.H:82
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Definition: Casson.C:71
A class for managing temporary objects.
Definition: tmp.H:65
Namespace for OpenFOAM.
volScalarField & nu
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73