noSintering.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-2023 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 "noSintering.H"
28 #include "fvmSup.H"
29 
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 namespace diameterModels
35 {
36 namespace shapeModels
37 {
38 namespace sinteringModels
39 {
42 }
43 }
44 }
45 }
46 
47 
48 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
49 
51 (
52  const dictionary& dict,
53  const fractal& fractalShape
54 )
55 :
56  sinteringModel(dict, fractalShape)
57 {}
58 
59 
60 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
61 
63 {}
64 
65 
66 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
67 
70 {
71  const sizeGroup& fi = fractal_.SizeGroup();
72 
74  (
75  IOobject
76  (
77  typedName("R"),
78  fi.time().name(),
79  fi.mesh()
80  ),
81  fi.mesh(),
83  );
84 
85  return fvm::Su(R, fractal_.fld());
86 }
87 
88 
89 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const Mesh & mesh() const
Return mesh.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:99
const Time & time() const
Return time.
Definition: IOobject.C:318
Class for modelling the shape of particle aggregates using the concept of fractal geometry....
Definition: fractal.H:106
Abstract base class for modelling sintering of primary particles in fractal aggregates.
virtual tmp< fvScalarMatrix > R() const
Sintering source term.
Definition: noSintering.C:69
noSintering(const dictionary &dict, const fractal &fractalShape)
Construct from a dictionary and a fractal shape model.
Definition: noSintering.C:51
Single size class fraction field representing a fixed particle volume as defined by the user through ...
Definition: sizeGroup.H:102
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
const word & name() const
Return const reference to name.
A class for managing temporary objects.
Definition: tmp.H:55
Calculate the matrix for implicit and explicit sources.
addToRunTimeSelectionTable(sinteringModel, KochFriedlander, dictionary)
tmp< fvMatrix< Type > > Su(const DimensionedField< Type, volMesh > &, const VolField< Type > &)
Namespace for OpenFOAM.
const dimensionSet dimLength
const dimensionSet dimTime
word typedName(Name name)
Return the name of the object within the given type.
Definition: typeInfo.H:149
static scalar R(const scalar a, const scalar x)
Definition: invIncGamma.C:102
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
dictionary dict