CFDEMcoupling  2.4
 All Classes
cfdemCloudIB.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  cloud class managing DEM data for CFD-DEM coupling and IB representation
32 
33 Class
34  Foam::cfdemCloudIB derived from cfdemCloud
35 
36 SourceFiles
37  cfdemCloudIB.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef cfdemCloudIB_H
42 #define cfdemCloudIB_H
43 
44 #include "cfdemCloud.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class cfdemCloudIB Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
57  public cfdemCloud
58 {
59 protected:
60 
61  mutable double **angularVelocities_;
62  label pRefCell_;
63  scalar pRefValue_;
64 
65  mutable bool haveEvolvedOnce_;
66  mutable bool skipLagrangeToEulerMapping_;
67 
68 public:
69 
70  // Constructors
71 
72  //- Construct from components
74  (
75  const fvMesh& mesh
76  );
77 
78  // Destructor
79 
80  ~cfdemCloudIB();
81 
82 
83  // Member Functions
84  void getDEMdata();
85 
86  bool reAllocArrays() const;
87 
88  bool evolve();
89 
90  void calcVelocityCorrection(volScalarField&,volVectorField&,volScalarField&,volScalarField&); // this could be moved to an IB mom couple model
91 
92  // Access
93  vector angularVelocity(int);
94 
95  inline double ** angularVelocities() const
96  {
97  return angularVelocities_;
98  };
99 
100 };
101 
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 } // End namespace Foam
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 #endif
110 
111 // ************************************************************************* //
Definition: cfdemCloudIB.H:55
Definition: cfdemCloud.H:81