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.

Pump3_OffMode_Solver.f90 1.4 KiB

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. subroutine Pump3_OffMode_Solver
  2. use Pump_VARIABLES
  3. use CPumpsVariables
  4. use CDrillingConsoleVariables
  5. use CDataDisplayConsoleVariables
  6. use CSimulationVariables
  7. use CDrillWatchVariables
  8. use CSounds
  9. IMPLICIT NONE
  10. INTEGER :: Pump_No
  11. CALL Pump_INPUTS
  12. !==================================================================
  13. ! Rate limit for off Mode
  14. Do while (((PUMP(3)%N_old-0.0d0)/PUMP(3)%time_step)>386.)
  15. PUMP(3)%N_ref = (-386.*PUMP(3)%time_step)+PUMP(3)%N_old
  16. !else
  17. ! PUMP(1)%N_ref=0.0d0
  18. !end if
  19. Call Pump3_OnMode_Solver
  20. PUMP(3)%N_old = PUMP(3)%N_ref
  21. Call sleepqq (80) !?????????????????
  22. End Do
  23. !==================================================================
  24. PUMP(3)%Speed = 0.0
  25. Call Pump_Solver(3)
  26. Call Pump_Total_Counts
  27. Call Set_MP1SPMGauge( real((PUMP(3)%Speed/PUMP(3)%Trans_Ratio),8) )
  28. SPM1 = MP1SPMGauge
  29. PUMP(3)%SoundSPM = INT(PUMP(3)%Speed/PUMP(3)%Trans_Ratio)
  30. Call SetSoundMP3( PUMP(3)%SoundSPM )
  31. end subroutine Pump3_OffMode_Solver