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.
 
 
 
 
 
 

110 lines
3.4 KiB

  1. subroutine Pumps_Inputs
  2. Use CDrillingConsoleVariables
  3. Use Pumps_VARIABLES
  4. Use MudSystemModule
  5. IMPLICIT NONE
  6. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 1 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  7. !PUMP(1)%BlowPopOffMalf = 0 !??????? motaghayere voroudi
  8. if ( PUMP(1)%BlowPopOffMalf==1 ) then ! Pump1 Malfunction ----> Blow Pop-offs (Relief Valves)
  9. PUMP(1)%StandPipe_Pressure = 0.d0
  10. else
  11. PUMP(1)%StandPipe_Pressure = PumpPressure1 ![psi]
  12. if ( PUMP(1)%StandPipe_Pressure<=14.d0 ) then
  13. PUMP(1)%StandPipe_Pressure = 14.d0
  14. end if
  15. end if
  16. PUMP(1)%AssignmentSwitchh = DrillingConsole%AssignmentSwitch
  17. PUMP(1)%Switch = DrillingConsole%MP1CPSwitch
  18. PUMP(1)%Throttle = DrillingConsole%MP1Throttle ![RPM]
  19. !PUMP(1)%PowerFailMalf = 0 !??????? motaghayere voroudi (Pump1 Malfunction ----> Power Failure) !dar CPumpProblemsVariables meghdardehi mishavad
  20. PUMP(1)%Failure = Warmings%Pump1Failure !(Pump1 Warning ----> Failure)
  21. PUMP(1)%N_new = PUMP(1)%Throttle
  22. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 2 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  23. !PUMP(2)%BlowPopOffMalf = 0 !??????? motaghayere voroudi
  24. if ( PUMP(2)%BlowPopOffMalf==1 ) then ! Pump2 Malfunction ----> Blow Pop-offs (Relief Valves)
  25. PUMP(2)%StandPipe_Pressure = 0.d0
  26. else
  27. PUMP(2)%StandPipe_Pressure = PumpPressure2 ![psi]
  28. if ( PUMP(2)%StandPipe_Pressure<=14.d0 ) then
  29. PUMP(2)%StandPipe_Pressure = 14.d0
  30. end if
  31. end if
  32. PUMP(2)%AssignmentSwitchh = DrillingConsole%AssignmentSwitch
  33. PUMP(2)%Switch = DrillingConsole%MP2Switch
  34. PUMP(2)%Throttle = DrillingConsole%MP2Throttle ![RPM]
  35. !PUMP(2)%PowerFailMalf = 0 !??????? motaghayere voroudi (Pump2 Malfunction ----> Power Failure) !dar CPumpProblemsVariables meghdardehi mishavad
  36. PUMP(2)%Failure = Warmings%Pump2Failure !(Pump2 Warning ----> Failure)
  37. PUMP(2)%N_new = PUMP(2)%Throttle
  38. !!>>>>>>>>>>>>>>>>>>>>>>> PUMP 3 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  39. !PUMP(3)%BlowPopOffMalf = 0 !??????? motaghayere voroudi
  40. if ( PUMP(3)%BlowPopOffMalf==1 ) then ! Pump3 Malfunction ----> Blow Pop-offs (Relief Valves)
  41. PUMP(3)%StandPipe_Pressure = 0.d0
  42. else
  43. PUMP(3)%StandPipe_Pressure = PumpPressure3 ![psi]
  44. if ( PUMP(3)%StandPipe_Pressure<=14.d0 ) then
  45. PUMP(3)%StandPipe_Pressure = 14.d0
  46. end if
  47. end if
  48. PUMP(3)%Switch = DrillingConsole%MP1CPSwitch
  49. PUMP(3)%Throttle = DrillingConsole%MP1Throttle ![RPM]
  50. !PUMP(3)%PowerFailMalf = 0 !??????? motaghayere voroudi (Pump3 Malfunction ----> Power Failure) !dar CPumpProblemsVariables meghdardehi mishavad
  51. PUMP(3)%Failure = Warmings%Pump3Failure !(Pump1 Warning ----> Failure)
  52. PUMP(3)%N_new = PUMP(3)%Throttle
  53. !>>>>>>>>>>>>>>>>>>>>>>> Total Pumps <<<<<<<<<<<<<<<<<<<<<<<<<<<
  54. end subroutine Pumps_Inputs