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.
 
 
 
 
 
 

113 lines
6.4 KiB

  1. # 1 "/home/admin/SimulationCore2/TorqueDrag/TD_Modules/TD_DrillStem.f90"
  2. MODULE TD_DrillStemComponents
  3. Use CDownHoleVariables
  4. IMPLICIT NONE
  5. PUBLIC
  6. !************************************************************************************************************************************
  7. TYPE, PUBLIC :: TD_StringInfo
  8. INTEGER :: StringConfigurationCount , DrillStemComponentsNumbs , DrillStemForceType
  9. INTEGER :: NoHorizontalMudElements , NoStringMudElements , NoCasingMudElements
  10. REAL(8) :: DrillStemTotalLength , DrillStemTotalLengthIni , OutOfWellLength , DrillStemTotalWeight , DrillStemBottom
  11. REAL(8) :: DrillStemAxialVelocity , DrillStemRotVelocity , TopJointHeight
  12. REAL(8) :: WeightOnBit , BitTorque , TotalTorque , StaticHookLoad , DlMax , DlTotal , DlTouch
  13. REAL(8) :: HookLoad , StringTorque
  14. REAL(8) :: ToolJointRange
  15. real(8) , allocatable :: FluidMudDensity(:) , FluidMudEndX(:) , FluidMudStartX(:)
  16. !====================================================
  17. ! Separated Parts of the Drill Stem
  18. INTEGER :: NearFloorConnectionNo
  19. REAL(8) :: NearFloorConnectionHeight
  20. !====================================================
  21. END TYPE TD_StringInfo
  22. !************************************************************************************************************************************
  23. !************************************************************************************************************************************
  24. !====================================================
  25. ! Drill Stem Components Info
  26. !====================================================
  27. TYPE, PUBLIC :: TD_DrillStemInfo
  28. INTEGER :: Numbs , ComponentType
  29. REAL(8) :: Length , TopDepth , DownDepth , Od , Id , WeightperLength , TotalLength , TotalWeight
  30. END TYPE TD_DrillStemInfo
  31. !************************************************************************************************************************************
  32. !************************************************************************************************************************************
  33. !====================================================
  34. ! Separated Parts of the Drill Stem
  35. !====================================================
  36. TYPE , PUBLIC :: TD_SeparatedDrillStemInfo
  37. !=========> Elements Geometry
  38. INTEGER :: HoleType , ComponentType
  39. REAL(8) :: Length , TopDepth , DownDepth , Od , Id , Area , Weight , WeightperLength , StartAngle , EndAngle
  40. REAL(8) :: RCurvature , RtoolJoint , HoleDiameter , ToolJointRange
  41. !=========> Elements initial Geometry
  42. REAL(8) :: LengthIni , TopDepthIni , DownDepthIni , StartAngleIni , EndAngleIni
  43. !=========> Elements initial Geometry (graphic)
  44. REAL(8) :: TopDepthIniG , DownDepthIniG
  45. !=========> Pipes Properties
  46. REAL(8) :: Density , ElasticModule
  47. !=========> Forces Info
  48. REAL(8) :: Force1 , Force2 , Torque , Drag , CombVelRatio
  49. !=========> Mud Properties
  50. REAL(8) :: MudDensityIn , MudDensityOut , MudViscosity , MudVisCorrectCoef , BouyancyFactor , MudWeight , MudPlasticVis , MudYieldPoint
  51. !=========> Viscous Drag Force
  52. REAL(8) :: FricFactor , DiamRatio , MudClingingConst , PipeVelocity , AveEffVelocity , ReNumber , Dp_Dl
  53. !=========> Hook Load
  54. REAL(8) :: StaticHookLoad , TotalSHookLoad , Dl , DlTotal
  55. END TYPE TD_SeparatedDrillStemInfo
  56. !************************************************************************************************************************************
  57. !************************************************************************************************************************************
  58. !====================================================
  59. ! Add&Remove DrillStem Components
  60. !====================================================
  61. TYPE , PUBLIC :: TD_AddRemoveInfo
  62. INTEGER :: IBOPNewAdd , IBOPOldAdd , SafetyValveNewAdd , SafetyValveOldAdd , KellyNewAdd , KellyOldAdd
  63. INTEGER :: IBOPNewRemove , IBOPOldRemove , SafetyValveNewRemove , SafetyValveOldRemove , KellyNewRemove , KellyOldRemove
  64. INTEGER , Dimension(19) :: KellyOldStatus , KellyNewStatus
  65. !integer :: TD_KellyOldStatus1 , TD_KellyNewStatus1 , TD_KellyOldStatus2 , TD_KellyNewStatus2 , TD_KellyOldStatus3 , TD_KellyNewStatus3
  66. !integer :: TD_KellyOldStatus4 , TD_KellyNewStatus4 , TD_KellyOldStatus5 , TD_KellyNewStatus5 , TD_KellyOldStatus6 , TD_KellyNewStatus6
  67. !integer :: TD_KellyOldStatus7 , TD_KellyNewStatus7 , TD_KellyOldStatus8 , TD_KellyNewStatus8
  68. !integer :: TD_KellyOldStatus9 , TD_KellyNewStatus9 , TD_KellyOldStatus10 , TD_KellyNewStatus10
  69. !integer :: TD_KellyOldStatus11 , TD_KellyNewStatus11 , TD_KellyOldStatus12 , TD_KellyNewStatus12
  70. !integer :: TD_KellyOldStatus13 , TD_KellyNewStatus13 , TD_KellyOldStatus14 , TD_KellyNewStatus14
  71. !integer :: TD_KellyOldStatus15 , TD_KellyNewStatus15 , TD_KellyOldStatus16 , TD_KellyNewStatus16 , TD_KellyOldStatus17 , TD_KellyNewStatus17
  72. !integer :: TD_KellyOldStatus18 , TD_KellyNewStatus18 , TD_KellyOldStatus19 , TD_KellyNewStatus19
  73. END TYPE TD_AddRemoveInfo
  74. !************************************************************************************************************************************
  75. !************************************************************************************************************************************
  76. !====================================================
  77. ! Graphic Output Info
  78. !====================================================
  79. !TYPE, PUBLIC :: CStringComponent
  80. ! Integer :: ComponentType
  81. ! REAL(8) :: Length , TopDepth , DownDepth , Od , Id
  82. !END TYPE CStringComponent
  83. !************************************************************************************************************************************
  84. !************************************************************************************************************************************
  85. !====================================================
  86. ! Removed-Volume Variables
  87. !====================================================
  88. TYPE , PUBLIC :: TD_RemovedVolumeInfo
  89. Integer :: PreCount
  90. REAL(8) :: RemoveVolume , PreElementVolume , PreElementLength
  91. END TYPE TD_RemovedVolumeInfo
  92. !************************************************************************************************************************************
  93. END MODULE TD_DrillStemComponents