19 lines
275 B
C++
19 lines
275 B
C++
{
|
|
scalar magDEp = gMax(mag(DEpsilonP.internalField()));
|
|
|
|
if (magDEp < SMALL)
|
|
{
|
|
magDEp = SMALL;
|
|
}
|
|
|
|
plasticResidual =
|
|
gMax
|
|
(
|
|
mag
|
|
(
|
|
DEpsilonP.internalField()
|
|
- DEpsilonP.prevIter().internalField()
|
|
)
|
|
/magDEp
|
|
);
|
|
}
|