Loading...
Searching...
No Matches
decEqns.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
13 License
14 This file is part of ITHACA-FV
15
16 ITHACA-FV is free software: you can redistribute it and/or modify
17 it under the terms of the GNU Lesser General Public License as published by
18 the Free Software Foundation, either version 3 of the License, or
19 (at your option) any later version.
20
21 ITHACA-FV is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU Lesser General Public License for more details.
25
26 You should have received a copy of the GNU Lesser General Public License
27 along with ITHACA-FV. If not, see <http://www.gnu.org/licenses/>.
28
29\*---------------------------------------------------------------------------*/
30difft.correctBoundaryConditions();
31
32fvScalarMatrix decEq1
33(
34 fvm::ddt(dec1)
35 ==
36 - fvm::div(phi, dec1)
37 + fvm::laplacian(turbulence->nu() / Sc + difft, dec1)
38 - fvm::Sp(decLam1, dec1)
39 + decBeta1* SP* flux
40 );
41
42decEq1.relax();
43decEq1.solve();
44
45
46
47
48fvScalarMatrix decEq2
49(
50 fvm::ddt(dec2)
51 ==
52 - fvm::div(phi, dec2)
53 + fvm::laplacian(turbulence->nu() / Sc + difft, dec2)
54 - fvm::Sp(decLam2, dec2)
55 + decBeta2* SP* flux
56 );
57
58decEq2.relax();
59decEq2.solve();
60
61
62
63
64fvScalarMatrix decEq3
65(
66 fvm::ddt(dec3)
67 ==
68 - fvm::div(phi, dec3)
69 + fvm::laplacian(turbulence->nu() / Sc + difft, dec3)
70 - fvm::Sp(decLam3, dec3)
71 + decBeta3* SP* flux
72 );
73
74decEq3.relax();
75decEq3.solve();
76
77
volScalarField & SP
volScalarField & difft
volScalarField & flux
volScalarField & dec3
volScalarField & dec1
volScalarField & dec2
fvScalarMatrix & decEq3
Definition decEqns.H:43
fvScalarMatrix & decEq1
Definition decEqns.H:13
fvScalarMatrix & decEq2
Definition decEqns.H:28
dimensionedScalar & Sc
dimensionedScalar & decLam1
dimensionedScalar & decBeta3
dimensionedScalar & decBeta1
dimensionedScalar & decBeta2
dimensionedScalar & decLam3
dimensionedScalar & decLam2
surfaceScalarField & phi
turbulence