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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2018 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::kineticTheoryModels::frictionalStressModels::Schaeffer
28 
29 Description
30 
31 SourceFiles
32  SchaefferFrictionalStress.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef SchaefferFrictionalStress_H
37 #define SchaefferFrictionalStress_H
38 
39 #include "frictionalStressModel.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace kineticTheoryModels
46 {
47 namespace frictionalStressModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class Schaeffer Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class Schaeffer
55 :
57 {
58  // Private data
59 
60  dictionary coeffDict_;
61 
62  //- Angle of internal friction
63  dimensionedScalar phi_;
64 
65 
66 public:
67 
68  //- Runtime type information
69  TypeName("Schaeffer");
70 
71 
72  // Constructors
73 
74  //- Construct from components
75  Schaeffer(const dictionary& dict);
76 
77 
78  //- Destructor
79  virtual ~Schaeffer();
80 
81 
82  // Member functions
83 
85  (
86  const phaseModel& phase,
87  const dimensionedScalar& alphaMinFriction,
89  ) const;
90 
92  (
93  const phaseModel& phase,
94  const dimensionedScalar& alphaMinFriction,
96  ) const;
97 
98  virtual tmp<volScalarField> nu
99  (
100  const phaseModel& phase,
101  const dimensionedScalar& alphaMinFriction,
103  const volScalarField& pf,
104  const volSymmTensorField& D
105  ) const;
106 
107  virtual bool read();
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace frictionalStressModels
114 } // End namespace kineticTheoryModels
115 } // End namespace Foam
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
Foam::kineticTheoryModels::frictionalStressModel
Definition: frictionalStressModel.H:54
Foam::phaseModel
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:54
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::frictionalPressure
virtual tmp< volScalarField > frictionalPressure(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
Definition: SchaefferFrictionalStress.C:80
Foam::phase
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phase.H:54
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::~Schaeffer
virtual ~Schaeffer()
Destructor.
Definition: SchaefferFrictionalStress.C:71
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::read
virtual bool read()
Definition: SchaefferFrictionalStress.C:183
alphaMax
dimensionedScalar alphaMax("alphaMax", dimless/dimTime, laminarTransport)
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::frictionalPressurePrime
virtual tmp< volScalarField > frictionalPressurePrime(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const
Definition: SchaefferFrictionalStress.C:97
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::Schaeffer
Schaeffer(const dictionary &dict)
Construct from components.
Definition: SchaefferFrictionalStress.C:57
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer
Definition: SchaefferFrictionalStress.H:53
D
const dimensionedScalar & D
Definition: solveBulkSurfactant.H:4
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::TypeName
TypeName("Schaeffer")
Runtime type information.
Foam::kineticTheoryModels::frictionalStressModels::Schaeffer::nu
virtual tmp< volScalarField > nu(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax, const volScalarField &pf, const volSymmTensorField &D) const
Definition: SchaefferFrictionalStress.C:113