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.
 
 
 
 
 
 

114 lines
4.0 KiB

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