I get interesting results if I draw a figure 8 (or a figure ∞). I wonder if it's treating one of the lobes as having negative density.
Draw an iceberg and see how it would float in water
71–80 of 179 posts
Re: Draw an iceberg and see how it would float in water
#72Ah well... good times, and watch out for rotations that don’t matter!
Re: Draw an iceberg and see how it would float in water
#73I get interesting results if I draw a figure 8 (or a figure ∞). I wonder if it's treating one of the lobes as having negative density.
The code must somehow compute bouyancy in a way that reflects the object's arbitrarily complex shape. It's likely carving the object up into some number of smaller primitive objects whose equations for bouyancy are known. In order to make the whole object move as one rigid body, though, it's probably computing force vectors for each primitive, and then summing them together based on the overall object's center of mas…
It was one of the grand challenges in the 00's, quietly solved by John Ratcliff. Then a few people solved it after him.
It's a fun algorithm. You basically slice and dice, like chopping a potato, then recombine small parts together based on a heuristic.
Re: Draw an iceberg and see how it would float in water
#74I get interesting results if I draw a figure 8 (or a figure ∞). I wonder if it's treating one of the lobes as having negative density.
The code must somehow compute bouyancy in a way that reflects the object's arbitrarily complex shape. It's likely carving the object up into some number of smaller primitive objects whose equations for bouyancy are known. In order to make the whole object move as one rigid body, though, it's probably computing force vectors for each primitive, and then summing them together based on the overall object's center of mas…
Re: Draw an iceberg and see how it would float in water
#75Earlier quoted context omitted.
It’s interesting that proponents of a simpler web argue in favor of Jquery for a use case where jquery is in fact very easy to live without. One would almost think dogmatic thinking is involved.
> It’s interesting that proponents of a simpler web argue in favor of Jquery for a use case where jquery is in fact very easy to live without. One would almost think dogmatic thinking is involved. But to do without it, you will end up rewriting the shortcuts and utility functions that JQuery provides, effectively recreating a project-specific, less-tested and less-supported JQuery.
Re: Draw an iceberg and see how it would float in water
#76The twitter thread links to this article about stable equilibria explaining some of the physics https://physicstoday.scitation.org/doi/10.1063/PT.3.4373 which in turn links to this paper, E. N. Gilbert's How Things Float , which gives much more detailed mathematical explanation PDF: http://111.90.145.71/scimag/get.php?doi=10.2307/2325023&key=...
Re: Draw an iceberg and see how it would float in water
#77I get interesting results if I draw a figure 8 (or a figure ∞). I wonder if it's treating one of the lobes as having negative density.
Re: Draw an iceberg and see how it would float in water
#78Draw a horizontal line under the water, then return back to its start with a wavy line crossing over the first line repeatedly. Very strange things happen. The first time i tried, it leapt out of the water then flapped around..
Re: Draw an iceberg and see how it would float in water
#79Re: Draw an iceberg and see how it would float in water
#80I get interesting results if I draw a figure 8 (or a figure ∞). I wonder if it's treating one of the lobes as having negative density.
I spent... longer than I should have trying to take advantage of this bug to recreate a stable version of the stereotypical tall iceberg that the original tweet was complaining about. https://imgur.com/a/WG6D0RJ
(there are about 4 completed saw tooths above the screen)