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.

Pumps_Outputs.i90 2.9 KiB

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