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
/
elasticThermalSolidFoam
/
calculateRelResU.H
blob
9c9ea75c8907780fd74b1812f78c0368985f61b1
1
{
2
// displacement
3
scalar maxDU = gMax(mag(U.internalField() - U.oldTime().internalField()));
4
relResU =
5
gMax
6
(
7
mag(U.internalField() - U.prevIter().internalField())
8
/(maxDU + SMALL)
9
);
10
}