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 
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 // ************************************************************************* //
volFieldsFwd.H
coalCloudListI.H
Foam::SLGThermo
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package,...
Definition: SLGThermo.H:64
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
fvMatricesFwd.H
Forward declarations of fvMatrix specializations.
rho
rho
Definition: readInitialConditions.H:88
Foam::coalCloudList::UTrans
tmp< volVectorField::Internal > UTrans() const
Return const reference to momentum source.
Definition: coalCloudListI.H:33
Foam::coalCloudList::Srho
tmp< volScalarField::Internal > Srho() const
Return tmp total mass source for carrier phase.
Definition: coalCloudListI.H:183
Foam::PtrList
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: List.H:59
coalCloud.H
Foam::coalCloudList::hsTrans
tmp< volScalarField::Internal > hsTrans() const
Sensible enthalpy transfer [J/kg].
Definition: coalCloudListI.H:81
Foam::dimensioned< vector >
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
g
const uniformDimensionedVectorField & g
Definition: createFluidFields.H:26
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
U
U
Definition: pEqn.H:72
Foam::coalCloudList::evolve
void evolve()
Evolve the cloud collection.
Definition: coalCloudList.C:84
slgThermo
SLGThermo slgThermo(mesh, thermo)
Foam::coalCloudList::rhoTrans
tmp< volScalarField::Internal > rhoTrans() const
Return total mass transfer [kg/m3].
Definition: coalCloudListI.H:147
Foam::coalCloudList::SYi
tmp< fvScalarMatrix > SYi(const label i, volScalarField &Yi) const
Return mass source term for specie i - specie eqn.
Definition: coalCloudListI.H:129
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::coalCloudList
Definition: coalCloudList.H:44
Foam::coalCloudList::SU
tmp< fvVectorMatrix > SU(volVectorField &U) const
Return tmp momentum source term.
Definition: coalCloudListI.H:64
Foam::coalCloudList::Sh
tmp< fvScalarMatrix > Sh(volScalarField &hs) const
Return sensible enthalpy source term [J/kg/m3/s].
Definition: coalCloudListI.H:112
Foam::coalCloudList::coalCloudList
coalCloudList(const volScalarField &rho, const volVectorField &U, const dimensionedVector &g, const SLGThermo &slgThermo)
Definition: coalCloudList.C:34