// Natural Gas Pipe

function NaturalGasPipe(d,h,l,sg){
	this.d = d; 
	this.h = h;
	this.l = l;
	this.sg = sg;
}

NaturalGasPipe.prototype.gasCapacity = function(){
	var k = Math.pow((Math.pow(this.d,5)/(1 + 3.6/this.d + 0.03 * this.d)),0.5); 
	var c = 3550 * k * Math.pow((this.h/(this.l * this.sg)),0.5);
	return c;
}

// Copyright engineeringtoolbox.com