// Compressed Air Pipeline Pressure Drop Calculation 

function CompressedAir(q, L, d, p){
	this.q = q;
	this.L = L;
	this.d = d;
	this.p = p;
}

// returns pressure drop kg/m2
CompressedAir.prototype.pressureDrop = function(){
	return 7.57 * Math.pow(this.q,1.85) * this.L * 10000 / (Math.pow(this.d,5) * this.p); 
}

// returns input values
CompressedAir.prototype.inputValues = function(){
	var msg = this.q + " " + this.L + " " + this.d + " " + this.p;
	return msg;
}

// Copyright engineeringtoolbox.com