All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
QHDTEqn.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 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 Application
29  QHDFoam
30 
31 Description
32  Solver for unsteady 3D turbulent flow of incompressible fluid governed by
33  quasi-hydrodynamic dynamic (QHD) equations.
34 
35  QHD system of equations has been developed by scientific group from
36  Keldysh Institute of Applied Mathematics,
37  see http://elizarova.imamod.ru/selection-of-papers.html
38 
39  A comprehensive description of QGD equations and their applications
40  can be found here:
41  \verbatim
42  Elizarova, T.G.
43  "Quasi-Gas Dynamic equations"
44  Springer, 2009
45  \endverbatim
46 
47  A brief of theory on QGD and QHD system of equations:
48  \verbatim
49  Elizarova, T.G. and Sheretov, Y.V.
50  "Theoretical and numerical analysis of quasi-gasdynamic and quasi-hydrodynamic
51  equations"
52  J. Computational Mathematics and Mathematical Physics, vol. 41, no. 2, pp 219-234,
53  2001
54  \endverbatim
55 
56  Developed by UniCFD group (www.unicfd.ru) of ISP RAS (www.ispras.ru).
57 
58 
59 \*---------------------------------------------------------------------------*/
60 
61 
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
63 
64 {
65  phiTf = qgdFlux(phi,T,Tf);
66  surfaceScalarField phiTauTReg = tauQGDf*phiu*(Uf & gradTf);
67 
68  // --- Solve T
70  {
71  solve
72  (
73  fvm::ddt(T)
74  + fvc::div(phiTf)
75  - fvm::laplacian(Hif,T)
76  - fvc::div(phiTauTReg)
77  ==
78  TSu
79  );
80  }
81  else
82  {
83  solve
84  (
85  fvm::ddt(T)
86  + fvc::div(phiTf)
87  - fvc::laplacian(Hif,T)
88  - fvc::div(phiTauTReg)
89  ==
90  TSu
91  );
92  }
93 
94  Info << "max/min of T: " << max(T).value() << "/" << min(T).value() << endl;
95 }
96 
97 
tmp< GeometricField< T, Foam::fvsPatchField, Foam::surfaceMesh > > qgdFlux(const GeometricField< scalar, Foam::fvsPatchField, Foam::surfaceMesh > &flux, const GeometricField< T, Foam::fvPatchField, Foam::volMesh > &psi, const GeometricField< T, Foam::fvsPatchField, Foam::surfaceMesh > &psif, const word fluxName)
const surfaceScalarField & tauQGDf
Definition: createFields.H:55
surfaceScalarField phiTauTReg
Definition: QHDTEqn.H:57
Switch implicitDiffusion(thermo.implicitDiffusion())
EEqn solve()
surfaceScalarField phiTf("phiTf", phi *Tf)
gradTf
Definition: updateFields.H:10
Tf
Definition: updateFields.H:33
tmp< surfaceScalarField > div(const volVectorField &vF)
Hif
Definition: updateFields.H:39
Uf
Definition: updateFields.H:30
phiu
——–Start———
Definition: updateFluxes.H:33
volScalarField & T
Definition: createFields.H:53
fvScalarMatrix TSu(T, T.dimensions()*dimVolume/dimTime)