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.

TD_StartUp.f90 5.2 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. subroutine TD_StartUp
  2. Use CCasingLinerChokeVariables
  3. Use CStringConfigurationVariables
  4. ! use CSimulationVariables
  5. use UnitySignalVariables
  6. ! Use COperationConditionEnumVariables
  7. Use CHoistingVariables
  8. Use CPathGenerationVariables
  9. Use TD_DrillStemComponents
  10. Use TD_WellElements
  11. Use TD_WellGeometry
  12. Use TD_GeneralData
  13. Use TD_StringConnectionData
  14. Use Drawworks_VARIABLES!, only: Drawworks
  15. Use sROP_Variables
  16. Use sROP_Other_Variables
  17. implicit none
  18. !!====================================================
  19. !! Allocate Modules
  20. !!====================================================
  21. ! !=====> Set WellGeo Dimension
  22. ! TD_WellIntervalsCount = PathGenerationCount + 1 ! +1 is belong to ROP hole
  23. ! Allocate (TD_WellGeo(TD_WellIntervalsCount))
  24. !
  25. ! !=====> Set WellGeo Dimension
  26. !=====> Set ROP StartUp
  27. Bit_Wearing = 0.d0
  28. Rate_of_Penetration = 0.d0
  29. Bearing_Wear = 0.d0
  30. FormationNumber = 0
  31. Old_ROPDepth = PathGeneration%Items(PathGeneration%ItemCount)%MeasuredDepth
  32. Old_ROPValue = 0.d0
  33. Set_ROPGauge = 0.d0
  34. !=====> Set BOP StartUp
  35. TD_BOPCondition = 0
  36. TD_BOPThickness = (0.13477d0/2.d0)*3.28d0 ![m]*3.28=[ft] , Total Thickness (RAM)= 134.77mm
  37. TD_AnnularFillingFinal = 0.d0
  38. DW_TDHookHeight = 75.d0 ![ft]
  39. Drawworks%Hook_Height_ini = 75.d0 ![ft]
  40. Drawworks%Hook_Height_final = 75.d0 ![ft]
  41. !=====> String Connection Mode
  42. if ( Get_OperationCondition()==OPERATION_TRIP ) then
  43. TD_OldOperationCondition = 1
  44. else
  45. TD_OldOperationCondition = 0
  46. end if
  47. TD_KellyDriveTypeMode = 0 !Kelly Mode
  48. TD_FluidStringConnectionMode = 0
  49. TD_ConnectionHeight = 3.48d0 ![ft]
  50. TD_RigidConnectionHeight = 3.48d0 ![ft]
  51. TD_GRigidConnectionHeight = 3.48d0 ![ft]
  52. TD_TopJointHeight = 3.48d0 ![ft]
  53. !TD_TouchConnectionHeight =
  54. TD_StringVelocity = 0.0d0
  55. TD_HookHeightOld = 75.d0 ![ft]
  56. TD_HookHeight = 75.d0 ![ft]
  57. TD_HookVelocity = 0.0d0
  58. !=====> Element Specification
  59. TD_HookHeight = DW_TDHookHeight ! unit: [ft]
  60. TD_ElevatorConst = 17.985 ! [ft] Elevator Length(14.84) ????????????????? adad ha daghigh shavand
  61. TD_ElevatorECG = 2.217 ! [ft]
  62. TD_KellyConst = 63.280d0 ! [ft] Kelly Length(61.74) + Safety Valve Length(1.54)
  63. TD_KellyElementConst = 41.840d0 ! [ft] Kelly Element Length(40.3) + Safety Valve Length(1.54)
  64. TD_TDSLength = 24.08d0 !??????????????????? ! [ft]
  65. TD_TDSToolJointLength = 0.77d0 !??????????????????? ! [ft]
  66. TD_TDSElevatorLength = 26.837d0 !?????? ! TDS with Elevator Length [ft]
  67. TD_TDSElevatorToolLength= 0.859d0 !??????????????????? ! [ft]
  68. TD_TDSElevatorECG = 2.454 ! [ft]
  69. TD_NumOfCables = Hoisting%NumberOfLine
  70. TD_WeightTB = Hoisting%TravelingBlockWeight ! [lb]
  71. TD_WeightTD = Hoisting%TopDriveWeight ! [lb]
  72. TD_KellyWeight = Hoisting%KellyWeight ! [lb]
  73. TD_SafetyValveLength = 1.54d0 ! [ft]
  74. TD_IBOPLength = 1.54d0 ! [ft]
  75. TD_KellyElementID = 3.0d0/12.d0 ! [ft]
  76. TD_KellyElementOD = 5.90d0/12.d0 ! [ft]
  77. TD_DrawworksLoadInput = Hoisting%TravelingBlockWeight/Hoisting%NumberOfLine
  78. TD_IBOPNewAdd = 0
  79. TD_IBOPOldAdd = 0 !Remove
  80. TD_SafetyValveNewAdd = 0
  81. TD_SafetyValveOldAdd = 1 !Install
  82. TD_KellyNewAdd = 0
  83. TD_KellyOldAdd = 0
  84. TD_IBOPNewRemove = 0
  85. TD_IBOPOldRemove = 1 !Remove
  86. TD_SafetyValveNewRemove = 0
  87. TD_SafetyValveOldRemove = 0 !Install
  88. TD_KellyNewRemove = 0
  89. TD_KellyOldRemove = 1
  90. TD_KellyOldStatus1 = 0
  91. TD_KellyNewStatus1 = 0
  92. TD_KellyOldStatus2 = 1 ! Kelly Connected Nothing
  93. TD_KellyNewStatus2 = 1 ! Kelly Connected Nothing
  94. TD_KellyOldStatus3 = 0
  95. TD_KellyNewStatus3 = 0
  96. TD_KellyOldStatus4 = 0
  97. TD_KellyNewStatus4 = 0
  98. TD_KellyOldStatus5 = 0
  99. TD_KellyNewStatus5 = 0
  100. TD_KellyOldStatus6 = 0
  101. TD_KellyNewStatus6 = 0
  102. TD_KellyOldStatus7 = 0
  103. TD_KellyNewStatus7 = 0
  104. TD_KellyOldStatus8 = 0
  105. TD_KellyNewStatus8 = 0
  106. TD_KellyOldStatus18 = 0
  107. TD_KellyNewStatus18 = 0
  108. TD_KellyOldStatus19 = 0
  109. TD_KellyNewStatus19 = 0
  110. TD_KellyOldStatus9 = 0
  111. TD_KellyNewStatus9 = 0
  112. TD_KellyOldStatus10 = 0
  113. TD_KellyNewStatus10 = 0
  114. TD_KellyOldStatus11 = 0
  115. TD_KellyNewStatus11 = 0
  116. TD_KellyOldStatus12 = 0
  117. TD_KellyNewStatus12 = 0
  118. TD_KellyOldStatus13 = 1
  119. TD_KellyNewStatus13 = 1
  120. TD_KellyOldStatus14 = 0
  121. TD_KellyNewStatus14 = 0
  122. TD_KellyOldStatus15 = 0
  123. TD_KellyNewStatus15 = 0
  124. TD_KellyOldStatus16 = 0
  125. TD_KellyNewStatus16 = 0
  126. TD_KellyOldStatus17 = 0
  127. TD_KellyNewStatus17 = 0
  128. !=====> Problems
  129. TD_WeightIndicatorMalf = 0
  130. end subroutine