Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
applications
solvers
heatTransfer
buoyantBoussinesqPimpleFoam
UEqn.H
Go to the documentation of this file.
1
// Solve the momentum equation
2
3
fvVectorMatrix
UEqn
4
(
5
fvm::ddt
(
U
)
6
+
fvm::div
(
phi
,
U
)
7
+
turbulence
->divDevReff(
U
)
8
);
9
10
UEqn
.relax();
11
12
if
(
momentumPredictor
)
13
{
14
solve
15
(
16
UEqn
17
==
18
fvc::reconstruct
19
(
20
(
21
-
ghf
*
fvc::snGrad
(
rhok
)
22
-
fvc::snGrad
(
p_rgh
)
23
)*
mesh
.magSf()
24
),
25
mesh
.solver(
U
.select(finalIter))
26
);
27
}