FreeFOAM The Cross-Platform CFD Toolkit
ReactingCloudI_.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 | Copyright (C) 1991-2010 OpenCFD Ltd.
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 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
27 
28 template<class ParcelType>
29 inline const typename ParcelType::constantProperties&
31 {
32  return constProps_;
33 }
34 
35 
36 template<class ParcelType>
39 {
40  return mcCarrierThermo_;
41 }
42 
43 
44 template<class ParcelType>
47 {
48  return mcCarrierThermo_;
49 }
50 
51 
52 template<class ParcelType>
55 {
56  return compositionModel_;
57 }
58 
59 
60 template<class ParcelType>
63 {
64  return phaseChangeModel_;
65 }
66 
67 
68 template<class ParcelType>
71 {
72  return rhoTrans_[i];
73 }
74 
75 
76 template<class ParcelType>
79 {
80  return rhoTrans_;
81 }
82 
83 
84 template<class ParcelType>
87 {
88  return rhoTrans_[i]/(this->db().time().deltaT()*this->mesh().V());
89 }
90 
91 
92 template<class ParcelType>
95 {
97  (
99  (
100  IOobject
101  (
102  this->name() + "rhoTrans",
103  this->db().time().timeName(),
104  this->db(),
105  IOobject::NO_READ,
106  IOobject::NO_WRITE,
107  false
108  ),
109  this->mesh(),
110  dimensionedScalar("zero", rhoTrans_[0].dimensions(), 0.0)
111  )
112  );
113 
114  scalarField& sourceField = trhoTrans().field();
115  forAll (rhoTrans_, i)
116  {
117  sourceField += rhoTrans_[i];
118  }
119 
120  return trhoTrans/(this->db().time().deltaT()*this->mesh().V());
121 }
122 
123 // ************************ vim: set sw=4 sts=4 et: ************************ //