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
Forward compatibility: flex
[foam-extend-3.2.git]
/
applications
/
solvers
/
compressible
/
steadyCompressibleMRFFoam
/
UEqn.H
blob
1c39c948bf8a7a4ccfa9c845661690e4816d0517
1
// Solve the momentum equation
2
U.storePrevIter();
3
4
fvVectorMatrix UEqn
5
(
6
fvm::ddt(rho, U)
7
+ fvm::div(phi, U)
8
+ turbulence->divDevRhoReff(U)
9
);
10
11
// MRF: add Coriolis force
12
mrfZones.addCoriolis(rho, UEqn);
13
14
UEqn.relax();
15
16
eqnResidual = solve
17
(
18
UEqn == -fvc::grad(p)
19
).initialResidual();
20
21
maxResidual = max(eqnResidual, maxResidual);