CFDEMcoupling  2.4
 All Classes
LaEuScalarTemp.H
1 /*---------------------------------------------------------------------------*\
2  CFDEMcoupling - Open Source CFD-DEM coupling
3 
4  CFDEMcoupling is part of the CFDEMproject
5  www.cfdem.com
6  Christoph Goniva, christoph.goniva@cfdem.com
7  Copyright 2009-2012 JKU Linz
8  Copyright 2012- DCS Computing GmbH, Linz
9 -------------------------------------------------------------------------------
10 License
11  This file is part of CFDEMcoupling.
12 
13  CFDEMcoupling is free software; you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by the
15  Free Software Foundation; either version 3 of the License, or (at your
16  option) any later version.
17 
18  CFDEMcoupling 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 CFDEMcoupling; if not, write to the Free Software Foundation,
25  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 
27 Description
28  This code is designed to realize coupled CFD-DEM simulations using LIGGGHTS
29  and OpenFOAM(R). Note: this code is not part of OpenFOAM(R) (see DISCLAIMER).
30 
31  two way LaEu Scalar Exchange between DEM and CFD
32  convective heat transfer model following
33  Li and Mason (2000), A computational investigation of transient heat
34  transfer in pneumatic transport of granular particles, Pow.Tech 112
35 
36 Class
37  LaEuScalarTemp
38 
39 SourceFiles
40  LaEuScalarTemp.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef LaEuScalarTemp_H
45 #define LaEuScalarTemp_H
46 
47 #include "forceModel.H"
48 #include "averagingModel.H"
49 #include "interpolationCellPoint.H"
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class LaEuScalarTemp Declaration
58 \*---------------------------------------------------------------------------*/
59 
61 :
62  public forceModel
63 {
64 private:
65 
66  dictionary propsDict_;
67 
68  word tempFieldName_;
69 
70  const volScalarField& tempField_; // ref to temperature field
71 
72  word voidfractionFieldName_;
73 
74  const volScalarField& voidfraction_; // ref to voidfraction field
75 
76  scalar maxSource_; // max (limited) value of src field
77 
78  word velFieldName_;
79 
80  const volVectorField& U_;
81 
82  word partTempName_;
83 
84  mutable double **partTemp_; // Lagrangian array
85 
86  word partHeatFluxName_;
87 
88  mutable double **partHeatFlux_; // Lagrangian array
89 
90  scalar lambda_; // fluid thermal conductivity [W/(m*K)]
91 
92  scalar Cp_; // specific heat capacity [W*s/(kg*K)]
93 
94  void allocateMyArrays() const;
95 
96 public:
97 
98  //- Runtime type information
99  TypeName("LaEuScalarTemp");
100 
101  // Constructors
102 
103  //- Construct from components
105  (
106  const dictionary& dict,
107  cfdemCloud& sm
108  );
109 
110  // Destructor
111 
112  ~LaEuScalarTemp();
113 
114 
115  // Member Functions
116  void setForce() const;
117 
118  void manipulateScalarField(volScalarField&) const;
119 };
120 
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
Definition: cfdemCloud.H:81
Definition: forceModel.H:55
Definition: LaEuScalarTemp.H:60