repo.or.cz
/
foam-extend-3.2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git]
/
applications
/
solvers
/
heatTransfer
/
buoyantSimpleFoam
/
UEqn.H
blob
0170d6e38446f8831bb4c170c7190a1742708e10
1
// Solve the Momentum equation
2
3
tmp<fvVectorMatrix> UEqn
4
(
5
fvm::div(phi, U)
6
+ turbulence->divDevRhoReff(U)
7
);
8
9
UEqn().relax();
10
11
eqnResidual = solve
12
(
13
UEqn()
14
==
15
fvc::reconstruct
16
(
17
fvc::interpolate(rho)*(g & mesh.Sf())
18
- fvc::snGrad(p)*mesh.magSf()
19
)
20
).initialResidual();
21
22
maxResidual = max(eqnResidual, maxResidual);