repo.or.cz
/
foam-extend-4.0.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Backported heat transfer solvers and tutorials (vanilla OF 3.0.1) (in chtMultiRegionF...
[foam-extend-4.0.git]
/
applications
/
solvers
/
heatTransfer
/
buoyantPisoFoam
/
UEqn.H
blob
230f1866145ae6a0a0fc7852fcffb333b16985c6
1
// Solve the Momentum equation
2
3
fvVectorMatrix UEqn
4
(
5
fvm::ddt(rho, U)
6
+ fvm::div(phi, U)
7
+ turbulence->divDevRhoReff(U)
8
);
9
10
UEqn.relax();
11
12
if (piso.momentumPredictor())
13
{
14
solve
15
(
16
UEqn
17
==
18
fvc::reconstruct
19
(
20
fvc::interpolate(rho)*(g & mesh.Sf())
21
- fvc::snGrad(p)*mesh.magSf()
22
)
23
);
24
}