Page 492 - Advanced Mine Ventilation
P. 492

Appendix C: Ventilation Network Analyzer in Cþþ With Input and Output  461

                else
                  {
                              jc[jb];
                    jc[ja] ¼
                  }
                }

                else
                {
                  if(jc[ja] !¼ 0)
                  {
                    out[i] ¼  1;
                    n  ¼  nþ1;
                  }
                else
                {
                  l ¼  lþ1;
                  jc[ja] ¼ l;
                  jc[jb] ¼ l;
                }
              }
             }
           }

              void readBranchCharacteristics()
              {
                    for (int i¼1; i<¼nb; iþþ)
                {
                    cout << "ynEnter J1, J2, FF, Height, Width, length for branch"
            << i  << endl;
                    cin  >> jj1[i] >> j2[i] >> ff >> height[i] >> width[i] >>
           length[i] ;
                    r[i] ¼ 0;
                    ff_temp[i]  ¼  ff;
                    branch[i] ¼  i;
                    float t;

                    if(r[i]<¼0)
                    {
                           t  ¼  height[i] * width[i];
                           r[i] ¼   ff_temp[i] * (height[i] þ  width[i]) * length[i] /
                           (2.6*t*t*t);
                    }
                             r[i];
                    rr[i] ¼
                }
              }
   487   488   489   490   491   492   493   494   495   496   497