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.
 
 
 
 
 
 

77 lines
2.9 KiB

  1. subroutine Pumps_StartUp
  2. !use CPumpsVariables
  3. !use CDrillingConsoleVariables
  4. !use CDataDisplayConsoleVariables
  5. !use CSimulationVariables
  6. !use CPowerVariables
  7. use Pumps_VARIABLES
  8. IMPLICIT NONE
  9. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 1 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  10. PUMP(1)%FlowRatePerSTK = 7000.e0 ![bbl] !??????? motaghayere voroudi
  11. !PUMP(1)%FlowRatePerSTK = PUMP(1)%FlowRatePerSTK*0.0292e0 ![gpm]
  12. PUMP(1)%RateChange = 4.e0 ! [stk/min2] !??????? motaghayere voroudi
  13. PUMP(1)%Stroke_Length = 12.e0!MudPump1Stroke ! bayad hazf beshe ?
  14. PUMP(1)%Piston_Diameter = 4.e0!MudPump1LinerDiameter ! bayad hazf beshe ?
  15. PUMP(1)%Piston_Area = (pi*(PUMP(1)%Piston_Diameter**2.e0))/4.e0 ! bayad hazf beshe ?
  16. PUMP(1)%Mech_Efficiency = 0.95e0!MudPump1MechanicalEfficiency [dimensionless]
  17. !PUMP(1)%Vol_Efficiency = MudPump1VolumetricEfficiency ! bayad hazf beshe ?
  18. !PUMP(1)%Max_Horsepower = MudPump1 ! bayad hazf beshe ?
  19. PUMP(1)%Max_Pressure = 600.e0 ! [psi] !??????? motaghayere voroudi
  20. PUMP(1)%MaxSPM = 275.e0!MudPump1Maximum [spm]
  21. PUMP(1)%Trans_Ratio = 965.e0/PUMP(1)%MaxSPM
  22. PUMP(1)%time_step = 0.1e0 !?????? niaz hast ya na??
  23. PUMP(1)%RateChange = PUMP(1)%RateChange*PUMP(1)%Trans_Ratio ! [rpm/min2]
  24. PUMP(1)%K_throttle = 0
  25. Pumps_IsStopped = .false.
  26. PUMP(1)%N_old = 0.e0
  27. Call Pump_OffMode_Solver(1)
  28. !!>>>>>>>>>>>>>>>>>>>>>>> PUMP 2 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  29. !PUMP(2)%Stroke_Length = MudPump2Stroke
  30. !PUMP(2)%Piston_Diameter = MudPump2LinerDiameter
  31. !PUMP(2)%Piston_Area = pi*PUMP(2)%Piston_Diameter*PUMP(2)%Piston_Diameter/4.
  32. !PUMP(2)%Mech_Efficiency = MudPump2MechanicalEfficiency
  33. !PUMP(2)%Vol_Efficiency = MudPump2VolumetricEfficiency
  34. !PUMP(2)%Max_Horsepower = MudPump2
  35. !PUMP(2)%Inertia_Moment = 23.261341 ! 23.261341 [kg.m^2] = 552 [lb.ft^2]
  36. !PUMP(2)%J_coef = PUMP(2)%Inertia_Moment+(4.*(PUMP(2)%Inertia_Moment))
  37. !PUMP(2)%Trans_Ratio = 965.0/MudPump2Maximum
  38. !PUMP(2)%time_step = .10
  39. !
  40. !PUMP(2)%Flow_Rate = 0.
  41. !Call Pump2_OffMode_Solver(2)
  42. !!>>>>>>>>>>>>>>>>>>>>>>> PUMP 3 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  43. !PUMP(3)%Stroke_Length = CementPumpStroke
  44. !PUMP(3)%Piston_Diameter = CementPumpLinerDiameter
  45. !PUMP(3)%Piston_Area = pi*PUMP(3)%Piston_Diameter*PUMP(3)%Piston_Diameter/4.
  46. !PUMP(3)%Mech_Efficiency = CementPumpMechanicalEfficiency
  47. !PUMP(3)%Vol_Efficiency = CementPumpVolumetricEfficiency
  48. !PUMP(3)%Max_Horsepower = CementPump
  49. !PUMP(3)%Inertia_Moment = 23.261341 ! 23.261341 [kg.m^2] = 552 [lb.ft^2]
  50. !PUMP(3)%Trans_Ratio = 965.0/CementPumpMaximum
  51. !PUMP(3)%time_step = .10
  52. !
  53. !PUMP(3)%Flow_Rate = 0.
  54. !Call Pump3_OffMode_Solver
  55. end subroutine Pumps_StartUp