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
Copy file name to clipboardExpand all lines: 6_inv_free/time_integrator.py
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ def step_forward(x, e, v, m, vol, IB, mu_lame, lam, n, o, contact_area, mu, is_D
39
39
E_last=IP_val(x, e, x_tilde, m, vol, IB, mu_lame, lam, n, o, contact_area, (x-x_n) /h, mu_lambda, DBC, DBC_target, DBC_stiff, h)
40
40
41
41
# filter line search
42
+
# ANCHOR: apply_filter
42
43
alpha=min(BarrierEnergy.init_step_size(x, n, o, p), NeoHookeanEnergy.init_step_size(x, e, p)) # avoid interpenetration, tunneling, and inversion
44
+
# ANCHOR_END: apply_filter
43
45
whileIP_val(x+alpha*p, e, x_tilde, m, vol, IB, mu_lame, lam, n, o, contact_area, (x+alpha*p-x_n) /h, mu_lambda, DBC, DBC_target, DBC_stiff, h) >E_last:
0 commit comments