Simulation Core
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Pump_INPUTS.f90 1.5 KiB

há 1 ano
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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