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.

Pump_StartUp.f90 2.4 KiB

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. subroutine Pump_StartUp
  2. use CPumpsVariables
  3. use CDrillingConsoleVariables
  4. use CDataDisplayConsoleVariables
  5. use CSimulationVariables
  6. use CPowerVariables
  7. use Pump_VARIABLES
  8. IMPLICIT NONE
  9. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 1 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  10. PUMP(1)%Stroke_Length = MudPump1Stroke
  11. PUMP(1)%Piston_Diameter = MudPump1LinerDiameter
  12. PUMP(1)%Piston_Area = pi*PUMP(1)%Piston_Diameter*PUMP(1)%Piston_Diameter/4.
  13. PUMP(1)%Mech_Efficiency = MudPump1MechanicalEfficiency
  14. PUMP(1)%Vol_Efficiency = MudPump1VolumetricEfficiency
  15. PUMP(1)%Max_Horsepower = MudPump1
  16. PUMP(1)%Inertia_Moment = 23.261341 ! 23.261341 [kg.m^2] = 552 [lb.ft^2]
  17. PUMP(1)%J_coef = PUMP(1)%Inertia_Moment+(4.*(PUMP(1)%Inertia_Moment))
  18. PUMP(1)%Trans_Ratio = 965.0/MudPump1Maximum
  19. PUMP(1)%time_step = .10
  20. PUMP(1)%K_throttle = 0
  21. PUMP(1)%Flow_Rate = 0.
  22. Call Pump1_OffMode_Solver(1)
  23. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 2 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  24. PUMP(2)%Stroke_Length = MudPump2Stroke
  25. PUMP(2)%Piston_Diameter = MudPump2LinerDiameter
  26. PUMP(2)%Piston_Area = pi*PUMP(2)%Piston_Diameter*PUMP(2)%Piston_Diameter/4.
  27. PUMP(2)%Mech_Efficiency = MudPump2MechanicalEfficiency
  28. PUMP(2)%Vol_Efficiency = MudPump2VolumetricEfficiency
  29. PUMP(2)%Max_Horsepower = MudPump2
  30. PUMP(2)%Inertia_Moment = 23.261341 ! 23.261341 [kg.m^2] = 552 [lb.ft^2]
  31. PUMP(2)%J_coef = PUMP(2)%Inertia_Moment+(4.*(PUMP(2)%Inertia_Moment))
  32. PUMP(2)%Trans_Ratio = 965.0/MudPump2Maximum
  33. PUMP(2)%time_step = .10
  34. PUMP(2)%K_throttle = 0
  35. PUMP(2)%Flow_Rate = 0.
  36. Call Pump2_OffMode_Solver(2)
  37. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 3 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  38. PUMP(3)%Stroke_Length = CementPumpStroke
  39. PUMP(3)%Piston_Diameter = CementPumpLinerDiameter
  40. PUMP(3)%Piston_Area = pi*PUMP(3)%Piston_Diameter*PUMP(3)%Piston_Diameter/4.
  41. PUMP(3)%Mech_Efficiency = CementPumpMechanicalEfficiency
  42. PUMP(3)%Vol_Efficiency = CementPumpVolumetricEfficiency
  43. PUMP(3)%Max_Horsepower = CementPump
  44. PUMP(3)%Inertia_Moment = 23.261341 ! 23.261341 [kg.m^2] = 552 [lb.ft^2]
  45. PUMP(3)%Trans_Ratio = 965.0/CementPumpMaximum
  46. PUMP(3)%time_step = .10
  47. PUMP(3)%Flow_Rate = 0.
  48. Call Pump3_OffMode_Solver
  49. end subroutine Pump_StartUp