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.
 
 
 
 
 
 

102 lines
2.5 KiB

  1. subroutine Drawworks_StartUp
  2. Use CDrillingConsoleVariables
  3. Use CHoistingVariables
  4. Use Drawworks_VARIABLES
  5. !Use CWarningsVariables
  6. IMPLICIT NONE
  7. Integer :: jj, ii
  8. StringIsBottomOfWell = 0 ! 1=string is at the bottom of the well
  9. !===> Hook Height
  10. Drawworks%Hook_Height_ini = 75.0d0 ![ft]
  11. Drawworks%Hook_Height_ini_graph_output = -1.54090d0 ![ft]
  12. Drawworks%Hook_Height_inim = 0.3048*Drawworks%Hook_Height_ini ![m]
  13. Drawworks%Hook_Height = Drawworks%Hook_Height_inim ![m]
  14. Drawworks%Hook_Height_final = 75.0 ![ft]
  15. !===> Drum (Drawworks) Diameter
  16. Drawworks%Diameter = 2.50d0 ![ft]
  17. Drawworks%Diameter = 0.3048*Drawworks%Diameter ![m]
  18. !===> Number of Line
  19. Drawworks%NumberOfLine = Hoisting%NumberOfLine
  20. !===> Inertia Moment (Drawworks)
  21. Drawworks%Inertia_Moment = 23.261341 ! 23.261341 [kg.m^2] = 552 [Ib.ft^2]
  22. !Drawworks%J_coef = Drawworks%Inertia_Moment+(9.*(Drawworks%Inertia_Moment))
  23. Drawworks%J_coef = 1200.0d0 ![kg.m^2]
  24. !===> Simulation time step
  25. Drawworks%time_step = 0.10d0
  26. !CrownCollision = 0
  27. !FloorCollision = 0
  28. !>>>>>>>>>>>>>>>>>>> Transmission Ratio <<<<<<<<<<<<<<<<<<<
  29. DO ii=-1,1 !ii=clutch mode
  30. DO jj=-1,1 !jj=transmission mode
  31. if (ii==0 .or. jj==0) then
  32. Drawworks%FWD_Conv_Ratio(ii,jj) = 1.
  33. end if
  34. End DO
  35. End DO
  36. Drawworks%FWD_Conv_Ratio(1,1) = 1.0d0/.380
  37. Drawworks%FWD_Conv_Ratio(1,-1) = 1.0d0/.2170
  38. Drawworks%FWD_Conv_Ratio(-1,1) = 1.0d0/.110
  39. Drawworks%FWD_Conv_Ratio(-1,-1) = 1.0d0/.0630
  40. DW_OldTransMode = DrillingConsole%DWTransmisionLever
  41. DW_OldClutchMode = DrillingConsole%DWClutchLever
  42. !===> motor variables
  43. Drawworks%w_drum = 0.
  44. Drawworks%w_old_drum = 0.
  45. Drawworks%w = 0.
  46. Drawworks%w_old = 0.
  47. Drawworks%ia = 0.
  48. Drawworks%ia_old = 0.
  49. Drawworks%x = 0.
  50. Drawworks%x_old = 0.
  51. Drawworks%y = 0.
  52. Drawworks%y_old = 0.
  53. Drawworks%motion = 0
  54. end subroutine Drawworks_StartUp