coalCloudList.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) 2012-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #ifndef coalCloudList_H
29 #define coalCloudList_H
30 
31 #include "coalCloud.H"
32 #include "volFieldsFwd.H"
33 #include "fvMatricesFwd.H"
34 
35 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
36 
37 namespace Foam
38 {
39 
40 /*---------------------------------------------------------------------------*\
41  Class coalCloudList Declaration
42 \*---------------------------------------------------------------------------*/
43 
44 class coalCloudList
45 :
46  public PtrList<coalCloud>
47 {
48 private:
49 
50  //- Reference to the mesh
51  const fvMesh& mesh_;
52 
53 
54 public:
55 
56  // Constructor
57 
59  (
60  const volScalarField& rho,
61  const volVectorField& U,
62  const dimensionedVector& g,
63  const SLGThermo& slgThermo
64  );
65 
66 
67  // Member Functions
68 
69  // Evolution
70 
71  //- Evolve the cloud collection
72  void evolve();
73 
74 
75  // Source terms
76 
77  //- Return const reference to momentum source
79 
80  //- Return tmp momentum source term
81  inline tmp<fvVectorMatrix> SU(volVectorField& U) const;
82 
83  //- Sensible enthalpy transfer [J/kg]
85 
86  //- Return sensible enthalpy source term [J/kg/m3/s]
87  inline tmp<fvScalarMatrix> Sh(volScalarField& hs) const;
88 
89 
90  //- Return mass source term for specie i - specie eqn
92  (
93  const label i,
94  volScalarField& Yi
95  ) const;
96 
97  //- Return total mass transfer [kg/m3]
99 
100  //- Return tmp total mass source for carrier phase
101  // - fully explicit
102  inline tmp<volScalarField::Internal> Srho() const;
103 
104  //- Return tmp total mass source for carrier phase specie i
105  // - fully explicit
107  (
108  const label i
109  ) const;
110 
111  //- Return total mass source term [kg/m3/s]
113 };
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace Foam
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 #include "coalCloudListI.H"
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
tmp< volVectorField::Internal > UTrans() const
Return const reference to momentum source.
Forwards and collection of common volume field types.
tmp< volScalarField::Internal > hsTrans() const
Sensible enthalpy transfer [J/kg].
SLGThermo slgThermo(mesh, thermo)
void evolve()
Evolve the cloud collection.
Definition: coalCloudList.C:77
tmp< volScalarField::Internal > rhoTrans() const
Return total mass transfer [kg/m3].
tmp< fvScalarMatrix > SYi(const label i, volScalarField &Yi) const
Return mass source term for specie i - specie eqn.
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package, and provides:
Definition: SLGThermo.H:60
const uniformDimensionedVectorField & g
tmp< volScalarField::Internal > Srho() const
Return tmp total mass source for carrier phase.
Forward declarations of fvMatrix specializations.
U
Definition: pEqn.H:72
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Definition: List.H:55
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
tmp< fvVectorMatrix > SU(volVectorField &U) const
Return tmp momentum source term.
coalCloudList(const volScalarField &rho, const volVectorField &U, const dimensionedVector &g, const SLGThermo &slgThermo)
Definition: coalCloudList.C:27
A class for managing temporary objects.
Definition: HashPtrTable.H:50
Namespace for OpenFOAM.
tmp< fvScalarMatrix > Sh(volScalarField &hs) const
Return sensible enthalpy source term [J/kg/m3/s].