Page 494 - Advanced Mine Ventilation
P. 494
Appendix C: Ventilation Network Analyzer in Cþþ With Input and Output 463
for(int i¼1; i<¼nb; iþþ)
{
r[i] * fabs(q[i]) * q[i];
hh[i] ¼
r[i] / 1e-04;
r[i] ¼
cout << setw(10) << i << setw(10) << jj1[i] <<
setw(10) << j2[i]<< setw(10) << r[i] << setw(15) << q
[i] << setw(15) << hh[i] << endl;
}
}
void adjustHLinFixedQuantityBranch()
{
cout << endl << setw(10) << "ytHEAD LOSS TO BE ADJUSTED IN
FIXED QUANTITY BRANCHyn" << endl;
cout << setw(10) << "BRANCH" << setw(10) << "J1" <<
setw(10) << "J2" << setw(10) << "R" << setw(10) << "Q" <<
setw(15) << "SUMH" << endl;
je ¼ 0;
for(int i¼1; i<¼nfixb; iþþ)
{
jeþ1;
js ¼
me[i];
je ¼
sumh ¼ -sumnvp[i];
for(int j¼js; j<¼je; jþþ)
{
k ¼ abs(na[j]);
(na[j] >¼ 0) ? (sumh ¼ sumh þ hh[k]) : (sumh ¼ sumh - hh
[k]);
}
cout << setw(10) << i << setw(10) << jj1[i] <<
setw(10) << j2[i] << setw(10) << r[i] << setw(10) << q[i] <<
setw(15) << sumh << endl;
// Calculate the size of regulator using Murgue’s formula or the
capacity of the booster fan as the case may be
if(sumh < 0)
{
sumh ¼ -sumh;
regsiz ¼ 0.389 * q[i]/sqrt(sumh);
cout << endl << setw(10) << "ytTHE SIZE OF THE REGULATOR
IS "<< regsiz << "SQ FT" << endl;
}

