Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

94 lines
2.3 KiB

  1. subroutine Pumps_Outputs
  2. Use CDataDisplayConsoleVariables
  3. Use CSimulationVariables
  4. Use Pumps_VARIABLES
  5. Use MudSystem
  6. Use CDrillWatchVariables
  7. IMPLICIT NONE
  8. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 1 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  9. If (PUMP(1)%Open_Close==1) then
  10. Call OpenPump1()
  11. Else if (PUMP(1)%Open_Close==0) then
  12. Call ClosePump1()
  13. End if
  14. DrillingConsole%MP1BLWR = PUMP(1)%BLWR
  15. Call SetSoundBlowerMP1( PUMP(1)%SoundBlower ) !.true. or .false.
  16. Call SetSoundMP1( PUMP(1)%SoundSPM ) ![spm] , integer
  17. if ((PUMP(1)%Switch==-1) .or. (PUMP(1)%Switch==0)) then
  18. Call Set_MP1SPMGauge( sngl(1-PUMP(1)%SPMGaugeMalf)*real((PUMP(1)%Speed/PUMP(1)%Trans_Ratio),8) ) ![spm] , real
  19. DrillingWatch%SPM1 = DataDisplayConsole%MP1SPMGauge
  20. end if
  21. !PUMP(1)%Flow_Rate !to other modules , [gpm]
  22. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 2 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  23. If (PUMP(2)%Open_Close==1) then
  24. Call OpenPump2()
  25. Else if (PUMP(2)%Open_Close==0) then
  26. Call ClosePump2()
  27. End if
  28. DrillingConsole%MP2BLWR = PUMP(2)%BLWR
  29. Call SetSoundBlowerMP2( PUMP(2)%SoundBlower )
  30. Call SetSoundMP2( PUMP(2)%SoundSPM )
  31. Call Set_MP2SPMGauge( sngl(1-PUMP(2)%SPMGaugeMalf)*real((PUMP(2)%Speed/PUMP(2)%Trans_Ratio),8) )
  32. DrillingWatch%SPM2 = DataDisplayConsole%MP2SPMGauge
  33. !PUMP(2)%Flow_Rate !to other modules
  34. !!>>>>>>>>>>>>>>>>>>>>>>> PUMP 3 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  35. If (PUMP(3)%Open_Close==1) then
  36. Call OpenCementPump()
  37. Else if (PUMP(3)%Open_Close==0) then
  38. Call CloseCementPump()
  39. End if
  40. Call SetSoundMP3( PUMP(3)%SoundSPM )
  41. if (PUMP(3)%Switch==1) then
  42. Call Set_MP1SPMGauge( real((PUMP(3)%Speed/PUMP(3)%Trans_Ratio),8) )
  43. DrillingWatch%SPM1 = DataDisplayConsole%MP1SPMGauge
  44. end if
  45. !PUMP(3)%Flow_Rate !to other modules
  46. !>>>>>>>>>>>>>>>>>>>>>>> Total Pumps <<<<<<<<<<<<<<<<<<<<<<<<<<<
  47. !MPumps%Total_Pump_Gpm = 100.d0 !???????????
  48. !MPumps%Total_Pump_SPM = 1000.d0 !?????????????
  49. !SCR1LED=1
  50. !SCR2LED=1
  51. !SCR3LED=1
  52. !SCR4LED=1
  53. end subroutine Pumps_Outputs