conductivityModel.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) 2011-2020 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::kineticTheoryModels::conductivityModel
26 
27 SourceFiles
28  conductivityModel.C
29 
30 \*---------------------------------------------------------------------------*/
31 
32 #ifndef conductivityModel_H
33 #define conductivityModel_H
34 
35 #include "dictionary.H"
36 #include "volFields.H"
37 #include "dimensionedTypes.H"
38 #include "runTimeSelectionTables.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace kineticTheoryModels
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class conductivityModel Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 {
53 protected:
54 
55  // Protected data
56 
57  const dictionary& dict_;
58 
59 
60 public:
61 
62  //- Runtime type information
63  TypeName("conductivityModel");
64 
65  // Declare runtime constructor selection table
67  (
68  autoPtr,
70  dictionary,
71  (
72  const dictionary& dict
73  ),
74  (dict)
75  );
76 
77 
78  // Constructors
79 
80  //- Construct from components
81  conductivityModel(const dictionary& dict);
82 
83  //- Disallow default bitwise copy construction
84  conductivityModel(const conductivityModel&) = delete;
85 
86 
87  // Selectors
88 
90  (
91  const dictionary& dict
92  );
93 
94 
95  //- Destructor
96  virtual ~conductivityModel();
97 
98 
99  // Member Functions
100 
101  virtual tmp<volScalarField> kappa
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  // Member Operators
118 
119  //- Disallow default bitwise assignment
120  void operator=(const conductivityModel&) = delete;
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace kineticTheoryModels
127 } // End namespace Foam
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 #endif
132 
133 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
declareRunTimeSelectionTable(autoPtr, conductivityModel, dictionary,(const dictionary &dict),(dict))
virtual tmp< volScalarField > kappa(const volScalarField &alpha1, const volScalarField &Theta, const volScalarField &g0, const volScalarField &rho1, const volScalarField &da, const dimensionedScalar &e) const =0
static autoPtr< conductivityModel > New(const dictionary &dict)
volScalarField & alpha1(mixture.alpha1())
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
const doubleScalar e
Elementary charge.
Definition: doubleScalar.H:105
Macros to ease declaration of run-time selection tables.
void operator=(const conductivityModel &)=delete
Disallow default bitwise assignment.
A class for managing temporary objects.
Definition: PtrList.H:53
const dimensionedScalar & rho1
Definition: createFields.H:43
conductivityModel(const dictionary &dict)
Construct from components.
Namespace for OpenFOAM.
TypeName("conductivityModel")
Runtime type information.