viscosityModel.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) 2011-2015 OpenFOAM Foundation
9 Copyright (C) 2020 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::viscosityModel
29
30Description
31
32SourceFiles
33 viscosityModel.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef viscosityModel_H
38#define viscosityModel_H
39
40#include "dictionary.H"
41#include "volFields.H"
42#include "dimensionedTypes.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49namespace kineticTheoryModels
50{
51
52/*---------------------------------------------------------------------------*\
53 Class viscosityModel Declaration
54\*---------------------------------------------------------------------------*/
55
56class viscosityModel
57{
58protected:
59
60 // Protected Data
61
62 const dictionary& dict_;
63
64
65public:
66
67 //- Runtime type information
68 TypeName("viscosityModel");
69
70 // Declare runtime constructor selection table
72 (
73 autoPtr,
76 (
77 const dictionary& dict
78 ),
79 (dict)
80 );
81
82
83 // Constructors
84
85 //- Construct from components
86 explicit viscosityModel(const dictionary& dict);
87
88
89 // Selectors
92 (
93 const dictionary& dict
94 );
95
96
97 //- Destructor
98 virtual ~viscosityModel() = default;
99
100
101 // Member Functions
103 virtual tmp<volScalarField> nu
104 (
105 const volScalarField& alpha1,
106 const volScalarField& Theta,
107 const volScalarField& g0,
108 const volScalarField& rho1,
109 const volScalarField& da,
110 const dimensionedScalar& e
111 ) const = 0;
113 virtual bool read()
114 {
115 return true;
116 }
117};
118
119
120// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121
122} // End namespace kineticTheoryModels
123} // End namespace Foam
124
125// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126
127#endif
128
129// ************************************************************************* //
const volScalarField & alpha1
volScalarField & rho1
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
virtual tmp< volScalarField > nu(const volScalarField &alpha1, const volScalarField &Theta, const volScalarField &g0, const volScalarField &rho1, const volScalarField &da, const dimensionedScalar &e) const =0
declareRunTimeSelectionTable(autoPtr, viscosityModel, dictionary,(const dictionary &dict),(dict))
static autoPtr< viscosityModel > New(const dictionary &dict)
viscosityModel(const dictionary &dict)
Construct from components.
virtual ~viscosityModel()=default
Destructor.
static autoPtr< viscosityModel > New(const dictionary &dict)
TypeName("viscosityModel")
Runtime type information.
A class for managing temporary objects.
Definition: tmp.H:65
Namespace for OpenFOAM.
volScalarField & nu
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
dictionary dict
volScalarField & e
Definition: createFields.H:11
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73