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-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 \*---------------------------------------------------------------------------*/
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 {
40  defineTypeNameAndDebug(noSintering, 0);
41  addToRunTimeSelectionTable(sinteringModel, noSintering, dictionary);
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  "noSintering:R",
78  fi.time().timeName(),
79  fi.mesh()
80  ),
81  fi.mesh(),
83  );
84 
85  return fvm::Su(R, fractal_.fld());
86 }
87 
88 
89 // ************************************************************************* //
dictionary dict
tmp< fvMatrix< Type > > Su(const DimensionedField< Type, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
noSintering(const dictionary &dict, const fractal &fractalShape)
Construct from a dictionary.
virtual const volScalarField & fld() const
Return reference to secondary property field.
DimensionedField< scalar, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
Macros for easy insertion into run-time selection tables.
const dimensionSet dimLength
const dimensionSet dimTime
const dimensionSet dimDensity
const sizeGroup & SizeGroup() const
Return reference to size group.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual tmp< fvScalarMatrix > R() const
Sintering source term.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual tmp< fvScalarMatrix > R() const
Sintering source term.
A class for managing temporary objects.
Definition: PtrList.H:53
const fractal & fractal_
Reference to fractal shapeModel class.
Calculate the matrix for implicit and explicit sources.
Namespace for OpenFOAM.