SchaefferFrictionalStress.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 | Copyright (C) 2011-2016 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 Schaeffer_H
35 #define Schaeffer_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  dictionary coeffDict_;
59 
60  //- Angle of internal friction
61  dimensionedScalar phi_;
62 
63 
64 public:
65 
66  //- Runtime type information
67  TypeName("Schaeffer");
68 
69 
70  // Constructors
71 
72  //- Construct from components
73  Schaeffer(const dictionary& dict);
74 
75 
76  //- Destructor
77  virtual ~Schaeffer();
78 
79 
80  // Member functions
81 
83  (
84  const phaseModel& phase,
85  const dimensionedScalar& alphaMinFriction,
87  ) const;
88 
90  (
91  const phaseModel& phase,
92  const dimensionedScalar& alphaMinFriction,
93  const dimensionedScalar& alphaMax
94  ) const;
95 
96  virtual tmp<volScalarField> nu
97  (
98  const phaseModel& phase,
99  const dimensionedScalar& alphaMinFriction,
100  const dimensionedScalar& alphaMax,
101  const volScalarField& pf,
102  const volSymmTensorField& D
103  ) const;
104 
105  virtual bool read();
106 };
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace frictionalStressModels
112 } // End namespace kineticTheoryModels
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
dictionary dict
TypeName("Schaeffer")
Runtime type information.
Schaeffer(const dictionary &dict)
Construct from components.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
virtual tmp< volScalarField > nu(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax, const volScalarField &pf, const volSymmTensorField &D) const
dimensionedScalar alphaMax(laminarTransport.lookup("alphaMax"))
virtual tmp< volScalarField > frictionalPressurePrime(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phase.H:52
A class for managing temporary objects.
Definition: PtrList.H:54
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:53
virtual tmp< volScalarField > frictionalPressure(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
Namespace for OpenFOAM.