function rnd(num) { num = Math.floor((num * 100) + 0.5) / 100; return num; }
function calc_injector_size(form) { var nHP = parseInt(form.EHP.value); var nBrakeFuelConsumption = parseFloat(form.BSFC.value); var nNumofInjectors = parseInt(form.NOI.value); var nInjDuty = parseFloat(form.IDC.value);
var nLbHrFlowRate = (nHP / nNumofInjectors) * (nBrakeFuelConsumption / nInjDuty); var nCcMinFlowRate = nLbHrFlowRate * 10.5;
form.CCMIN.value = rnd(nCcMinFlowRate); form.LPHR.value = rnd(nLbHrFlowRate);
if (form.LPHR.value[0] == ".") form.LPHR.value = "0" + form.LPHR.value;
if (form.CCMIN.value[0] == ".") form.CCMIN.value = "0" + form.CCMIN.value; }
function calc_injector_max_hp(form) { var nInjectorFlowRate = parseFloat(form.IFR.value); var nBrakeFuelConsumption = parseFloat(form.BSFC.value); var nNumofInjectors = parseInt(form.NOI.value);
var nLbHrFlowRate = (nInjectorFlowRate * nNumofInjectors * 0.8) / (nBrakeFuelConsumption); //var nCcMinFlowRate = nLbHrFlowRate / 10.5;
//form.CCMIN.value = rnd(nCcMinFlowRate); form.LPHR.value = rnd(nLbHrFlowRate);
if (form.LPHR.value[0] == ".") form.LPHR.value = "0" + form.LPHR.value;
//if (form.CCMIN.value[0] == ".") // form.CCMIN.value = "0" + form.CCMIN.value;
} function cctolb(form) { var ccmin = parseFloat(form.ccmin.value); nLbHrFlowRate = ccmin / 10.5;
form.lbhr.value = rnd(nLbHrFlowRate); } function lbtocc(form) { var lbhr = parseFloat(form.lbhr.value); nccminFlowRate = lbhr * 10.5;
form.ccmin.value = rnd(nccminFlowRate); }
Injector flow rate conversions:




*NOTE: This formula take into account a properly functioning fuel delivery system. Damaged components, clogged or modified injectors, insufficient fuel delivery, or other fuel system problems that alter the injector flow rates will render this formula useless! 