Giter VIP home page Giter VIP logo

Comments (8)

EliasHasle avatar EliasHasle commented on July 24, 2024

@MrEranwe All of the required attributes are (in theory) calculated by the existing methods in Vessel and Hull.

You will have to do something like this (in a method in Vessel.prototype. vesselState will be a parameter):

var T = this.calculateDraft(vesselState);
var ha = this.structure.hull.calculateAttributesAtDraft(T);
var w = this.getWeight(vesselState);

Then find the values you need for the calculation within these three results.

from vesseljs.

EliasHasle avatar EliasHasle commented on July 24, 2024

I have created a dev branch. It would be nice if you make changes only to that one initially, so that we can review, test and revide the code before committing to master.

I must admit that I am not used to handling these things, but I can see that it is valuable to be able to do so. We definitely don't want to be overwriting each other all the time.

from vesseljs.

hmgaspar avatar hmgaspar commented on July 24, 2024

GM Solved

from vesseljs.

hmgaspar avatar hmgaspar commented on July 24, 2024

BM KB is misplaced, change it.

from vesseljs.

hmgaspar avatar hmgaspar commented on July 24, 2024

Get real VCB/TCB values from Buoyancy calculations

from vesseljs.

EliasHasle avatar EliasHasle commented on July 24, 2024

Since we have both Ixwp and Iywp, we should be able to calculate longitudinal and transverse GM. :-)

from vesseljs.

EliasHasle avatar EliasHasle commented on July 24, 2024

@MrEranwe Would you mind checking that I have made the new stability calculation method right? I replaced the placeholder calculations with values from the corrected hull calculations, and added distinction between longitudinal values and transverse values. I use waterplane Ix for BMT and GMT, and waterplane Iy for BML and GML, and set BM to BMT and GM to GMT (returning GMT, GML GMT, BML separately too). Is it OK?

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.