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
/
multiphase
/
settlingFoam
/
UEqn.H
blob
fc750765b7220efea08aeb248353703984d60e13
1
// Solve the Momentum equation
2
3
fvVectorMatrix UEqn
4
(
5
fvm::ddt(rho, U)
6
+ fvm::div(phi, U)
7
+ fvc::div
8
(
9
(Alpha/(scalar(1.001) - Alpha))*(sqr(rhoc)/rho)*Vdj*Vdj,
10
"div(phiVdj,Vdj)"
11
)
12
- fvm::laplacian(mu, U, "laplacian(muEff,U)")
13
);
14
15
UEqn.relax();
16
17
if (pimple.momentumPredictor())
18
{
19
solve
20
(
21
UEqn
22
==
23
fvc::reconstruct
24
(
25
(
26
- ghf*fvc::snGrad(rho)
27
- fvc::snGrad(p_rgh)
28
)*mesh.magSf()
29
)
30
);
31
}