ITHACA-FV
2026.04
Loading...
Searching...
No Matches
src
ITHACA_FOMPROBLEMS
Fsi
UEqn.H
1
2
/*---------------------------------------------------------------------------*\
3
██╗████████╗██╗ ██╗ █████╗ ██████╗ █████╗ ███████╗██╗ ██╗
4
██║╚══██╔══╝██║ ██║██╔══██╗██╔════╝██╔══██╗ ██╔════╝██║ ██║
5
██║ ██║ ███████║███████║██║ ███████║█████╗█████╗ ██║ ██║
6
██║ ██║ ██╔══██║██╔══██║██║ ██╔══██║╚════╝██╔══╝ ╚██╗ ██╔╝
7
██║ ██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ╚████╔╝
8
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═══╝
9
10
* In real Time Highly Advanced Computational Applications for Finite Volumes
11
* Copyright (C) 2017 by the ITHACA-FV authors
12
-------------------------------------------------------------------------------
13
License
14
This file is part of ITHACA-FV
15
ITHACA-FV is free software: you can redistribute it and/or modify
16
it under the terms of the GNU Lesser 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
ITHACA-FV is distributed in the hope that it will be useful,
20
but WITHOUT ANY WARRANTY; without even the implied warranty of
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
GNU Lesser General Public License for more details.
23
You should have received a copy of the GNU Lesser General Public License
24
along with ITHACA-FV. If not, see <http://www.gnu.org/licenses/>.
25
Description
26
Example of steady NS Reduction Problem solved by the use of the SIMPLE algorithm
27
SourceFiles
28
fsiBasic.C
29
\*---------------------------------------------------------------------------*/
30
31
// Solve the Momentum equation
32
33
//MRF.correctBoundaryVelocity(U);
34
35
tmp<fvVectorMatrix> tUEqn
36
(
37
fvm::ddt(U)
38
+ fvc::div(phi, U)
39
//+ MRF.DDt(U)
40
+ turbulence->divDevReff(U)
41
== fvOptions(U)
42
);
43
fvVectorMatrix& UEqn = tUEqn.ref();
44
45
UEqn.relax();
46
47
fvOptions.constrain(UEqn);
48
49
if
(pimple.momentumPredictor())
50
{
51
solve(UEqn == -fvc::grad(p));
52
// std::cout << "============" << "the divergence of the velocity is "<< "\n";
53
// Info<< max(mag(fvc::div(U))) << "\n";
54
fvOptions.correct(U);
55
}
Generated by
1.16.1