Page 476 - Advanced Mine Ventilation
P. 476

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

                                       t;
                           rr[jþ1] ¼
                           t  ¼  branch[j];
                                        branch[jþ1];
                           branch[j] ¼
                                           t;
                           branch[jþ1] ¼
                           l  ¼  1;
                    }
                  }
                  if (l >  0) je ¼ je - 1;
                  else break;
                }
              }

              void assignDEGenRates()
              {
                if(delqdg ¼¼ 0.0)
                {
                   for(int i¼1; i<¼nb; iþþ)
                   {
                      qdwall[i] ¼ qdbg;
                   }
                  for(int i¼1; i<¼nj; iþþ)
                  {
                      qdjunc[i] ¼ qdjg;
                  }
                }
                else
                {
                  for(int i¼1; i<¼nb; iþþ)
                  {
                      qdwall[i] ¼ delqdg * length[i];
                  }
                }
              }

              bool printPollutantConc()
              {
                cout << endl << endl << setw(10) << subtit << endl << endl;
                cout << "ynytytDIESEL EXHAUST CONCENTRATION RESULTS" << endl;
                cout << endl << setw(40) << "BRANCH VALUESyn" << endl ;
                cout << setw(30) << "DIESEL EXHAUST" << "ytCONCENTRATION" <<
           endl;
                cout << " BRANCH NUMBER " << setw(15) << "FROM WALLS
           "<< setw(10) << " IN PPM " << setw(10) << " TLV" << endl << endl;
   471   472   473   474   475   476   477   478   479   480   481