[ODE] How to do iterative

david@csworkbench.com david at csworkbench.com
Wed Mar 19 07:34:01 2003


No, there's still physics in the loop. rhs includes components of
external force, and lamda * J is added to the external forces each
iteration, so it's more than just iteratively solving a known linear
algebra problem,  I think....

David

>> A*lamda = b (plus some stuff for the LCP solver to simulate friction
>> and limits..)
>
> Once you've got a lambda, why not do this:
>
> next_lambda = prev_lambda + delta_lambda
>
> A * next_lambda = A * (prev_lambda + delta_lambda) = b
>
> therefore,
>
> A * delta_lambda = b - A * prev_lambda
>
> So you can solve for delta_lambda directly if you make your rhs   b -
> A * prev_lambda
>
> This is why I asked whether you'd gotten all the physics out of the
> loop and were left only with linear algebra...
>
> - Martin
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode