7.1.1 • Published 5 years ago

@hamgom95/bikecalc v7.1.1

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

@hamgom95/bikecalc

Bicycle gear calculator.

API Documentation

Constants

aeroDrag ⇒ number

Calculate aerodynamic drag force.

Kind: global constant
Returns: number - Aerodynamic drag force (in N).

ParamTypeDescription
CdnumberThe drag coefficient.
AnumberThe frontal area (in m2).
pnumberThe air density (in kg/m3).
unumberThe air velocity relative to the object (in m/s).

gearInches ⇒ number

Calculate gear inches for drivetrain.

Kind: global constant
Returns: number - Gear inches

ParamTypeDescription
chainringTeethnumberThe number of teeth on the front chainring.
sprocketTeethnumberThe number of teeth on the rear sprocket.
wheelDiameternumberThe wheel diameter in meters.

development ⇒ number

Calculate development of drivetrain.

Kind: global constant
Returns: number - Development in meters.

ParamTypeDescription
chainringTeethnumberThe number of teeth on the front chainring.
sprocketTeethnumberThe number of teeth on the rear sprocket.
wheelDiameternumberThe wheel diameter in meters.

gainRatio ⇒ number

Calculate gain ratio for drivetrain.

Kind: global constant
Returns: number - Gain ratio

ParamTypeDescription
chainringTeethnumberThe number of teeth on the front chainring.
sprocketTeethnumberThe number of teeth on the rear sprocket.
wheelDiameternumberThe wheel diameter in meters.
crankLengthnumberThe crank length in meters.

speedAtCadence ⇒ number

Calculate speed (m/s) at cadence for drivetrain.

Kind: global constant
Returns: number - speed (in m/s)

ParamTypeDescription
chainringTeethnumberThe number of teeth on the front chainring.
sprocketTeethnumberThe number of teeth on the rear sprocket.
wheelDiameternumberThe wheel diameter in meters.
cadencenumberCadence (in revolutions per minute)

skidPatches ⇒ number

Calculate number of skid patches for gear combination.

Kind: global constant
Returns: number - The number of skid patches.

ParamTypeDefaultDescription
chainringTeethnumberThe number of teeth on the front chainring.
sprocketTeethnumberThe number of teeth on the rear sprocket.
ambidextrousbooleantrueWhether the rider is an ambidextrous skidder.

calories ⇒ number

Calculate estimated energy expenditure while cycling at a specific power.

Kind: global constant
Returns: number - burned energy in kilocalories

ParamTypeDescription
wattsnumberproduced average power over interval in watts
secondsnumbernumber of seconds where power was produced

power ⇒ number

Calculate power for cadence and force.

Kind: global constant
Returns: number - The power (in Watt).

ParamTypeDescription
crankLengthnumberThe cranklength (in meters).
cadencenumberThe cadence (in revolutions per minute).
forcenumberThe pedalforce (in N).

force ⇒ number

Calculate force for power and cadence.

Kind: global constant
Returns: number - The pedalforce (in N).

ParamTypeDescription
crankLengthnumberThe cranklength (in meters).
cadencenumberThe cadence (in revolutions per minute).
powernumberThe power (in Watt).

pedalVelocity ⇒ number

Calculate linear pedal velocity from cadence.

Kind: global constant
Returns: number - The linear pedal velocity (in m/s).

ParamTypeDescription
crankLengthnumberThe cranklength (in meters).
cadencenumberThe cadence (in revolutions per minute)
7.1.1

5 years ago

7.1.0

5 years ago

7.0.0

5 years ago

6.0.0

5 years ago

5.0.0

5 years ago

4.0.0

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago