CFDEMcoupling  2.4
 All Classes
oneWayVTK.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  one way DEM->CFD coupling via VTK files
32 
33 Class
34  oneWayVTK
35 
36 SourceFiles
37  oneWayVTK.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef oneWayVTK_H
42 #define oneWayVTK_H
43 
44 #include "dataExchangeModel.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class oneWayVTK Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 class oneWayVTK
56 :
57  public dataExchangeModel
58 {
59 private:
60 
61  dictionary propsDict_;
62 
63  word filename_;
64 
65  fileName relativePath_;
66 
67  const char* charFilename_;
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("oneWayVTK");
73 
74 
75  // Constructors
76 
77  //- Construct from components
78  oneWayVTK
79  (
80  const dictionary& dict,
81  cfdemCloud& sm
82  );
83 
84  // Destructor
85 
86  ~oneWayVTK();
87 
88 
89  // Member Functions
90  void getData
91  (
92  word name,
93  word type,
94  double ** const& field,
95  label step
96  ) const;
97 
98  void getData
99  (
100  word name,
101  word type,
102  int ** const& field,
103  label step
104  ) const
105  {};
106 
107  void giveData
108  (
109  word name,
110  word type,
111  double ** const& field,
112  const char* datatype = ""
113  ) const;
114 
115  word myType() const{return typeName; };
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
Definition: dataExchangeModel.H:53
Definition: oneWayVTK.H:55
Definition: cfdemCloud.H:81