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
Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git]
/
applications
/
solvers
/
solidMechanics
/
elasticOrthoAcpSolidFoam
/
calculateRelativeResidual.H
blob
74d7552dad9bd2ab29f8608b0c14e1fb6f4faf02
1
{
2
scalar maxDU = gMax(mag(U.internalField() - U.oldTime().internalField()));
3
4
relativeResidual =
5
gMax
6
(
7
mag(U.internalField() - U.prevIter().internalField())
8
/(maxDU + SMALL)
9
);
10
11
// resid = (U - U.prevIter())/(max(mag(U-U.oldTime()))+dimensionedScalar("SMALL", dimLength, SMALL));
12
}