CFDEMcoupling  2.4
 All Classes
locateModel.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  locateModel
33 
34 SourceFiles
35  locateModel.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef locateModel_H
40 #define locateModel_H
41 
42 #include "fvCFD.H"
43 #include "cfdemCloud.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class locateModel Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 {
55 
56 protected:
57 
58  // Protected data
59  const dictionary& dict_;
60 
61  cfdemCloud& particleCloud_;
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("locateModel");
67 
68  // Declare runtime constructor selection table
69 
70  declareRunTimeSelectionTable
71  (
72  autoPtr,
74  dictionary,
75  (
76  const dictionary& dict,
77  cfdemCloud& sm
78  ),
79  (dict,sm)
80  );
81 
82 
83  // Constructors
84 
85  //- Construct from components
87  (
88  const dictionary& dict,
89  cfdemCloud& sm
90  );
91 
92 
93  // Destructor
94 
95  virtual ~locateModel();
96 
97 
98  // Selector
99 
100  static autoPtr<locateModel> New
101  (
102  const dictionary& dict,
103  cfdemCloud& sm
104  );
105 
106 
107  // Member Functions
108  virtual label findCell
109  (
110  double** const& mask,
111  double**& positions,
112  double**& cellIDs,
113  int size
114  ) const = 0;
115 
116  virtual label findSingleCell
117  (
118  vector& position,
119  label& oldCellID
120  ) const = 0;
121 
122  virtual label intersection
123  (
124  const point& pStart,
125  const point& pEnd
126  ) const {return -1;};
127 };
128 
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 } // End namespace Foam
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 #endif
137 
138 // ************************************************************************* //
Definition: cfdemCloud.H:81
Definition: locateModel.H:53