Loading...
Searching...
No Matches
precEqns.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 precEq1
33(
34 fvm::ddt(prec1)
35 ==
36 - fvm::div(phi, prec1)
37 + fvm::laplacian(turbulence->nu() / Sc + difft, prec1)
38 - fvm::Sp(lam1, prec1)
39 + beta1* NSF* flux
40 );
41
42precEq1.relax();
43precEq1.solve();
44
45
46fvScalarMatrix precEq2
47(
48 fvm::ddt(prec2)
49 ==
50 - fvm::div(phi, prec2)
51 + fvm::laplacian(turbulence->nu() / Sc + difft, prec2)
52 - fvm::Sp(lam2, prec2)
53 + beta2* NSF* flux
54 );
55
56precEq2.relax();
57precEq2.solve();
58
59
60fvScalarMatrix precEq3
61(
62 fvm::ddt(prec3)
63 ==
64 - fvm::div(phi, prec3)
65 + fvm::laplacian(turbulence->nu() / Sc + difft, prec3)
66 - fvm::Sp(lam3, prec3)
67 + beta3* NSF* flux
68 );
69
70precEq3.relax();
71precEq3.solve();
72
73
74fvScalarMatrix precEq4
75(
76 fvm::ddt(prec4)
77 ==
78 - fvm::div(phi, prec4)
79 + fvm::laplacian(turbulence->nu() / Sc + difft, prec4)
80 - fvm::Sp(lam4, prec4)
81 + beta4* NSF* flux
82 );
83
84precEq4.relax();
85precEq4.solve();
86
87
88fvScalarMatrix precEq5
89(
90 fvm::ddt(prec5)
91 ==
92 - fvm::div(phi, prec5)
93 + fvm::laplacian(turbulence->nu() / Sc + difft, prec5)
94 - fvm::Sp(lam5, prec5)
95 + beta5* NSF* flux
96 );
97
98precEq5.relax();
99precEq5.solve();
100
101
102fvScalarMatrix precEq6
103(
104 fvm::ddt(prec6)
105 ==
106 - fvm::div(phi, prec6)
107 + fvm::laplacian(turbulence->nu() / Sc + difft, prec6)
108 - fvm::Sp(lam6, prec6)
109 + beta6* NSF* flux
110 );
111
112precEq6.relax();
113precEq6.solve();
114
115
116fvScalarMatrix precEq7
117(
118 fvm::ddt(prec7)
119 ==
120 - fvm::div(phi, prec7)
121 + fvm::laplacian(turbulence->nu() / Sc + difft, prec7)
122 - fvm::Sp(lam7, prec7)
123 + beta7* NSF* flux
124 );
125
126precEq7.relax();
127precEq7.solve();
128
129
130fvScalarMatrix precEq8
131(
132 fvm::ddt(prec8)
133 ==
134 - fvm::div(phi, prec8)
135 + fvm::laplacian(turbulence->nu() / Sc + difft, prec8)
136 - fvm::Sp(lam8, prec8)
137 + beta8* NSF* flux
138 );
139
140precEq8.relax();
141precEq8.solve();
142
143
volScalarField & NSF
volScalarField & difft
volScalarField & prec5
volScalarField & prec6
volScalarField & prec8
volScalarField & flux
volScalarField & prec3
volScalarField & prec2
volScalarField & prec7
volScalarField & prec4
volScalarField & prec1
fvScalarMatrix & precEq2
Definition precEqns.H:27
fvScalarMatrix & precEq3
Definition precEqns.H:42
fvScalarMatrix & precEq6
Definition precEqns.H:88
fvScalarMatrix & precEq5
Definition precEqns.H:73
fvScalarMatrix & precEq7
Definition precEqns.H:103
fvScalarMatrix & precEq8
Definition precEqns.H:118
fvScalarMatrix & precEq1
Definition precEqns.H:13
fvScalarMatrix & precEq4
Definition precEqns.H:57
dimensionedScalar & Sc
dimensionedScalar & beta1
dimensionedScalar & beta3
dimensionedScalar & beta2
dimensionedScalar & lam2
dimensionedScalar & beta5
dimensionedScalar & beta4
dimensionedScalar & beta8
dimensionedScalar & lam6
dimensionedScalar & lam4
dimensionedScalar & lam8
dimensionedScalar & lam1
dimensionedScalar & beta6
dimensionedScalar & lam5
dimensionedScalar & lam7
dimensionedScalar & lam3
dimensionedScalar & beta7
surfaceScalarField & phi
turbulence