CFDEMcoupling  2.4
 All Classes
IBVoidFraction.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  void fraction model for the smooth representation of spheres with
32  radius > cell length.
33  contribution from Alice Hager
34 
35 Class
36  IBVoidFraction
37 
38 SourceFiles
39  IBVoidFraction.C
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef IBVoidFraction_H
44 #define IBVoidFraction_H
45 
46 #include "voidFractionModel.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class noDrag Declaration
55 \*---------------------------------------------------------------------------*/
56 
58 :
59  public voidFractionModel
60 {
61 
62 private:
63  dictionary propsDict_;
64 
65  const scalar alphaMin_; //NP min value of voidFraction
66 
67  mutable bool alphaLimited_;
68 
69  const scalar scaleUpVol_; //NP scaling radius, keeping volume of particle
70 
71  mutable bool checkPeriodicCells_;
72 
73 public:
74 
75  //- Runtime type information
76  TypeName("IB");
77 
78 
79  // Constructors
80 
81  //- Construct from components
83  (
84  const dictionary& dict,
85  cfdemCloud& sm
86  );
87 
88  // Destructor
89 
90  ~IBVoidFraction();
91 
92 
93  // Member Functions
94  void setvoidFraction(double** const& ,double**&, double**&, double**&, double**&) const;
95 
96  void buildLabelHashSet
97  (
98  const scalar radius,
99  const vector position,
100  const label cellID,
101  labelHashSet& hashSett,
102  bool initialInsert
103  ) const;
104 
105  double minPeriodicDistance
106  (
107  vector cellCentrePosition,
108  vector positionCenter,
109  boundBox globalBb,
110  vector& minPeriodicPos
111  ) const;
112 
113 
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace Foam
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
Definition: IBVoidFraction.H:57
Definition: cfdemCloud.H:81
Definition: voidFractionModel.H:56