exponential.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::exponential
28
29Group
30 grpLagrangianIntermediateMPPICParticleStressSubModels
31
32Description
33 Exponential inter-particle stress model of the same form as used in
34 twoPhaseEulerFoam
35
36SourceFiles
37 exponential.C
38
39\*---------------------------------------------------------------------------*/
40
41#ifndef exponential_H
42#define exponential_H
43
44#include "ParticleStressModel.H"
45
46// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48namespace Foam
49{
50namespace ParticleStressModels
51{
52
53/*---------------------------------------------------------------------------*\
54 Class exponential Declaration
55\*---------------------------------------------------------------------------*/
57class exponential
58:
60{
61 // Private data
62
63 //- Pre-exponential factor
64 scalar preExp_;
65
66 //- Maximum limit of the exponential
67 scalar expMax_;
68
69 //- Front coefficient
70 scalar g0_;
71
72
73public:
74
75 //- Runtime type information
76 TypeName("exponential");
77
78
79 //- Constructors
80
81 //- Construct from components
83
84 //- Construct copy
85 exponential(const exponential& hc);
86
87 //- Clone
89 {
91 (
92 new exponential(*this)
93 );
94 }
95
96
97 //- Destructor
98 virtual ~exponential();
99
100
101 //- Member Functions
102
103 //- Collision stress
105 (
106 const Field<scalar>& alpha,
107 const Field<scalar>& rho,
108 const Field<scalar>& uRms
109 ) const;
110
111 //- Collision stress derivative w.r.t. the volume fraction
113 (
114 const Field<scalar>& alpha,
115 const Field<scalar>& rho,
116 const Field<scalar>& uRms
117 ) const;
118};
119
120
121// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122
123} // End namespace ParticleStressModels
124} // End namespace Foam
125
126// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127
128#endif
129
130// ************************************************************************* //
Generic templated field type.
Definition: Field.H:82
Base class for inter-particle stress models.
Exponential inter-particle stress model of the same form as used in twoPhaseEulerFoam.
Definition: exponential.H:59
tmp< Field< scalar > > tau(const Field< scalar > &alpha, const Field< scalar > &rho, const Field< scalar > &uRms) const
Member Functions.
Definition: exponential.C:85
TypeName("exponential")
Runtime type information.
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: exponential.C:97
virtual autoPtr< ParticleStressModel > clone() const
Clone.
Definition: exponential.H:87
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