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.
 
 
 
 
 
 

51 rivejä
1.8 KiB

  1. subroutine Off_mode_Simulation(Pump_No)
  2. use Pump_VARIABLES
  3. use CPumpsVariables
  4. use CDrillingConsoleVariables
  5. use CDataDisplayConsoleVariables
  6. use CSimulationVariables
  7. use CDrillWatchVariables
  8. IMPLICIT NONE
  9. INTEGER :: Pump_No
  10. CALL Pump_INPUTS
  11. !==================================================================
  12. ! Rate limit for off Mode
  13. Do while (((PUMP(Pump_No)%N_old-0.0d0)/PUMP(Pump_No)%time_step)>386.)
  14. PUMP(Pump_No)%N_ref = (-386.*PUMP(Pump_No)%time_step)+PUMP(Pump_No)%N_old
  15. !else
  16. ! PUMP(1)%N_ref=0.0d0
  17. !end if
  18. Call ON_mode_simulation(Pump_No)
  19. PUMP(Pump_No)%N_old = PUMP(Pump_No)%N_ref
  20. Call sleepqq (80) !?????????????????
  21. End Do
  22. !==================================================================
  23. PUMP(Pump_No)%Speed = 0.0d0
  24. Call Set_MP1SPMGauge( sngl(1-PUMP(1)%SPMGaugeMalf)*real((PUMP(1)%Speed/PUMP(1)%Trans_Ratio),8) )
  25. SPM1 = MP1SPMGauge
  26. Call Set_MP2SPMGauge( sngl(1-PUMP(2)%SPMGaugeMalf)*real((PUMP(2)%Speed/PUMP(2)%Trans_Ratio),8) )
  27. SPM2 = MP2SPMGauge
  28. PUMP(Pump_No)%w = 0.
  29. PUMP(Pump_No)%w_old = 0.0d0
  30. PUMP(Pump_No)%w_new = 0.0d0
  31. PUMP(Pump_No)%ia = 0.0d0
  32. PUMP(Pump_No)%ia_old = 0.0d0
  33. PUMP(Pump_No)%ia_new = 0.0d0
  34. PUMP(Pump_No)%x = 0.0d0
  35. PUMP(Pump_No)%x_old = 0.0d0
  36. PUMP(Pump_No)%x_new = 0.0d0
  37. Call Pump_Solver(Pump_No)
  38. Call Pump_Total_Counts
  39. end subroutine off_mode_simulation