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-2015 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 :
54  public frictionalStressModel
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 
82  virtual tmp<volScalarField> frictionalPressure
83  (
84  const volScalarField& alpha1,
85  const dimensionedScalar& alphaMinFriction,
87  ) const;
88 
89  virtual tmp<volScalarField> frictionalPressurePrime
90  (
91  const volScalarField& alpha1,
92  const dimensionedScalar& alphaMinFriction,
94  ) const;
95 
96  virtual tmp<volScalarField> nu
97  (
98  const volScalarField& alpha1,
99  const dimensionedScalar& alphaMinFriction,
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 // ************************************************************************* //
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
Definition: volFieldsFwd.H:58
dictionary dict
TypeName("Schaeffer")
Runtime type information.
Schaeffer(const dictionary &dict)
Construct from components.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
virtual tmp< volScalarField > nu(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax, const volScalarField &pf, const volSymmTensorField &D) const
volScalarField & alpha1
dimensionedScalar alphaMax(laminarTransport.lookup("alphaMax"))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual tmp< volScalarField > frictionalPressurePrime(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
virtual tmp< volScalarField > frictionalPressure(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
Namespace for OpenFOAM.