conductivityModel.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-2018 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::kineticTheoryModels::conductivityModel
29
30SourceFiles
31 conductivityModel.C
32
33\*---------------------------------------------------------------------------*/
34
35#ifndef conductivityModel_H
36#define conductivityModel_H
37
38#include "dictionary.H"
39#include "volFields.H"
40#include "dimensionedTypes.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47namespace kineticTheoryModels
48{
49
50/*---------------------------------------------------------------------------*\
51 Class conductivityModel Declaration
52\*---------------------------------------------------------------------------*/
55{
56protected:
57
58 // Protected Data
60 const dictionary& dict_;
61
62
63public:
64
65 //- Runtime type information
66 TypeName("conductivityModel");
67
68 // Declare runtime constructor selection table
70 (
71 autoPtr,
74 (
75 const dictionary& dict
76 ),
77 (dict)
78 );
79
80
81 // Constructors
82
83 //- Construct from components
84 explicit conductivityModel(const dictionary& dict);
85
86
87 // Selectors
88
90 (
91 const dictionary& dict
92 );
93
94
95 //- Destructor
96 virtual ~conductivityModel() = default;
97
98
99 // Member Functions
102 (
103 const volScalarField& alpha1,
104 const volScalarField& Theta,
105 const volScalarField& g0,
106 const volScalarField& rho1,
107 const volScalarField& da,
108 const dimensionedScalar& e
109 ) const = 0;
111 virtual bool read()
112 {
113 return true;
114 }
115};
116
117
118// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119
120} // End namespace kineticTheoryModels
121} // End namespace Foam
122
123// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124
125#endif
126
127// ************************************************************************* //
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
declareRunTimeSelectionTable(autoPtr, conductivityModel, dictionary,(const dictionary &dict),(dict))
TypeName("conductivityModel")
Runtime type information.
virtual tmp< volScalarField > kappa(const volScalarField &alpha1, const volScalarField &Theta, const volScalarField &g0, const volScalarField &rho1, const volScalarField &da, const dimensionedScalar &e) const =0
virtual ~conductivityModel()=default
Destructor.
static autoPtr< conductivityModel > New(const dictionary &dict)
A class for managing temporary objects.
Definition: tmp.H:65
Namespace for OpenFOAM.
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