SchaefferFrictionalStress.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::kineticTheoryModels::frictionalStressModels::Schaeffer
26 
27 Description
28 
29 SourceFiles
30  SchaefferFrictionalStress.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef SchaefferFrictionalStress_H
35 #define SchaefferFrictionalStress_H
36 
37 #include "frictionalStressModel.H"
38 
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 
41 namespace Foam
42 {
43 namespace kineticTheoryModels
44 {
45 namespace frictionalStressModels
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class Schaeffer Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class Schaeffer
53 :
55 {
56  // Private Data
57 
58  //- Angle of internal friction
59  dimensionedScalar phi_;
60 
61 
62  // Private member functions
63 
64  //- Read the coefficients from coeffDict
65  virtual bool readCoeffs(const dictionary& coeffDict);
66 
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("Schaeffer");
72 
73 
74  // Constructors
75 
76  //- Construct from the coefficients dictionary
77  Schaeffer(const dictionary& coeffDict);
78 
79 
80  //- Destructor
81  virtual ~Schaeffer();
82 
83 
84  // Member Functions
85 
87  (
88  const phaseModel& phase,
89  const dimensionedScalar& alphaMinFriction,
91  ) const;
92 
94  (
95  const phaseModel& phase,
96  const dimensionedScalar& alphaMinFriction,
98  ) const;
99 
100  virtual tmp<volScalarField> nu
101  (
102  const phaseModel& phase,
103  const dimensionedScalar& alphaMinFriction,
105  const volScalarField& pf,
106  const volSymmTensorField& D
107  ) const;
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace frictionalStressModels
114 } // End namespace kineticTheoryModels
115 } // End namespace Foam
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
Generic GeometricField class.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Schaeffer(const dictionary &coeffDict)
Construct from the coefficients dictionary.
virtual tmp< volScalarField > frictionalPressure(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
virtual tmp< volScalarField > nu(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax, const volScalarField &pf, const volSymmTensorField &D) const
virtual tmp< volScalarField > frictionalPressurePrime(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
A class for managing temporary objects.
Definition: tmp.H:55
dimensionedScalar alphaMax(viscosity->lookup("alphaMax"))
static const coefficient D("D", dimTemperature, 257.14)
Namespace for OpenFOAM.