granularPressureModel.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::granularPressureModel
26 
27 SourceFiles
28  granularPressureModel.C
29 
30 \*---------------------------------------------------------------------------*/
31 
32 #ifndef granularPressureModel_H
33 #define granularPressureModel_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 granularPressureModel 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("granularPressureModel");
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  granularPressureModel(const dictionary& dict);
82 
83  //- Disallow default bitwise copy construction
85 
86 
87  // Selectors
88 
90  (
91  const dictionary& dict
92  );
93 
94 
95  //- Destructor
96  virtual ~granularPressureModel();
97 
98 
99  // Member Functions
100 
101  //- Granular pressure coefficient
103  (
104  const volScalarField& alpha1,
105  const volScalarField& g0,
106  const volScalarField& rho1,
107  const dimensionedScalar& e
108  ) const = 0;
109 
110  //- Derivative of the granular pressure coefficient
112  (
113  const volScalarField& alpha1,
114  const volScalarField& g0,
115  const volScalarField& g0prime,
116  const volScalarField& rho1,
117  const dimensionedScalar& e
118  ) const = 0;
120  virtual bool read()
121  {
122  return true;
123  }
124 
125 
126  // Member Operators
127 
128  //- Disallow default bitwise assignment
129  void operator=(const granularPressureModel&) = delete;
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace kineticTheoryModels
136 } // End namespace Foam
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 #endif
141 
142 // ************************************************************************* //
dictionary dict
declareRunTimeSelectionTable(autoPtr, granularPressureModel, dictionary,(const dictionary &dict),(dict))
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
virtual tmp< volScalarField > granularPressureCoeffPrime(const volScalarField &alpha1, const volScalarField &g0, const volScalarField &g0prime, const volScalarField &rho1, const dimensionedScalar &e) const =0
Derivative of the granular pressure coefficient.
TypeName("granularPressureModel")
Runtime type information.
virtual tmp< volScalarField > granularPressureCoeff(const volScalarField &alpha1, const volScalarField &g0, const volScalarField &rho1, const dimensionedScalar &e) const =0
Granular pressure coefficient.
volScalarField & alpha1(mixture.alpha1())
granularPressureModel(const dictionary &dict)
Construct from components.
static autoPtr< granularPressureModel > New(const dictionary &dict)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
void operator=(const granularPressureModel &)=delete
Disallow default bitwise assignment.
const doubleScalar e
Elementary charge.
Definition: doubleScalar.H:105
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
Definition: PtrList.H:53
const dimensionedScalar & rho1
Definition: createFields.H:43
Namespace for OpenFOAM.