Scripting Kangaroo 2: check for convergence? - Grasshopper2024-03-29T00:14:42Zhttps://www.grasshopper3d.com/forum/topics/scripting-kangaroo-2-check-for-convergence?groupUrl=kangaroo&commentId=2985220%3AComment%3A1891628&x=1&feed=yes&xn_auth=noHi Daniel,
Thank you so much…tag:www.grasshopper3d.com,2018-03-06:2985220:Comment:18916282018-03-06T16:20:52.811ZOliver Bucklinhttps://www.grasshopper3d.com/profile/OliverBucklin
<p>Hi Daniel,</p>
<p></p>
<p>Thank you so much! that is exactly what I was looking for.</p>
<p>You Rock!</p>
<p></p>
<p>Oliver</p>
<p></p>
<p>Hi Daniel,</p>
<p></p>
<p>Thank you so much! that is exactly what I was looking for.</p>
<p>You Rock!</p>
<p></p>
<p>Oliver</p>
<p></p> Hi Oliver,
You can use Kanga…tag:www.grasshopper3d.com,2018-03-06:2985220:Comment:18913592018-03-06T10:41:04.987ZDaniel Pikerhttps://www.grasshopper3d.com/profile/DanielPiker
<p>Hi Oliver,</p>
<p></p>
<p>You can use <strong><em>KangarooSolver.PhysicalSystem.Getvsum()</em></strong> as a check for convergence.</p>
<p>This returns the sum of the squared lengths of the velocity vectors of all particles, so when it gets close enough to zero things can be considered to have stopped moving.</p>
<p>There's an example showing this in use here:…</p>
<p></p>
<p>Hi Oliver,</p>
<p></p>
<p>You can use <strong><em>KangarooSolver.PhysicalSystem.Getvsum()</em></strong> as a check for convergence.</p>
<p>This returns the sum of the squared lengths of the velocity vectors of all particles, so when it gets close enough to zero things can be considered to have stopped moving.</p>
<p>There's an example showing this in use here:</p>
<p><a href="https://github.com/Dan-Piker/Kangaroo-examples/blob/master/scripting/TensileRelaxScript.gh" target="_blank">https://github.com/Dan-Piker/Kangaroo-examples/blob/master/scripting/TensileRelaxScript.gh</a></p>
<p></p>