Hydraulic Calculator
This library performs basic hydraulic (fluid power) calculations.
Installation
npm install hydraulic-calculator
Usage
const hydcalc = require('hydraulic-calculator')
Pump Flow
Calculate the output flow for a pump. Answer in lpm or gpm
hydcalc;
##### options
displacement
: Displacement of pump in cc/rev or in3/revspeed
: Speed of pump in RPMunitType
: Metric or imperialround
: Round answer to nearest decimal [default 2]efficiency
: Efficiency of pump [default 1]
##### Example:
hydcalc// Will returnObject result: "28.5"
Pump Displacement
Calculate the displacement of a pump
hydcalc;
##### options
-
flow
: Flow in lpm or gpm -
speed
: Speed of pump in RPM -
unitType
: Metric or imperial -
round
: Round answer to nearest decimal [default 2] -
efficiency
: Efficiency of pump [default 1]##### Example:
hydcalc// Will returnObject result: "26.667"
Pump Pressure
Calculate the output pressure of a pump
hydcalc;
##### options
flow
: Flow in lpm or gpmpower
: Power of prime mover in kW or hpunitType
: Metric or imperialround
: Round answer to nearest decimal [default 2]efficiency
: Efficiency of pump [default 1]
##### Example:
hydcalc// Will returnObject result: "204.00"
Input Power
Calculate the input power for a pump. Answer in kW or hp
hydcalc;
##### options
flow
: Flow in lpm or gpmpressure
: Pressure in bar or psiunitType
: Metric or imperialround
: Round answer to nearest decimal [default 2]efficiency
: Efficiency of pump [default 1]
##### Example:
hydcalc// Will returnObject result: "6.2"
Motor Torque
Calculate the shaft torque of a hydraulic motor. Answer in Nm or lb-in
hydcalc;
##### options
displacement
: Displacement of motorpressure
: Pressure in bar or psiunitType
: Metric or imperialround
: Round answer to nearest decimal [default 2]efficiency
: Efficiency of motor [default 1]
##### Example:
hydcalc// Will returnObject result: "530.3"
Motor Speed
Calculate the shaft speed of a hydraulic motor. Answer in RPM
hydcalc;
##### options
flow
: Flow in lpm or gpmdisplacement
: Displacement of motorunitType
: Metric or imperialround
: Round answer to nearest decimal [default 2]efficiency
: Efficiency of motor [default 1]
##### Example:
hydcalc// Will returnObject result: "243.2"
Motor Displacement
Calculate the displacement of a hydraulic motor. Answer in cc/rev or in3/rev
hydcalc;
##### options
flow
: Flow in lpm or gpmspeed
: Speed in RPMunitType
: Metric or imperialround
: Round answer to nearest decimal [default 2]efficiency
: Efficiency of motor [default 1]
##### Example:
hydcalc// Will returnObject result: "75.00"
Motor Power
Calculate the output power of a hydraulic motor. Answer in kW or hp
hydcalc;
##### options
torque
: Torque of hydraulic motor in Nm or lb-inspeed
: Speed of hydraulic motor in RPMunitType
: Metric or imperialround
: Round answer to nearest decimal [default 2]efficiency
: Efficiency of motor [default 1]
##### Example:
hydcalc// Will returnObject result: "4.19"
Cylinder Extend Speed
Calculate speed of an extending cylinder. Answer in mm/sec or in/sec
hydcalc;
##### options
-
flow
: Flow in lpm or gpm -
bore
: Diameter of bore in mm or in -
unitType
: Metric or imperial -
round
: Round answer to nearest decimal [default 2]##### Example:
hydcalc// Will returnObject result: "1.96"
Cylinder Retract Speed
Calculate speed of a retracting cylinder. Answer in mm/sec or in/sec
hydcalc;
##### options
-
flow
: Flow in lpm or gpm -
bore
: Diameter of bore in mm or in -
rod
: Diameter of rod in mm or in -
unitType
: Metric or imperial -
round
: Round answer to nearest decimal [default 2]##### Example:
hydcalc// Will returnObject result: "8841.95"
Cylinder Extend Force
Calculate the force of an extending cylinder. Answer in N or lbf
hydcalc;
##### options
-
pressure
: Pressure in bar or psi -
bore
: Diameter of bore in mm or in -
unitType
: Metric or imperial -
round
: Round answer to nearest decimal [default 2]##### Example:
hydcalc// Will returnObject result: "1963.49"
Cylinder Retract Force
Calculate the force of a retracting cylinder. Answer in N or lbf
hydcalc;
##### options
-
pressure
: Pressure in bar or psi -
bore
: Diameter of bore in mm or in -
rod
: Diameter of rod in mm or in -
unitType
: Metric or imperial -
round
: Round answer to nearest decimal [default 2]##### Example:
hydcalc// Will returnObject result: "18849.50"