All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
T0byGr.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 Class
29  Foam::qgd::T0byGr
30 
31 Group
32  grpQGDCoeffs
33 
34 Description
35  Class for to calculate $\tau$ as inverse proportional of
36  Grashoff number.
37  in this case $\tau$ parameter is calculated by
38 
39  $$ \tau = \frac{T_0}{Gr} $$
40 
41  Where:
42 
43  $\tau$ is regularisation parameter, $T_0$ is some
44  characteristic time.
45 
46  $Gr$ is Grashof number:
47 
48  $$\frac{g \beta \Delta TH}{\nu^2}$$
49 
50  Where:
51 
52  $\beta$ is the coefficient of thermal expansion
53  $\Delta T$ is deiffetence of temperatures / salinities
54  $\nu$ is the kinematic viscosity
55 
56 SourceFiles
57  T0byGr.C
58 
59 \*---------------------------------------------------------------------------*/
60 
61 #include "QGDCoeffs.H"
62 
63 #ifndef T0byGr_H
64 #define T0byGr_H
65 
66 namespace Foam
67 {
68 
69 namespace qgd
70 {
71 
72 class T0byGr : public QGDCoeffs
73 {
74 
75  //-
76  scalar Gr_;
77 
78  //-
79  scalar T0_;
80 
81 public:
82 
83  //-
84  TypeName ("T0byGr");
85 
86  //-
87  T0byGr
88  (
89  const IOobject& io,
90  const fvMesh& mesh,
91  const dictionary& dict
92  );
93 
94  //-
95  ~T0byGr();
96 
97  //-
98  void correct(const QGDThermo&);
99 
100 private:
101 
102  //-
103 
104 };
105 
106 
107 }//namespace qgd
108 
109 }//namespace Foam
110 
111 #endif
112 
113 //
114 //END-OF-FILe
115 //
Base class for all classes describing QGD model coefficients. Provides interfaces for accessing QGD/Q...
Definition: QGDCoeffs.H:57
T0byGr(const IOobject &io, const fvMesh &mesh, const dictionary &dict)
Definition: T0byGr.C:45
Class for to calculate $$ as inverse proportional of Grashoff number. in this case $$ parameter is ca...
Definition: T0byGr.H:67
TypeName("T0byGr")
void correct(const QGDThermo &)
Definition: T0byGr.C:77
Abstract base class for classes implementing thermophysical properties of gases and fluids governed b...
Definition: QGDThermo.H:53