spherical.C
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) 2019-2021 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 \*---------------------------------------------------------------------------*/
25 
26 #include "spherical.H"
28 #include "mathematicalConstants.H"
29 
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 namespace diameterModels
35 {
36 namespace shapeModels
37 {
38  defineTypeNameAndDebug(spherical, 0);
40  (
41  shapeModel,
42  spherical,
43  dictionary
44  );
45 }
46 }
47 }
48 
50 
51 
52 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
53 
56 (
57  const dictionary& dict,
58  const sizeGroup& group
59 )
60 :
61  shapeModel(dict, group)
62 {}
63 
64 
65 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
66 
68 {}
69 
70 
71 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
72 
75 {
76  return tmp<volScalarField>
77  (
79  (
80  "a",
81  sizeGroup_.mesh(),
83  )
84  );
85 }
86 
87 
90 {
91  return tmp<volScalarField>
92  (
94  );
95 }
96 
97 
98 // ************************************************************************* //
const char *const group
Group name for atomic constants.
dictionary dict
const dimensionedScalar & x() const
Return representative volume of the sizeGroup.
Definition: sizeGroupI.H:57
const dimensionedScalar & dSph() const
Return representative spherical diameter of the sizeGroup.
Definition: sizeGroupI.H:50
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
virtual const tmp< volScalarField > a() const
Return representative surface area of the sizeGroup.
virtual const tmp< volScalarField > d() const
Return representative diameter of the sizeGroup.
Macros for easy insertion into run-time selection tables.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const Mesh & mesh() const
Return mesh.
const sizeGroup & sizeGroup_
Reference to sizeGroup.
Definition: shapeModel.H:64
defineTypeNameAndDebug(combustionModel, 0)
A class for managing temporary objects.
Definition: PtrList.H:53
spherical(const dictionary &dict, const sizeGroup &group)
Construct from dictionary and sizeGroup.
Namespace for OpenFOAM.