repo.or.cz
/
OpenFOAM-2.0.x.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git]
/
applications
/
solvers
/
incompressible
/
pimpleFoam
/
pimpleDyMFoam
/
UEqn.H
blob
e43a40b94b2c958e9f4de3fcd7bf0ab7a0730c1c
1
// Solve the Momentum equation
2
3
tmp<fvVectorMatrix> UEqn
4
(
5
fvm::ddt(U)
6
+ fvm::div(phi, U)
7
+ turbulence->divDevReff(U)
8
);
9
10
UEqn().relax();
11
12
rAU = 1.0/UEqn().A();
13
14
if (pimple.momentumPredictor())
15
{
16
solve(UEqn() == -fvc::grad(p));
17
}
18
else
19
{
20
U = rAU*(UEqn().H() - fvc::grad(p));
21
U.correctBoundaryConditions();
22
}