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-2016 OpenFOAM Foundation
9 Copyright (C) 2020 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::kineticTheoryModels::frictionalStressModel
29
30SourceFiles
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"
42#include "phaseModel.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48namespace kineticTheoryModels
49{
50
51/*---------------------------------------------------------------------------*\
52 Class frictionalStressModel Declaration
53\*---------------------------------------------------------------------------*/
54
55class frictionalStressModel
56{
57protected:
58
59 // Protected Data
60
61 //- Reference to higher-level dictionary for re-read
62 const dictionary& dict_;
63
64
65public:
66
67 //- Runtime type information
68 TypeName("frictionalStressModel");
69
70 // Declare runtime constructor selection table
72 (
73 autoPtr,
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
92 (
93 const dictionary& dict
94 );
95
96
97 //- Destructor
98 virtual ~frictionalStressModel() = default;
99
100
101 // Member Functions
104 (
105 const phaseModel& phase,
106 const dimensionedScalar& alphaMinFriction,
108 ) const = 0;
111 (
112 const phaseModel& phase,
113 const dimensionedScalar& alphaMinFriction,
115 ) const = 0;
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;
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// ************************************************************************* //
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
frictionalStressModel(const dictionary &dict)
Construct from components.
virtual tmp< volScalarField > frictionalPressure(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const =0
const dictionary & dict_
Reference to higher-level dictionary for re-read.
declareRunTimeSelectionTable(autoPtr, frictionalStressModel, dictionary,(const dictionary &dict),(dict))
virtual tmp< volScalarField > frictionalPressurePrime(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax) const =0
virtual ~frictionalStressModel()=default
Destructor.
static autoPtr< frictionalStressModel > New(const dictionary &dict)
static autoPtr< frictionalStressModel > New(const dictionary &dict)
virtual tmp< volScalarField > nu(const phaseModel &phase, const dimensionedScalar &alphaMinFriction, const dimensionedScalar &alphaMax, const volScalarField &pf, const volSymmTensorField &D) const =0
TypeName("frictionalStressModel")
Runtime type information.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phaseModel.H:61
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Definition: phase.H:57
A class for managing temporary objects.
Definition: tmp.H:65
Namespace for OpenFOAM.
volScalarField & nu
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
dictionary dict
const dimensionedScalar & D
dimensionedScalar alphaMax("alphaMax", dimless/dimTime, laminarTransport)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73