Skip to content

Instantly share code, notes, and snippets.

@TwanoO67
Created August 28, 2015 08:21
Show Gist options
  • Save TwanoO67/96e595d0ca6a0e3db406 to your computer and use it in GitHub Desktop.
Save TwanoO67/96e595d0ca6a0e3db406 to your computer and use it in GitHub Desktop.
trans_pitch = ($TRANSVERSE_PITCH * 0.866);
elem_diam_milli = ($HEATING_ELEMENT_DIAMETER / 1000);
pitch_by_diam = ($TRANSVERSE_PITCH / elem_diam_milli);
trans_pitch_by_diam = (trans_pitch / elem_diam_milli);
pow_tpbd_by_pbd = Math.pow(trans_pitch_by_diam / pitch_by_diam - 1, 3);
pbd_by_lpbd = (pitch_by_diam / (pitch_by_diam - 1));
sqrt_tpbd = Math.pow(trans_pitch_by_diam, 0.5);
value = (((((280 * Math.PI * (Math.pow(sqrt_tpbd - 0.6, 2) + 0.75) / ((4 * pitch_by_diam * trans_pitch_by_diam - Math.PI) * Math.pow(pitch_by_diam, 1.6))) / ($REYNOLDS_INLET * pbd_by_lpbd)) + ((2.5 + (1.2 / Math.pow(pitch_by_diam - 0.85, 1.08)) + 0.4 * pow_tpbd_by_pbd - 0.01 * Math.pow(pitch_by_diam / trans_pitch_by_diam - 1, 3)) / Math.pow($REYNOLDS_INLET * pbd_by_lpbd, 0.25)) * (1 - Math.exp( - ($REYNOLDS_INLET * pbd_by_lpbd + 1000) / 2000))) * $INLET_DENSITY_VALUE * Math.pow($AVERAGE_SPEED_INLET_SELECTED * pbd_by_lpbd, 2) / 2 * (Math.pow($NUMBER_ACTIVE_HEATING_ELEMENT * 2, 0.5)) * ($NUMBER_CUT_BAFFLES + 1)) + ((((280 * Math.PI * (Math.pow(sqrt_tpbd - 0.6, 2) + 0.75) / ((4 * pitch_by_diam * trans_pitch_by_diam - Math.PI) * Math.pow(pitch_by_diam, 1.6))) / ($REYNOLDS_OULET * pbd_by_lpbd)) + ((2.5 + (1.2 / Math.pow(pitch_by_diam - 0.85, 1.08)) + 0.4 * pow_tpbd_by_pbd - 0.01 * Math.pow(pitch_by_diam / trans_pitch_by_diam - 1, 3)) / Math.pow($REYNOLDS_OULET * pbd_by_lpbd, 0.25)) * (1 - Math.exp( - ($REYNOLDS_OULET * (pitch_by_diam / (pitch_by_diam - 1)) + 1000) / 2000))) * $OULET_DENSITY_VALUE * Math.pow($AVERAGE_SPEED_OULET_SELECTED * pbd_by_lpbd, 2) / 2 * (Math.pow($NUMBER_ACTIVE_HEATING_ELEMENT * 2, 0.5)) * ($NUMBER_CUT_BAFFLES + 1))) / 2 / 100000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment