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  Copyright (C) 2020 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::kineticTheoryModels::frictionalStressModel
29 
30 SourceFiles
31  frictionalStressModel.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef frictionalStressModel_H
36 #define frictionalStressModel_H
37 
38 #include "dictionary.H"
39 #include "volFields.H"
40 #include "dimensionedTypes.H"
41 #include "runTimeSelectionTables.H"
42 #include "phaseModel.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace kineticTheoryModels
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class frictionalStressModel Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 {
57 protected:
58 
59  // Protected Data
60 
61  //- Reference to higher-level dictionary for re-read
62  const dictionary& dict_;
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("frictionalStressModel");
69 
70  // Declare runtime constructor selection table
72  (
73  autoPtr,
75  dictionary,
76  (
77  const dictionary& dict
78  ),
79  (dict)
80  );
81 
82 
83  // Constructors
84 
85  //- Construct from components
86  explicit frictionalStressModel(const dictionary& dict);
87 
88 
89  // Selectors
90 
92  (
93  const dictionary& dict
94  );
95 
96 
97  //- Destructor
98  virtual ~frictionalStressModel() = default;
99 
100 
101  // Member Functions
102 
104  (
105  const phaseModel& phase,
106  const dimensionedScalar& alphaMinFriction,
108  ) const = 0;
109 
111  (
112  const phaseModel& phase,
113  const dimensionedScalar& alphaMinFriction,
115  ) const = 0;
116 
117  virtual tmp<volScalarField> nu
118  (
119  const phaseModel& phase,
120  const dimensionedScalar& alphaMinFriction,
122  const volScalarField& pf,
123  const volSymmTensorField& D
124  ) const = 0;
125 
126  virtual bool read() = 0;
127 };
128 
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 } // End namespace kineticTheoryModels
133 } // End namespace Foam
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 #endif
138 
139 // ************************************************************************* //
Foam::kineticTheoryModels::frictionalStressModel
Definition: frictionalStressModel.H:54
volFields.H
Foam::phaseModel
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:54
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::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: frictionalStressModel.C:58
Foam::kineticTheoryModels::frictionalStressModel::dict_
const dictionary & dict_
Reference to higher-level dictionary for re-read.
Definition: frictionalStressModel.H:61
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::kineticTheoryModels::frictionalStressModel::frictionalStressModel
frictionalStressModel(const dictionary &dict)
Construct from components.
Definition: frictionalStressModel.C:46
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::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::kineticTheoryModels::frictionalStressModel::~frictionalStressModel
virtual ~frictionalStressModel()=default
Destructor.
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::kineticTheoryModels::frictionalStressModel::read
virtual bool read()=0