You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Real alpha = static_cast<Real>(1.0) / (youngsModulus * dt * dt);
278
-
// Note that grad C = 1/C grad U'
278
+
// Note that grad C = 1/C grad U', by multiplying C^2 to alpha, we now can add the factor C^2 to the nominator
279
279
sum_normGradU_ += C * C * alpha;
280
280
281
281
if (sum_normGradU_ < eps)
282
282
returnfalse;
283
283
284
284
// compute scaling factor
285
-
const Real s = (C * C + C * alpha * multiplier) / sum_normGradU_;
285
+
const Real lambda = -C * (C + alpha * multiplier) / sum_normGradU_; // since in the next step we use gradU instead of gradC, we only add the factor C instead of C^2
0 commit comments