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

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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)%Flow_Rate = 0.
  21. Call Pump1_OffMode_Solver(1)
  22. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 2 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  23. PUMP(2)%Stroke_Length = MudPump2Stroke
  24. PUMP(2)%Piston_Diameter = MudPump2LinerDiameter
  25. PUMP(2)%Piston_Area = pi*PUMP(2)%Piston_Diameter*PUMP(2)%Piston_Diameter/4.
  26. PUMP(2)%Mech_Efficiency = MudPump2MechanicalEfficiency
  27. PUMP(2)%Vol_Efficiency = MudPump2VolumetricEfficiency
  28. PUMP(2)%Max_Horsepower = MudPump2
  29. PUMP(2)%Inertia_Moment = 23.261341 ! 23.261341 [kg.m^2] = 552 [lb.ft^2]
  30. PUMP(2)%J_coef = PUMP(2)%Inertia_Moment+(4.*(PUMP(2)%Inertia_Moment))
  31. PUMP(2)%Trans_Ratio = 965.0/MudPump2Maximum
  32. PUMP(2)%time_step = .10
  33. PUMP(2)%Flow_Rate = 0.
  34. Call Pump2_OffMode_Solver(2)
  35. !>>>>>>>>>>>>>>>>>>>>>>> PUMP 3 <<<<<<<<<<<<<<<<<<<<<<<<<<<
  36. PUMP(3)%Stroke_Length = CementPumpStroke
  37. PUMP(3)%Piston_Diameter = CementPumpLinerDiameter
  38. PUMP(3)%Piston_Area = pi*PUMP(3)%Piston_Diameter*PUMP(3)%Piston_Diameter/4.
  39. PUMP(3)%Mech_Efficiency = CementPumpMechanicalEfficiency
  40. PUMP(3)%Vol_Efficiency = CementPumpVolumetricEfficiency
  41. PUMP(3)%Max_Horsepower = CementPump
  42. PUMP(3)%Inertia_Moment = 23.261341 ! 23.261341 [kg.m^2] = 552 [lb.ft^2]
  43. PUMP(3)%Trans_Ratio = 965.0/CementPumpMaximum
  44. PUMP(3)%time_step = .10
  45. PUMP(3)%Flow_Rate = 0.
  46. Call Pump3_OffMode_Solver
  47. end subroutine Pump_StartUp