ITHACA-FV
2023.1
Loading...
Searching...
No Matches
src
ITHACA_FOMPROBLEMS
unsteadymsrProblem
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
\*---------------------------------------------------------------------------*/
30
difft
.correctBoundaryConditions();
31
32
fvScalarMatrix
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
42
precEq1
.relax();
43
precEq1
.solve();
44
45
46
fvScalarMatrix
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
56
precEq2
.relax();
57
precEq2
.solve();
58
59
60
fvScalarMatrix
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
70
precEq3
.relax();
71
precEq3
.solve();
72
73
74
fvScalarMatrix
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
84
precEq4
.relax();
85
precEq4
.solve();
86
87
88
fvScalarMatrix
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
98
precEq5
.relax();
99
precEq5
.solve();
100
101
102
fvScalarMatrix
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
112
precEq6
.relax();
113
precEq6
.solve();
114
115
116
fvScalarMatrix
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
126
precEq7
.relax();
127
precEq7
.solve();
128
129
130
fvScalarMatrix
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
140
precEq8
.relax();
141
precEq8
.solve();
142
143
NSF
volScalarField & NSF
Definition
createConstants.H:119
difft
volScalarField & difft
Definition
createConstants.H:252
prec5
volScalarField & prec5
Definition
createFields_Neutronics.H:173
prec6
volScalarField & prec6
Definition
createFields_Neutronics.H:199
prec8
volScalarField & prec8
Definition
createFields_Neutronics.H:251
flux
volScalarField & flux
Definition
createFields_Neutronics.H:45
prec3
volScalarField & prec3
Definition
createFields_Neutronics.H:121
prec2
volScalarField & prec2
Definition
createFields_Neutronics.H:96
prec7
volScalarField & prec7
Definition
createFields_Neutronics.H:225
prec4
volScalarField & prec4
Definition
createFields_Neutronics.H:147
prec1
volScalarField & prec1
Definition
createFields_Neutronics.H:71
precEq2
fvScalarMatrix & precEq2
Definition
precEqns.H:27
precEq3
fvScalarMatrix & precEq3
Definition
precEqns.H:42
precEq6
fvScalarMatrix & precEq6
Definition
precEqns.H:88
precEq5
fvScalarMatrix & precEq5
Definition
precEqns.H:73
precEq7
fvScalarMatrix & precEq7
Definition
precEqns.H:103
precEq8
fvScalarMatrix & precEq8
Definition
precEqns.H:118
precEq1
fvScalarMatrix & precEq1
Definition
precEqns.H:13
precEq4
fvScalarMatrix & precEq4
Definition
precEqns.H:57
Sc
dimensionedScalar & Sc
Definition
readConstants.H:97
beta1
dimensionedScalar & beta1
Definition
readConstants_N.H:221
beta3
dimensionedScalar & beta3
Definition
readConstants_N.H:239
beta2
dimensionedScalar & beta2
Definition
readConstants_N.H:230
lam2
dimensionedScalar & lam2
Definition
readConstants_N.H:157
beta5
dimensionedScalar & beta5
Definition
readConstants_N.H:257
beta4
dimensionedScalar & beta4
Definition
readConstants_N.H:248
beta8
dimensionedScalar & beta8
Definition
readConstants_N.H:284
lam6
dimensionedScalar & lam6
Definition
readConstants_N.H:193
lam4
dimensionedScalar & lam4
Definition
readConstants_N.H:175
lam8
dimensionedScalar & lam8
Definition
readConstants_N.H:211
lam1
dimensionedScalar & lam1
Definition
readConstants_N.H:148
beta6
dimensionedScalar & beta6
Definition
readConstants_N.H:266
lam5
dimensionedScalar & lam5
Definition
readConstants_N.H:184
lam7
dimensionedScalar & lam7
Definition
readConstants_N.H:202
lam3
dimensionedScalar & lam3
Definition
readConstants_N.H:166
beta7
dimensionedScalar & beta7
Definition
readConstants_N.H:275
phi
surfaceScalarField & phi
Definition
createFields.H:68
turbulence
turbulence
Definition
createFields.H:88
Generated by
1.11.0