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
/
elasticPlasticNonLinTLSolidFoam
/
calculateRelativeResidual.H
blob
1bf4ba66bd1a5a66db08bc32dc3b2f5465b264f3
1
{
2
scalar maxDU = gMax(mag(DU.internalField()));
3
4
relativeResidual =
5
gMax
6
(
7
mag(DU.internalField() - DU.prevIter().internalField())
8
/(maxDU + SMALL)
9
);
10
11
//resid = (DU - DU.prevIter())/(mag(DU)+dimensionedScalar("small",dimLength,SMALL));
12
}