HarrisCrighton.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2013-2016 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::ParticleStressModels::HarrisCrighton
28 
29 Group
30  grpLagrangianIntermediateMPPICParticleStressSubModels
31 
32 Description
33  Inter-particle stress model of Harris and Crighton
34 
35  The stress value takes the following form:
36  \f[
37  \frac{P_s \alpha^\beta}{ \mathrm{max} \left( \alpha_{pack} - \alpha ,
38  \epsilon ( 1 - \alpha ) \right) }
39  \f]
40  Here, \f$\alpha\f$ is the volume fraction of the dispersed phase, and the
41  other values are modelling constants. A small value \f$\epsilon\f$ is used
42  to limit the denominator to ensure numerical stability.
43 
44  Reference:
45  \verbatim
46  "Solitons, solitary waves, and voidage disturbances in gas-fluidized
47  beds"
48  S Harris and D Crighton,
49  Journal of Fluid Mechanics
50  Volume 266, Pages 243-276, 1994
51  \endverbatim
52 
53 SourceFiles
54  HarrisCrighton.C
55 
56 \*---------------------------------------------------------------------------*/
57 
58 #ifndef HarrisCrighton_H
59 #define HarrisCrighton_H
60 
61 #include "ParticleStressModel.H"
62 
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64 
65 namespace Foam
66 {
67 namespace ParticleStressModels
68 {
69 
70 /*---------------------------------------------------------------------------*\
71  Class HarrisCrighton Declaration
72 \*---------------------------------------------------------------------------*/
73 
74 class HarrisCrighton
75 :
76  public ParticleStressModel
77 {
78  // Private data
79 
80  //- Solid pressure coefficient
81  scalar pSolid_;
82 
83  //- Exponent of the volume fraction
84  scalar beta_;
85 
86  //- Smallest allowable difference from the packed volume fraction
87  scalar eps_;
88 
89 
90  // Private member functions
91 
92  //- Return the limited denominator of the radial distribution function
93  tmp<Field<scalar>> denominator(const Field<scalar>& alpha) const;
94 
95 
96 public:
97 
98  //- Runtime type information
99  TypeName("HarrisCrighton");
100 
101 
102  //- Constructors
103 
104  //- Construct from components
106 
107  //- Construct copy
108  HarrisCrighton(const HarrisCrighton& hc);
109 
110  //- Clone
111  virtual autoPtr<ParticleStressModel> clone() const
112  {
114  (
115  new HarrisCrighton(*this)
116  );
117  }
118 
119 
120  //- Destructor
121  virtual ~HarrisCrighton();
122 
123 
124  //- Member Functions
125 
126  //- Collision stress
128  (
129  const Field<scalar>& alpha,
130  const Field<scalar>& rho,
131  const Field<scalar>& uRms
132  ) const;
133 
134  //- Collision stress derivative w.r.t. the volume fraction
136  (
137  const Field<scalar>& alpha,
138  const Field<scalar>& rho,
139  const Field<scalar>& uRms
140  ) const;
141 };
142 
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 } // End namespace ParticleStressModels
147 } // End namespace Foam
148 
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 
151 #endif
152 
153 // ************************************************************************* //
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:212
Foam::ParticleStressModels::HarrisCrighton::TypeName
TypeName("HarrisCrighton")
Runtime type information.
rho
rho
Definition: readInitialConditions.H:88
Foam::ParticleStressModels::HarrisCrighton::clone
virtual autoPtr< ParticleStressModel > clone() const
Clone.
Definition: HarrisCrighton.H:110
Foam::Field< scalar >
Foam::ParticleStressModels::HarrisCrighton
Inter-particle stress model of Harris and Crighton.
Definition: HarrisCrighton.H:73
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::ParticleStressModels::HarrisCrighton::HarrisCrighton
HarrisCrighton(const dictionary &dict)
Constructors.
Definition: HarrisCrighton.C:52
Foam::ParticleStressModels::HarrisCrighton::~HarrisCrighton
virtual ~HarrisCrighton()
Destructor.
Definition: HarrisCrighton.C:77
Foam::ParticleStressModel
Base class for inter-particle stress models.
Definition: ParticleStressModel.H:56
ParticleStressModel.H
Foam::ParticleStressModels::HarrisCrighton::dTaudTheta
tmp< Field< scalar > > dTaudTheta(const Field< scalar > &alpha, const Field< scalar > &rho, const Field< scalar > &uRms) const
Collision stress derivative w.r.t. the volume fraction.
Definition: HarrisCrighton.C:119
Foam::ParticleStressModels::HarrisCrighton::tau
tmp< Field< scalar > > tau(const Field< scalar > &alpha, const Field< scalar > &rho, const Field< scalar > &uRms) const
Member Functions.
Definition: HarrisCrighton.C:102