JohnsonJacksonFrictionalStress.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::JohnsonJackson
26 
27 Description
28 
29 SourceFiles
30  JohnsonJacksonFrictionalStress.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef JohnsonJackson_H
35 #define JohnsonJackson_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 JohnsonJackson Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class JohnsonJackson
53 :
54  public frictionalStressModel
55 {
56  // Private data
57 
58  dictionary coeffDict_;
59 
60  //- Material constant for frictional normal stress
62 
63  //- Material constant for frictional normal stress
64  dimensionedScalar eta_;
65 
66  //- Material constant for frictional normal stress
68 
69  //- Angle of internal friction
70  dimensionedScalar phi_;
71 
72  //- Lower limit for (alphaMax - alpha1)
73  dimensionedScalar alphaDeltaMin_;
74 
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("JohnsonJackson");
80 
81 
82  // Constructors
83 
84  //- Construct from components
85  JohnsonJackson(const dictionary& dict);
86 
87 
88  //- Destructor
89  virtual ~JohnsonJackson();
90 
91 
92  // Member functions
93 
94  virtual tmp<volScalarField> frictionalPressure
95  (
96  const volScalarField& alpha1,
97  const dimensionedScalar& alphaMinFriction,
99  ) const;
100 
101  virtual tmp<volScalarField> frictionalPressurePrime
102  (
103  const volScalarField& alpha1,
104  const dimensionedScalar& alphaMinFriction,
106  ) const;
107 
108  virtual tmp<volScalarField> nu
109  (
110  const volScalarField& alpha1,
111  const dimensionedScalar& alphaMinFriction,
113  const volScalarField& pf,
114  const volSymmTensorField& D
115  ) const;
116 
117  virtual bool read();
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace frictionalStressModels
124 } // End namespace kineticTheoryModels
125 } // End namespace Foam
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 #endif
130 
131 // ************************************************************************* //
TypeName("JohnsonJackson")
Runtime type information.
Namespace for OpenFOAM.
JohnsonJackson(const dictionary &dict)
Construct from components.
dictionary dict
virtual tmp< volScalarField > nu(const volScalarField &alpha1, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax, const volScalarField &pf, const volSymmTensorField &D) const
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
Definition: volFieldsFwd.H:58
volScalarField & alpha1
Definition: createFields.H:15
dimensionedScalar alphaMax(laminarTransport.lookup("alphaMax"))
virtual tmp< volScalarField > frictionalPressure(const volScalarField &alpha1, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual tmp< volScalarField > frictionalPressurePrime(const volScalarField &alpha1, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const