Simulation Core
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

59 rader
1.5 KiB

  1. subroutine Pump_INPUTS
  2. use CPumpsVariables
  3. use CDrillingConsoleVariables
  4. use CDataDisplayConsoleVariables
  5. use CSimulationVariables
  6. use Pump_VARIABLES
  7. use MudSystem
  8. IMPLICIT NONE
  9. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 1 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  10. if ( PUMP(1)%BlowPopOffMalf==1 ) then ! Pump1 Malfunction ----> Blow Pop-offs (Relief Valves)
  11. PUMP(1)%StandPipe_Pressure = 0.d0
  12. else
  13. PUMP(1)%StandPipe_Pressure = PumpPressure1 ![psi]
  14. if ( PUMP(1)%StandPipe_Pressure<=14. ) then
  15. PUMP(1)%StandPipe_Pressure = 14.
  16. end if
  17. end if
  18. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 2 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  19. if ( PUMP(2)%BlowPopOffMalf==1 ) then ! Pump2 Malfunction ----> Blow Pop-offs (Relief Valves)
  20. PUMP(2)%StandPipe_Pressure = 0.d0
  21. else
  22. PUMP(2)%StandPipe_Pressure = PumpPressure2 ![psi]
  23. if ( PUMP(2)%StandPipe_Pressure<=14. ) then
  24. PUMP(2)%StandPipe_Pressure = 14.
  25. end if
  26. end if
  27. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 3 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  28. if ( PUMP(3)%BlowPopOffMalf==1 ) then ! Pump3 Malfunction ----> Blow Pop-offs (Relief Valves)
  29. PUMP(3)%StandPipe_Pressure = 0.d0
  30. else
  31. PUMP(3)%StandPipe_Pressure = PumpPressure3 ![psi]
  32. if ( PUMP(3)%StandPipe_Pressure<=14. ) then
  33. PUMP(3)%StandPipe_Pressure = 14.
  34. end if
  35. end if
  36. end subroutine Pump_INPUTS