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
/
solidMechanics
/
elasticPlasticSolidFoam
/
calculateRelativeResidual.H
blob
12c0ffe58557997c8ee02a1e785410afa465fbff
1
{
2
scalar magDU = gMax(mag(DU.internalField()));
3
4
if (magDU < SMALL)
5
{
6
magDU = SMALL;
7
}
8
9
relativeResidual =
10
gMax
11
(
12
mag
13
(
14
DU.internalField()
15
- DU.prevIter().internalField()
16
)
17
/magDU
18
);
19
}