frictionalStressModel.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::frictionalStressModel
28 
29 SourceFiles
30  frictionalStressModel.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef frictionalStressModel_H
35 #define frictionalStressModel_H
36 
37 #include "dictionary.H"
38 #include "volFields.H"
39 #include "dimensionedTypes.H"
40 #include "runTimeSelectionTables.H"
41 #include "phaseModel.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace kineticTheoryModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class frictionalStressModel Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 {
56  // Private member functions
57 
58  //- Disallow default bitwise copy construct
60 
61  //- Disallow default bitwise assignment
62  void operator=(const frictionalStressModel&);
63 
64 
65 protected:
66 
67  // Protected data
68 
69  //- Reference to higher-level dictionary for re-read
70  const dictionary& dict_;
71 
72 
73 public:
74 
75  //- Runtime type information
76  TypeName("frictionalStressModel");
77 
78  // Declare runtime constructor selection table
80  (
81  autoPtr,
83  dictionary,
84  (
85  const dictionary& dict
86  ),
87  (dict)
88  );
89 
90 
91  // Constructors
92 
93  //- Construct from components
95 
96 
97  // Selectors
98 
100  (
101  const dictionary& dict
102  );
103 
104 
105  //- Destructor
106  virtual ~frictionalStressModel();
107 
108 
109  // Member Functions
110 
112  (
113  const phaseModel& phase,
114  const dimensionedScalar& alphaMinFriction,
116  ) const = 0;
117 
119  (
120  const phaseModel& phase,
121  const dimensionedScalar& alphaMinFriction,
123  ) const = 0;
124 
125  virtual tmp<volScalarField> nu
126  (
127  const phaseModel& phase,
128  const dimensionedScalar& alphaMinFriction,
130  const volScalarField& pf,
131  const volSymmTensorField& D
132  ) const = 0;
133 
134  virtual bool read() = 0;
135 };
136 
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 } // End namespace kineticTheoryModels
141 } // End namespace Foam
142 
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 
145 #endif
146 
147 // ************************************************************************* //
Foam::kineticTheoryModels::frictionalStressModel
Definition: frictionalStressModel.H:53
volFields.H
Foam::phaseModel
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:57
Foam::phase
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phase.H:54
Foam::tmp< volScalarField >
Foam::kineticTheoryModels::frictionalStressModel::frictionalPressurePrime
virtual tmp< volScalarField > frictionalPressurePrime(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const =0
Foam::kineticTheoryModels::frictionalStressModel::frictionalPressure
virtual tmp< volScalarField > frictionalPressure(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const =0
Foam::kineticTheoryModels::frictionalStressModel::New
static autoPtr< frictionalStressModel > New(const dictionary &dict)
Definition: newFrictionalStressModel.C:35
Foam::kineticTheoryModels::frictionalStressModel::dict_
const dictionary & dict_
Reference to higher-level dictionary for re-read.
Definition: frictionalStressModel.H:69
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:121
Foam::dimensioned< scalar >
Foam::kineticTheoryModels::frictionalStressModel::nu
virtual tmp< volScalarField > nu(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax, const volScalarField &pf, const volSymmTensorField &D) const =0
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::kineticTheoryModels::frictionalStressModel::~frictionalStressModel
virtual ~frictionalStressModel()
Destructor.
Definition: frictionalStressModel.C:56
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::kineticTheoryModels::frictionalStressModel::TypeName
TypeName("frictionalStressModel")
Runtime type information.
runTimeSelectionTables.H
Macros to ease declaration of run-time selection tables.
dictionary.H
D
const dimensionedScalar & D
Definition: solveBulkSurfactant.H:4
dimensionedTypes.H
Foam::kineticTheoryModels::frictionalStressModel::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, frictionalStressModel, dictionary,(const dictionary &dict),(dict))
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::kineticTheoryModels::frictionalStressModel::read
virtual bool read()=0