All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
varScModel5.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) 2019 OpenCFD Ltd.
10  Copyright (C) 2016-2019 ISP RAS (www.ispras.ru) UniCFD Group (www.unicfd.ru)
11 -------------------------------------------------------------------------------
12 License
13  This file is part of QGDsolver library, based on OpenFOAM+.
14 
15  OpenFOAM is free software: you can redistribute it and/or modify it
16  under the terms of the GNU General Public License as published by
17  the Free Software Foundation, either version 3 of the License, or
18  (at your option) any later version.
19 
20  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
21  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  for more details.
24 
25  You should have received a copy of the GNU General Public License
26  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
27 
28 
29 Class
30  Foam::qgd::varScModel5
31 
32 Group
33  grpQGDCoeffs
34 
35 Description
36  Class describing QGD model coefficients using dynamic values for
37  Sc^{QGD}, Pr^{QGD} and specified \alpha field:
38 
39  Sc^{QGD} = min(\h^QGD abs(\nabla \rho)/\rho, 1)
40 
41  \tau^{QGD} = \alpha h / c + \mu / (p Sc)
42 
43  \mu^{QGD} = (\alpha h / c) p Sc^{QGD}
44 
45  \lambda^{QGD} = \mu^{QGD} Cp / Pr^{QGD}
46 
47 SourceFiles
48  varScModel5.C
49 
50 \*---------------------------------------------------------------------------*/
51 #include "QGDCoeffs.H"
52 
53 #ifndef varScModel5_H
54 #define varScModel5_H
55 
56 namespace Foam
57 {
58 
59 class cellSet;
60 
61 namespace qgd
62 {
63 
64 class varScModel5 : public QGDCoeffs
65 {
66 
67 protected:
68 
69  scalar smoothCoeff_;
70  scalar rC_;
71  scalar minSc_;
72  scalar maxSc_;
73  scalar badQualitySc_;
75  scalar constSc_;
76 
77  scalarField cqSc_;
78 
79  autoPtr<cellSet> constScCellSetPtr_;
80 
81 
82 public:
83 
84  //-
85  TypeName ("varScModel5");
86 
87  //-
89  (
90  const IOobject& io,
91  const fvMesh& mesh,
92  const dictionary& dict
93  );
94 
95  //-
96  ~varScModel5();
97 
98  //-
99  void correct(const QGDThermo&);
100 
101 };
102 
103 
104 }//namespace qgd
105 
106 }//namespace Foam
107 
108 #endif
109 
110 //
111 //END-OF-FILe
112 //
TypeName("varScModel5")
Class describing QGD model coefficients using dynamic values for Sc^{QGD}, Pr^{QGD} and specified fi...
Definition: varScModel5.H:59
Base class for all classes describing QGD model coefficients. Provides interfaces for accessing QGD/Q...
Definition: QGDCoeffs.H:57
varScModel5(const IOobject &io, const fvMesh &mesh, const dictionary &dict)
Definition: varScModel5.C:47
autoPtr< cellSet > constScCellSetPtr_
Definition: varScModel5.H:74
scalar qgdAspectRatioThreshold_
Definition: varScModel5.H:69
Abstract base class for classes implementing thermophysical properties of gases and fluids governed b...
Definition: QGDThermo.H:53
void correct(const QGDThermo &)
Definition: varScModel5.C:191