radialModel.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 -------------------------------------------------------------------------------
11 License
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 
27 Class
28  Foam::kineticTheoryModels::radialModel
29 
30 SourceFiles
31  radialModel.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef radialModel_H
36 #define radialModel_H
37 
38 #include "dictionary.H"
39 #include "volFields.H"
40 #include "dimensionedTypes.H"
41 #include "runTimeSelectionTables.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace kineticTheoryModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class radialModel Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class radialModel
55 {
56 protected:
57 
58  // Protected Data
59 
60  const dictionary& dict_;
61 
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("radialModel");
67 
68  // Declare runtime constructor selection table
70  (
71  autoPtr,
73  dictionary,
74  (
75  const dictionary& dict
76  ),
77  (dict)
78  );
79 
80 
81  // Constructors
82 
83  //- Construct from components
84  explicit radialModel(const dictionary& dict);
85 
86 
87  // Selectors
88 
90  (
91  const dictionary& dict
92  );
93 
94 
95  //- Destructor
96  virtual ~radialModel() = default;
97 
98 
99  // Member Functions
100 
101  //- Radial distribution function
102  virtual tmp<volScalarField> g0
103  (
104  const volScalarField& alpha,
105  const dimensionedScalar& alphaMinFriction,
107  ) const = 0;
108 
109  //- Derivative of the radial distribution function
111  (
112  const volScalarField& alpha,
113  const dimensionedScalar& alphaMinFriction,
115  ) const = 0;
116 
117  virtual bool read()
118  {
119  return true;
120  }
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace kineticTheoryModels
127 } // End namespace Foam
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 #endif
132 
133 // ************************************************************************* //
volFields.H
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:212
Foam::kineticTheoryModels::radialModel::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, radialModel, dictionary,(const dictionary &dict),(dict))
Foam::kineticTheoryModels::radialModel::TypeName
TypeName("radialModel")
Runtime type information.
Foam::kineticTheoryModels::radialModel::g0
virtual tmp< volScalarField > g0(const volScalarField &alpha, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const =0
Radial distribution function.
Foam::kineticTheoryModels::radialModel::read
virtual bool read()
Definition: radialModel.H:116
Foam::kineticTheoryModels::radialModel::New
static autoPtr< radialModel > New(const dictionary &dict)
Definition: radialModel.C:58
alphaMax
dimensionedScalar alphaMax("alphaMax", dimless/dimTime, laminarTransport)
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::kineticTheoryModels::radialModel
Definition: radialModel.H:53
Foam::kineticTheoryModels::radialModel::dict_
const dictionary & dict_
Definition: radialModel.H:59
Foam::kineticTheoryModels::radialModel::g0prime
virtual tmp< volScalarField > g0prime(const volScalarField &alpha, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const =0
Derivative of the radial distribution function.
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::kineticTheoryModels::radialModel::~radialModel
virtual ~radialModel()=default
Destructor.
runTimeSelectionTables.H
Macros to ease declaration of run-time selection tables.
dictionary.H
dimensionedTypes.H
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::kineticTheoryModels::radialModel::radialModel
radialModel(const dictionary &dict)
Construct from components.
Definition: radialModel.C:46