Hoopsnake

Update:

Hoopsnake is now Open Source!

Check out the repo in Github!

Fork it and fix it :)

Hoopsnake is a component that allows feedback loops within Grasshopper.

Double loop and hydrostatics?

Hello!

First of all, thanks for the HOOPSNAKE component!

I am trying to solve hydrostatic stability with Grasshooper (and hoopsnake).

Actually I already did a script wich looks, more or less,  the same as the example: http://vimeo.com/25182853

But with my script, I canot align the center of gravity with the center of buoyancy longitudinally.

What I would like to do is to have 3 inputs:

- Heel angle (Degrees)

- Displacement (Tons)

- Center of gravity position of the ship (X, Y, Z)

And the script acts on the hull depth (like now) AND on the trim angle, so the GC and BC can be aliged longitudinally.

Anobody has an idea ?

Simon

  • up

    Fred Becquelin

    This is more a discussion for the tuna group I think.

    Here's how I did it :

    set the dwl right

    compute deltaX (horizontal distance betwwen CB and CG)

    repeat while deltaX > 1mm

           compute le longitudinal metacenter M

           compute the angle alpha = CB,M,CG

           rotate the hull by alpha times some convergence factor (very close to 1 actually)

           set the dwl right again (meaning a nested loop or a "displacement fitter" such as

           mine on opensea)

          compute deltaX

    end repeat

    1