ITHACA-FV
2023.1
Loading...
Searching...
No Matches
src
ITHACA_FOMPROBLEMS
UnsteadyBB
TEqn.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
██╗████████╗██╗ ██╗ █████╗ ██████╗ █████╗ ███████╗██╗ ██╗
3
██║╚══██╔══╝██║ ██║██╔══██╗██╔════╝██╔══██╗ ██╔════╝██║ ██║
4
██║ ██║ ███████║███████║██║ ███████║█████╗█████╗ ██║ ██║
5
██║ ██║ ██╔══██║██╔══██║██║ ██╔══██║╚════╝██╔══╝ ╚██╗ ██╔╝
6
██║ ██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ╚████╔╝
7
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═══╝
8
9
* In real Time Highly Advanced Computational Applications for Finite Volumes
10
* Copyright (C) 2017 by the ITHACA-FV authors
11
-------------------------------------------------------------------------------
12
License
13
This file is part of ITHACA-FV
14
ITHACA-FV is free software: you can redistribute it and/or modify
15
it under the terms of the GNU Lesser 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
ITHACA-FV is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU Lesser General Public License for more details.
22
You should have received a copy of the GNU Lesser General Public License
23
along with ITHACA-FV. If not, see <http://www.gnu.org/licenses/>.
24
\*---------------------------------------------------------------------------*/
25
{
26
alphat
=
turbulence
->nut() /
Prt
;
27
alphat
.correctBoundaryConditions();
28
29
volScalarField
alphaEff
(
"alphaEff"
,
turbulence
->nu() /
Pr
+
alphat
);
30
31
fvScalarMatrix
TEqn
32
(
33
fvm::ddt(
T
)
34
+ fvm::div(
phi
,
T
)
35
- fvm::laplacian(
alphaEff
,
T
)
36
);
37
38
TEqn
.relax();
39
40
TEqn
.solve();
41
42
rhok
= 1.0 -
beta
* (
T
-
TRef
);
43
}
44
45
46
rhok
rhok
Definition
TEqn.H:42
alphaEff
volScalarField alphaEff("alphaEff", turbulence->nu()/Pr+alphat)
T
volScalarField & T
Definition
createT.H:46
TEqn
fvScalarMatrix & TEqn
Definition
TEqn.H:15
alphat
volScalarField & alphat
Definition
createConstants.H:235
Prt
dimensionedScalar & Prt
Definition
readConstants.H:48
Pr
dimensionedScalar & Pr
Definition
readConstants.H:39
phi
surfaceScalarField & phi
Definition
createFields.H:68
TRef
dimensionedScalar & TRef
Definition
createFields.H:137
beta
dimensionedScalar & beta
Definition
createFields.H:125
turbulence
turbulence
Definition
createFields.H:88
Generated by
1.11.0