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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::ParticleStressModels::HarrisCrighton
28
29Group
30 grpLagrangianIntermediateMPPICParticleStressSubModels
31
32Description
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
53SourceFiles
54 HarrisCrighton.C
55
56\*---------------------------------------------------------------------------*/
57
58#ifndef HarrisCrighton_H
59#define HarrisCrighton_H
60
61#include "ParticleStressModel.H"
62
63// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64
65namespace Foam
66{
67namespace ParticleStressModels
68{
69
70/*---------------------------------------------------------------------------*\
71 Class HarrisCrighton Declaration
72\*---------------------------------------------------------------------------*/
75:
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
96public:
97
98 //- Runtime type information
99 TypeName("HarrisCrighton");
100
101
102 //- Constructors
103
104 //- Construct from components
106
107 //- Construct copy
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// ************************************************************************* //
Generic templated field type.
Definition: Field.H:82
Base class for inter-particle stress models.
Inter-particle stress model of Harris and Crighton.
tmp< Field< scalar > > tau(const Field< scalar > &alpha, const Field< scalar > &rho, const Field< scalar > &uRms) const
Member Functions.
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.
TypeName("HarrisCrighton")
Runtime type information.
virtual autoPtr< ParticleStressModel > clone() const
Clone.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
A class for managing temporary objects.
Definition: tmp.H:65
Namespace for OpenFOAM.
volScalarField & alpha
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73