radialModel.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-2024 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::radialModel
26 
27 SourceFiles
28  radialModel.C
29 
30 \*---------------------------------------------------------------------------*/
31 
32 #ifndef radialModel_H
33 #define radialModel_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 radialModel Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class radialModel
52 {
53  // Private member functions
54 
55  //- Read the coefficients from coeffDict
56  virtual bool readCoeffs(const dictionary& coeffDict)
57  {
58  return true;
59  }
60 
61 
62 public:
63 
64  //- Runtime type information
65  TypeName("radialModel");
66 
67  // Declare runtime constructor selection table
69  (
70  autoPtr,
72  dictionary,
73  (
74  const dictionary& dict
75  ),
76  (dict)
77  );
78 
79 
80  // Constructors
81 
82  //- Construct from the coefficients dictionary
83  radialModel(const dictionary& coeffDict);
84 
85  //- Disallow default bitwise copy construction
86  radialModel(const radialModel&) = delete;
87 
88 
89  // Selectors
90 
92  (
93  const dictionary& dict
94  );
95 
96 
97  //- Destructor
98  virtual ~radialModel();
99 
100 
101  // Member Functions
102 
103  //- Read the coefficients from the optional ".*Coeffs" sub-dictionary
104  // of the given dictionary
105  bool read(const dictionary& dict);
106 
107  //- Radial distribution function
108  virtual tmp<volScalarField> g0
109  (
110  const volScalarField& alpha,
111  const dimensionedScalar& alphaMinFriction,
113  ) const = 0;
114 
115  //- Derivative of the radial distribution function
117  (
118  const volScalarField& alpha,
119  const dimensionedScalar& alphaMinFriction,
121  ) const = 0;
122 
123 
124  // Member Operators
125 
126  //- Disallow default bitwise assignment
127  void operator=(const radialModel&) = delete;
128 };
129 
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 } // End namespace kineticTheoryModels
134 } // End namespace Foam
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 #endif
139 
140 // ************************************************************************* //
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
radialModel(const dictionary &coeffDict)
Construct from the coefficients dictionary.
Definition: radialModel.C:44
void operator=(const radialModel &)=delete
Disallow default bitwise assignment.
virtual tmp< volScalarField > g0(const volScalarField &alpha, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const =0
Radial distribution function.
declareRunTimeSelectionTable(autoPtr, radialModel, dictionary,(const dictionary &dict),(dict))
bool read(const dictionary &dict)
Read the coefficients from the optional ".*Coeffs" sub-dictionary.
Definition: radialModel.C:58
TypeName("radialModel")
Runtime type information.
static autoPtr< radialModel > New(const dictionary &dict)
virtual tmp< volScalarField > g0prime(const volScalarField &alpha, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const =0
Derivative of the radial distribution function.
A class for managing temporary objects.
Definition: tmp.H:55
dimensionedScalar alphaMax(viscosity->lookup("alphaMax"))
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Namespace for OpenFOAM.
Macros to ease declaration of run-time selection tables.
dictionary dict