Giter VIP home page Giter VIP logo

Comments (4)

hmgaspar avatar hmgaspar commented on July 24, 2024

If too difficult, use your cheating (deadline: Xmas)

from vesseljs.

MrEranwe avatar MrEranwe commented on July 24, 2024

Hi,

I've added the GZ calculations by hand. It is compared to the Maxsurf GZ curve.
The hand values are right, I've checked it graphically with AutoCad, so probably there is an error in the assumptions.

The code is commented, but the assumption is that the area that goes outside of the water should be the same as the area that goes in, since the mass distribution in the hull is the same. When the areas are equal, it calculates the perpendicular to the waterline in that point and then, the perpendicular line again that passes through Keel (0,0).

I'll keep looking when I finish the last exam next week.

from vesseljs.

EliasHasle avatar EliasHasle commented on July 24, 2024

Honestly, I think this GZ curve calculation belongs in the shiplab trials, not vesseljs, because it is not very integrated with anything in the library. I would suggest factoring out the contents of the outer loop to a GZ function, for clarity and generality. And solving the equation analytically, instead of guessing tens of thousands of different values.

Edit: Sorry, my comment initially stated that the equation was piecewise linear, which I now understand it isn't. But it can nonetheless be solved analytically by accounting for a limited number of differing cases.

from vesseljs.

hmgaspar avatar hmgaspar commented on July 24, 2024

Closing - we can always open a new when this is priority again.

from vesseljs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.