CFDEMcoupling  2.4
 All Classes
engineSearch.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 Class
32  engineSearch
33 
34 SourceFiles
35  engineSearch.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef engineSearch_H
40 #define engineSearch_H
41 
42 #include "locateModel.H"
43 
44 # include "meshSearch.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class noDrag Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
57  public locateModel
58 {
59 
60 private:
61 
62  dictionary propsDict_;
63 
64  //Switch faceDecomp_;
65 
66  Switch treeSearch_;
67 
68 protected:
69 
70  meshSearch searchEngine_;
71 
72 public:
73 
74  //- Runtime type information
75  TypeName("engine");
76 
77 
78  // Constructors
79 
80  //- Construct from components
82  (
83  const dictionary& dict,
84  cfdemCloud& sm
85  );
86 
87  // Destructor
88 
89  ~engineSearch();
90 
91 
92  // Member Functions
93  label findCell
94  (
95  double** const& mask,
96  double**& positions,
97  double**& cellIDs,
98  int size
99  ) const;
100 
101  label findSingleCell
102  (
103  vector& position,
104  label& oldCellID
105  ) const;
106 };
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace Foam
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 #endif
116 
117 // ************************************************************************* //
Definition: engineSearch.H:55
Definition: cfdemCloud.H:81
Definition: locateModel.H:53