// Thermal Conductivity Converter 

function ThermalConductivityConverter(unit, value){
	this.uv = new Array(); 
	this.uv = {
		"watt/meter-degK" : 1, // ref unit
		"watt/centimeter-degC" : 0.01,
		"kilowatt/meter-degK" : 0.001,
		"calorie/second-centimeter-degF" : 0.002390,
		"kcalorie/hour-meter-degC" : 0.85984,
		"Btu/hour-foot-degF" : 0.578176,
		"Btu-inch/hour-square foot-degF" : 6.93811
	}
	this.unit = unit; // unit to convert from
	this.value = value; // value to convert
	this.ref = 1 / this.uv[this.unit] * this.value;
}

// returns value for singel unit
ThermalConductivityConverter.prototype.cV = function(unitTo){
	return this.ref * this.uv[unitTo];
}
// returns values for all units
ThermalConductivityConverter.prototype.cVs = function(){
	var msg = this.value + " " + this.unit + " => \n";
	Box.ajaxReq('/docs/scripts/conv.js',false);
	for (var i in this.uv) {
		msg += Conv.rounding(this.ref * this.uv[i]) + "  " + i + "\n";
	}  
	return msg;
}

// Copyright engineeringtoolbox.com