CFDEMcoupling  2.4
 All Classes
gradPForce.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  -grad(p)*Vp * rho ... if p is normalized with pressure
32  -grad(p)*Vp ... if p is real pressure
33  pressure gradient force
34  including interpolation of the velocity to the exact position
35 
36 Class
37  gradPForce
38 
39 SourceFiles
40  gradPForce.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef gradPForce_H
45 #define gradPForce_H
46 
47 #include "forceModel.H"
48 #include "interpolationCellPoint.H"
49 
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 
52 namespace Foam
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class gradPForce Declaration
57 \*---------------------------------------------------------------------------*/
58 
60 :
61  public forceModel
62 {
63 private:
64  dictionary propsDict_;
65 
66  word pFieldName_;
67 
68  const volScalarField& p_;
69 
70  word velocityFieldName_;
71 
72  const volVectorField& U_;
73 
74  bool useRho_;
75 
76  bool useU_; // if false: substitution p=0.5*rho*U^2
77 
78  mutable double addedMassCoeff_; //added mass coefficient
79 
80 public:
81 
82  //- Runtime type information
83  TypeName("gradPForce");
84 
85 
86  // Constructors
87 
88  //- Construct from components
90  (
91  const dictionary& dict,
92  cfdemCloud& sm
93  );
94 
95  // Destructor
96 
97  ~gradPForce();
98 
99 
100  // Member Functions
101  void setForce() const;
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace Foam
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 #endif
112 
113 // ************************************************************************* //
Definition: gradPForce.H:59
Definition: cfdemCloud.H:81
Definition: forceModel.H:55