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
/
compressible
/
steadyCompressibleSRFFoam
/
UEqn.H
blob
334595328b649d750e1b044fda1a32821708e2cb
1
// Solve the momentum equation
2
Urel.storePrevIter();
3
4
fvVectorMatrix UrelEqn
5
(
6
fvm::ddt(rho, Urel)
7
+ fvm::div(phi, Urel)
8
+ turbulence->divDevRhoReff(Urel)
9
+ rho*SRF->Su()
10
);
11
12
UrelEqn.relax();
13
14
eqnResidual = solve
15
(
16
UrelEqn == -fvc::grad(p)
17
).initialResidual();
18
19
maxResidual = max(eqnResidual, maxResidual);