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 -------------------------------------------------------------------------------
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::exponential
28 
29 Group
30  grpLagrangianIntermediateMPPICParticleStressSubModels
31 
32 Description
33  Exponential inter-particle stress model of the same form as used in
34  twoPhaseEulerFoam
35 
36 SourceFiles
37  exponential.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef exponential_H
42 #define exponential_H
43 
44 #include "ParticleStressModel.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 namespace ParticleStressModels
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class exponential Declaration
55 \*---------------------------------------------------------------------------*/
56 
57 class exponential
58 :
59  public ParticleStressModel
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 
73 public:
74 
75  //- Runtime type information
76  TypeName("exponential");
77 
78 
79  //- Constructors
80 
81  //- Construct from components
82  exponential(const dictionary& dict);
83 
84  //- Construct copy
85  exponential(const exponential& hc);
86 
87  //- Clone
88  virtual autoPtr<ParticleStressModel> clone() const
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 // ************************************************************************* //
Foam::ParticleStressModels::exponential::tau
tmp< Field< scalar > > tau(const Field< scalar > &alpha, const Field< scalar > &rho, const Field< scalar > &uRms) const
Member Functions.
Definition: exponential.C:85
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
rho
rho
Definition: readInitialConditions.H:88
Foam::ParticleStressModels::exponential
Exponential inter-particle stress model of the same form as used in twoPhaseEulerFoam.
Definition: exponential.H:56
Foam::ParticleStressModels::exponential::TypeName
TypeName("exponential")
Runtime type information.
Foam::Field< scalar >
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::ParticleStressModels::exponential::~exponential
virtual ~exponential()
Destructor.
Definition: exponential.C:77
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::exponential::exponential
exponential(const dictionary &dict)
Constructors.
Definition: exponential.C:52
Foam::ParticleStressModel
Base class for inter-particle stress models.
Definition: ParticleStressModel.H:56
Foam::ParticleStressModels::exponential::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: exponential.C:97
Foam::ParticleStressModels::exponential::clone
virtual autoPtr< ParticleStressModel > clone() const
Clone.
Definition: exponential.H:87
ParticleStressModel.H