Page 478 - Advanced Mine Ventilation
P. 478

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

                for(int i¼1; i<¼nb; iþþ)
                {
                    cout << setw(15) << i   << setw(22) << tlvmxb[i] << endl;
                    //Check if the Mixture TLV is Exceeded
                    if(tlvmxb[i]  > 1.0)
                    {
                        cout << "yn *** THE MIXTURE OF DIESEL EXHAUST EXCEEDED IT’S
           TLV IN BRANCH NO. " << i  << endl;
                    }
                }

                cout << endl << endl << setw(20)     <<   "JUNCTION  NUMBER"  <<
           setw(20) << "MIXTURE TLV" << endl;

                for(int i¼1; i<¼nj; iþþ)
                {
                    cout << setw(15) << i  << setw(22) << tlvmxj[i] << endl;
                    // Check if the Mixture TLV is Exceeded
                    if(tlvmxj[i]  > 1.0)

                    {
                    cout << "yn *** THE MIXTURE OF DIESEL EXHAUST EXCEEDED IT’S TLV
           IN JUNCTION NO. " << i  << endl;
                    }
                }
                return true;
              }

              void setDieselExhaustConcZero()
              {
                for(int i¼1; i<¼nb; iþþ)
               {
                    cdb[i] ¼  0.0;
                    mb[i] ¼  0;
                }
                for(int i¼1; i<¼nj; iþþ)
                {
                    cdj[i] ¼  0.0;
                    mj[i] ¼  0;
                }
              }
   473   474   475   476   477   478   479   480   481   482   483