coalCloudListI.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 #include "fvMatrices.H"
29 #include "volFields.H"
30 #include "DimensionedField.H"
31 
34 {
36  (
38  (
39  IOobject
40  (
41  "UTransEff",
42  mesh_.time().timeName(),
43  mesh_,
46  ),
47  mesh_,
49  )
50  );
51 
53 
54  forAll(*this, i)
55  {
56  fld += operator[](i).UTrans();
57  }
58 
59  return tfld;
60 }
61 
62 
64 (
66 ) const
67 {
69  fvVectorMatrix& fvm = tfvm.ref();
70 
71  forAll(*this, i)
72  {
73  fvm += operator[](i).SU(U);
74  }
75 
76  return tfvm;
77 }
78 
79 
82 {
84  (
86  (
87  IOobject
88  (
89  "hsTransEff",
90  mesh_.time().timeName(),
91  mesh_,
94  ),
95  mesh_,
97  )
98  );
99 
100  volScalarField::Internal& fld = tfld.ref();
101 
102  forAll(*this, i)
103  {
104  fld += operator[](i).hsTrans();
105  }
106 
107  return tfld;
108 }
109 
110 
112 (
113  volScalarField& hs
114 ) const
115 {
117  fvScalarMatrix& fvm = tfvm.ref();
118 
119  forAll(*this, i)
120  {
121  fvm += operator[](i).Sh(hs);
122  }
123 
124  return tfvm;
125 }
126 
127 
129 (
130  const label ii,
131  volScalarField& Yi
132 ) const
133 {
135  fvScalarMatrix& fvm = tfvm.ref();
136 
137  forAll(*this, i)
138  {
139  fvm += operator[](i).SYi(ii, Yi);
140  }
141 
142  return tfvm;
143 }
144 
145 
148 {
150  (
152  (
153  IOobject
154  (
155  "rhoTransEff",
156  mesh_.time().timeName(),
157  mesh_,
160  ),
161  mesh_,
163  )
164  );
165 
166  volScalarField::Internal& fld = tfld.ref();
167 
168  forAll(*this, i)
169  {
170  forAll(operator[](i).rhoTrans(), j)
171  {
172  fld += operator[](i).rhoTrans()[j];
173  }
174  }
175 
176  return tfld;
177 }
178 
179 
180 
181 
184 {
186  (
188  (
189  IOobject
190  (
191  "rhoTransEff",
192  mesh_.time().timeName(),
193  mesh_,
196  ),
197  mesh_,
199  )
200  );
201 
202  volScalarField::Internal& fld = tfld.ref();
203 
204  forAll(*this, i)
205  {
206  fld += operator[](i).Srho();
207  }
208 
209  return tfld;
210 }
211 
212 
215 (
216  const label i
217 ) const
218 {
220  (
222  (
223  IOobject
224  (
225  "rhoTransEff",
226  mesh_.time().timeName(),
227  mesh_,
230  ),
231  mesh_,
233  )
234  );
235 
236  volScalarField::Internal& fld = tfld.ref();
237 
238  forAll(*this, j)
239  {
240  fld += operator[](j).Srho(i);
241  }
242 
243  return tfld;
244 }
245 
246 
248 (
250 ) const
251 {
253  fvScalarMatrix& fvm = tfvm.ref();
254 
255  forAll(*this, i)
256  {
257  fvm += operator[](i).Srho(rho);
258  }
259 
260  return tfvm;
261 }
262 
263 
264 // ************************************************************************* //
Foam::IOobject::NO_WRITE
Definition: IOobject.H:195
volFields.H
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:169
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
Foam::dimVelocity
const dimensionSet dimVelocity
Foam::dimEnergy
const dimensionSet dimEnergy
Foam::dimDensity
const dimensionSet dimDensity
DimensionedField.H
Foam::Time::timeName
static word timeName(const scalar t, const int precision=precision_)
Definition: Time.C:780
Foam::dimForce
const dimensionSet dimForce
rho
rho
Definition: readInitialConditions.H:88
Foam::coalCloudList::UTrans
tmp< volVectorField::Internal > UTrans() const
Return const reference to momentum source.
Definition: coalCloudListI.H:33
forAll
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:296
Foam::dimensionedVector
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Definition: dimensionedVector.H:50
fvMatrices.H
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Foam::dimTime
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:53
Foam::tmp::ref
T & ref() const
Definition: tmpI.H:227
Foam::coalCloudList::Srho
tmp< volScalarField::Internal > Srho() const
Return tmp total mass source for carrier phase.
Definition: coalCloudListI.H:183
Foam::fvVectorMatrix
fvMatrix< vector > fvVectorMatrix
Definition: fvMatricesFwd.H:47
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:44
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:42
fld
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Definition: gmvOutputLagrangian.H:23
Foam::coalCloudList::hsTrans
tmp< volScalarField::Internal > hsTrans() const
Sensible enthalpy transfer [J/kg].
Definition: coalCloudListI.H:81
Foam::dimMass
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:51
U
U
Definition: pEqn.H:72
Foam::coalCloudList::rhoTrans
tmp< volScalarField::Internal > rhoTrans() const
Return total mass transfer [kg/m3].
Definition: coalCloudListI.H:147
Foam::fvMatrix
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Definition: fvPatchField.H:68
Foam::fvMesh::time
const Time & time() const
Return the top-level database.
Definition: fvMesh.H:280
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< vector, fvPatchField, volMesh >
Foam::IOobject::NO_READ
Definition: IOobject.H:188
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::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:54