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_Inputs.f90 4.1 KiB

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