CFDEMcoupling  2.4
 All Classes
execute.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  execute a liggghts command
32 Class
33  execute
34 
35 SourceFiles
36  execute.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef execute_H
41 #define execute_H
42 
43 #include "liggghtsCommandModel.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class execute Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class execute
55 :
57 {
58 private:
59 
60  int nrModel_;
61 
62  word myName_;
63 
64  dictionary propsDict_;
65 
66  wordList commandList_;
67 
68  word command_;
69 
70  scalarList scalarList_;
71 
72  labelList labelList_;
73 
74  bool timeStamp_;
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("execute");
80 
81 
82  // Constructors
83 
84  //- Construct from components
85  execute
86  (
87  const dictionary& dict,
88  cfdemCloud& sm,
89  int i
90  );
91 
92  // Destructor
93 
94  ~execute();
95 
96 
97  // Member Functions
98 
99  word name(){return myName_;};
100 
101  const char* command(int);
102 
103  bool runCommand(int);
104 
105 };
106 
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 } // End namespace Foam
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 #endif
115 
116 // ************************************************************************* //
Definition: liggghtsCommandModel.H:54
Definition: cfdemCloud.H:81
Definition: execute.H:54