// Sspecific Suction Speed Pump 

function SpecificSuctionSpeedPump(rpm, q, npsh){
	this.rpm = rpm;
	this.q = q;
	this.npsh = npsh;
}

// returns specific speed
SpecificSuctionSpeedPump.prototype.speed = function(){
	return Math.round(this.rpm * Math.sqrt(this.q) / Math.pow(this.npsh,0.75)); 
}

// returns input values
SpecificSuctionSpeedPump.prototype.inputValues = function(){
	var msg = this.rpm + " " + this.q + " " + this.npsh;
	return msg;
}

// Copyright engineeringtoolbox.com