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.3 KiB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. if (((PUMP(3)%N_old-0.0d0)/PUMP(3)%time_step)>386.) then
  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. !==================================================================
  22. else
  23. PUMP(3)%Speed = 0.0
  24. Call Pump_Solver(3)
  25. Call Pump_Total_Counts
  26. Call Set_MP1SPMGauge( real((PUMP(3)%Speed/PUMP(3)%Trans_Ratio),8) )
  27. SPM1 = MP1SPMGauge
  28. PUMP(3)%SoundSPM = INT(PUMP(3)%Speed/PUMP(3)%Trans_Ratio)
  29. Call SetSoundMP3( PUMP(3)%SoundSPM )
  30. end if
  31. end subroutine Pump3_OffMode_Solver