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_WellGeoConfiguration.f90 1.5 KiB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. subroutine TD_WellGeoConfiguration
  2. Use TD_DrillStemComponents
  3. Use TD_WellElements
  4. Use TD_WellGeometry
  5. Use TD_GeneralData
  6. Use sROP_Variables
  7. Use CDataDisplayConsoleVariables
  8. Use CWarningsVariables
  9. implicit none
  10. !====================================================
  11. ! Well Geometry Data Modification
  12. !====================================================
  13. !=====> ROP Calculation
  14. if ( TD_DrillStems(1)%ComponentType==0 .and. MaximumWellDepthExceeded==.false. ) then
  15. Call ROP_MainCalculation
  16. else
  17. Rate_of_Penetration = 0.d0
  18. Call Set_ROP(Rate_of_Penetration)
  19. end if
  20. !=====> ROPHole Data correction
  21. TD_ROP = (Rate_of_Penetration/3600.d0) ! [ft/s]
  22. TD_WellGeo(TD_WellIntervalsCount)%VerticalDepth = TD_WellGeo(TD_WellIntervalsCount)%VerticalDepth++((TD_ROP*TD_TimeStep)*cos(TD_WellGeo(TD_WellIntervalsCount)%StartAngle))
  23. TD_WellGeo(TD_WellIntervalsCount)%IntervalLength = TD_WellGeo(TD_WellIntervalsCount)%IntervalLength+(TD_ROP*TD_TimeStep) !????????check
  24. TD_WellGeo(TD_WellIntervalsCount)%DownDepth = TD_WellGeo(TD_WellIntervalsCount)%TopDepth+TD_WellGeo(TD_WellIntervalsCount)%IntervalLength
  25. !=====> Well Total Length Calculation
  26. TD_WellTotalLength = TD_WellGeo(TD_WellIntervalsCount)%DownDepth
  27. TD_WellTotalVerticalLength = TD_WellTotalVerticalLength+((TD_ROP*TD_TimeStep)*cos(TD_WellGeo(TD_WellIntervalsCount)%StartAngle))
  28. Call Set_TotalDepth(real(TD_WellTotalLength,8))
  29. end subroutine