0.2.1 • Published 6 years ago

sailboat-statistics v0.2.1

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

Sailboat Statistics

Functions to calculate common sailboat statistics

Installation

# NPM
npm install sailboat-statistics --save

# Yarn
yarn add sailboat-statistics

Getting Started

import { getTheoreticalHullSpeed } from sailboat-statistics;

let lengthOfWaterline = 30;
let hullSpeed = getTheoreticalHullSpeed(lengthOfWaterline);

console.log(hullSpeed); // 7.34

Documentation

getTheoreticalHullSpeed(lwl)

ArgumentsDescription
lwlLength of waterline in feet

getBallastDisplacementRatio(displacement, ballast)

ArgumentsDescription
displacementDisplacement in pounds
ballastBallast in pounds

getDisplacementLengthRatio(displacement, lwl)

ArgumentsDescription
displacementDisplacement in pounds
lwlLength of waterline in feet

getSailAreaDisplacementRatio(sailArea, displacement)

ArgumentsDescription
sailAreaSail area in square feet
displacementDisplacement in pounds

getCapsizeRatio(beam, displacement)

ArgumentsDescription
beamBeam in feet
displacementDisplacement in pounds

getMotionComfort(loa, lwl, beam, displacment)

ArgumentsDescription
loaLength overall in feet
lwlLength of waterline in feet
beamBeam in feet
displacementDisplacement in pounds

License

MIT License Copyright (c) 2018 Joel Colucci