Double loop and hydrostatics? - Grasshopper2024-03-28T21:11:27Zhttps://www.grasshopper3d.com/forum/topics/double-loop-and-hydrostatics?groupUrl=hoopsnake&feed=yes&xn_auth=noNo nested loops. It would wor…tag:www.grasshopper3d.com,2018-06-16:2985220:Comment:19149542018-06-16T03:01:34.622ZAldo Sani Jr.https://www.grasshopper3d.com/profile/AldoSaniJr
<p>No nested loops. It would work if they were independent. CG depends on both. You can solve with a single loop changing both hull depth and hull angle at every single loop. Be sure to rotate the heel angle around the floating area centroid (not volume centroid). That makes the displacement less dependent of the heel angle change. Make both converge and make the condition to stop when both treshholds are met. One will be more precise than the other (other will meet the treshhold before and…</p>
<p>No nested loops. It would work if they were independent. CG depends on both. You can solve with a single loop changing both hull depth and hull angle at every single loop. Be sure to rotate the heel angle around the floating area centroid (not volume centroid). That makes the displacement less dependent of the heel angle change. Make both converge and make the condition to stop when both treshholds are met. One will be more precise than the other (other will meet the treshhold before and continue to converge). To make a very fast convergence use Newton Rapson: solve both at the same time but with a very small diference (small delta similar to the differential), E.g.: . Use one hull angle and another .1 degree larger and a deppth and another 1 mm deeper. Use the diferentials to calculate the next angle and depth.</p>
<p></p>
<p>I solved the keel line curvature to meet the WL and displacement I set using exactly the above described procedure. Instead of angle I use a 2nd degree NURBS curve as the keel curve and change both x and z coordinates of the single NURBS central control point. The hole bottom of the hull is dependent on the keel curve. Making it deeper increase the displacement. bringing the control point backward or forward changes the displacemente center of the hull until it meets the input GC of the boat. It works!</p> This is more a discussion for…tag:www.grasshopper3d.com,2014-05-16:2985220:Comment:10711882014-05-16T13:14:25.204ZFred Becquelinhttps://www.grasshopper3d.com/profile/FBecquelin
<p>This is more a discussion for the tuna group I think.</p>
<p>Here's how I did it :</p>
<p></p>
<blockquote><p>set the dwl right</p>
<p>compute deltaX (horizontal distance betwwen CB and CG)</p>
<p>repeat while deltaX > 1mm</p>
<p> compute le longitudinal metacenter M</p>
<p> compute the angle alpha = CB,M,CG</p>
<p> rotate the hull by alpha times some convergence factor (very close to 1 actually)</p>
<p> set the dwl right again (meaning a nested loop or a…</p>
</blockquote>
<p>This is more a discussion for the tuna group I think.</p>
<p>Here's how I did it :</p>
<p></p>
<blockquote><p>set the dwl right</p>
<p>compute deltaX (horizontal distance betwwen CB and CG)</p>
<p>repeat while deltaX > 1mm</p>
<p> compute le longitudinal metacenter M</p>
<p> compute the angle alpha = CB,M,CG</p>
<p> rotate the hull by alpha times some convergence factor (very close to 1 actually)</p>
<p> set the dwl right again (meaning a nested loop or a "displacement fitter" such as</p>
<p> mine on opensea)</p>
<p> compute deltaX</p>
<p>end repeat</p>
</blockquote>