Page 477 - Advanced Mine Ventilation
P. 477

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

              for(int i¼1; i<¼nb; iþþ)
              {
                 cdb[i]¼cdb[i] * pow(10.0,6);
                  cout << setw(10)   <<   i  << setw(15)   <<   qdwall[i]  <<
         setw(15) << cdb[i] << setw(10) << tlv  << endl;
                  // check if tlv is exceeded
                  if(cdb[i] >  tlv)
                  {
                    cout << "yn ** THE DIESEL EXHAUST CONCENTRATION EXCEEDED ITS
         TLV IN BRANCH NO." << i  << endl;
                  }
                  //Calculate the TLV Of the Mixture in Branches.....
                  tlvmxb[i] ¼  tlvmxb[i] þ  cdb[i] / tlv;
              }
              cout << endl << setw(40) << "JUNCTION VALUES" << endl << endl;
              cout << setw(26) << "DIESEL EXHAUST" << setw(20) << "CONCENTRATION "
         << endl;
              cout << setw(10) << "JUNC NUM" << setw(15) << "FROM JUNCTION" <<
         setw(15) << "IN PPM" << setw(10) << "TLV" << endl << endl;

              for(int i¼1; i<¼nj; iþþ)
              {
                            cdj[i] * pow(10,6);
                  cdj[i] ¼
                  cout << setw(10) << jctn[i] << setw(15) << qdjunc[i] <<
         setw(15) << cdj[i] << setw(10) << tlv  << endl;
                  if(cdj[i] >  tlv)
                  {
                      cout << "yn ** THE DIESEL EXHAUST CONCENTRATION EXCEEDED
         ITS TLV IN JUNCTION NO." << i << endl;
                  }
                  //Calculate the TLV Of the Mixture in Junctions.....
                  tlvmxj[i] ¼  tlvmxj[i] þ  cdj[i] / tlv;
              }

              cout << "ynInput k value" << endl;
              cin >> k;
              if (k-1 >¼ 0)
              {
                  return false;
              }
              cout <<endl << endl << "THE FOLLOWING ARE THE VALUES OF TLV OF
         THE MIXTURE OF DIESEL EXHAUST COMPONENTS" << endl;
              cout << endl << endl << setw(20)     <<   "BRANCH  NUMBER  "  <<
         setw(20) << "MIXTURE TLV" << endl;
   472   473   474   475   476   477   478   479   480   481   482