Simulation Core
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

97 wiersze
4.2 KiB

  1. subroutine TD_MudPropertiesReadData (i)
  2. Use TD_DrillStemComponents
  3. use SimulationVariables !@
  4. use SimulationVariables !@
  5. use SimulationVariables !@
  6. USE FricPressDropVarsModule
  7. USE MudSystemVARIABLES
  8. use SimulationVariables !@@@
  9. implicit none
  10. Integer :: i , j , TDmd
  11. real(8) :: TDden, TDpre, TDtem
  12. !====================================================
  13. ! Set Mud Properties Data
  14. !====================================================
  15. IF ( ALLOCATED(FlowEl) ) THEN
  16. if ( i==2 ) then
  17. TDmd = int(data%State%TD_DrillStems(i)%DownDepthIni-1.d0)
  18. else
  19. TDmd = int(data%State%TD_DrillStems(i)%DownDepthIni)
  20. end if
  21. Call StringPropertyCalculator (TDmd , TDden, TDpre, TDtem)
  22. data%State%TD_DrillStems(i)%MudDensityIn = TDden*7.48051948d0 ! [ppg]*7.48051948=[lb/ft3]
  23. Call AnnulusPropertyCalculator (TDmd , TDden, TDpre, TDtem)
  24. data%State%TD_DrillStems(i)%MudDensityOut = TDden*7.48051948d0 ! [ppg]*7.48051948=[lb/ft3]
  25. data%State%TD_DrillStems(i)%MudWeight = TDden ! [ppg] ???????????????
  26. ELSE
  27. data%State%TD_DrillStems(i)%MudDensityIn = data%State%TD_DrillStems(i)%MudDensityIn
  28. data%State%TD_DrillStems(i)%MudDensityOut = data%State%TD_DrillStems(i)%MudDensityOut
  29. data%State%TD_DrillStems(i)%MudWeight = data%State%TD_DrillStems(i)%MudWeight
  30. END IF
  31. !data%State%TD_DrillStems(i)%Drag =
  32. !IF (ALLOCATED(data%State%TD_String%FluidMudDensity) .and. ALLOCATED(data%State%TD_String%FluidMudStartX) .and. data%State%TD_String%NoStringMudElements/=0) THEN
  33. ! Do j = TD_StringNoHorizontalMudElements+1,TD_StringNoHorizontalMudElements+data%State%TD_String%NoStringMudElements
  34. ! if ( data%State%TD_DrillStems(i)%DownDepthIni<=data%State%TD_String%FluidMudStartX(j) ) then
  35. ! exit
  36. ! end if
  37. ! data%State%TD_DrillStems(i)%MudDensityIn = data%State%TD_String%FluidMudDensity(j)*7.48051948d0 !10.*7.48051948 ! [ppg]*7.48051948=[lb/ft3]
  38. ! !print*, 'data%State%TD_DrillStems(i)%MudDensityIn=' ,data%State%TD_DrillStems(i)%MudDensityIn , i
  39. ! !print*, 'FlowEl(j)%density=' ,FlowEl(j)%density , i
  40. ! End Do
  41. !ELSE
  42. ! data%State%TD_DrillStems(i)%MudDensityIn = data%State%TD_DrillStems(i)%MudDensityIn ! [ppg]*7.48051948=[lb/ft3]
  43. !! !print*, '=================' , i
  44. !END IF
  45. !
  46. !
  47. !
  48. !
  49. !
  50. !
  51. !
  52. !IF (ALLOCATED(data%State%TD_String%FluidMudDensity) .and. ALLOCATED(data%State%TD_String%FluidMudEndX) .and. data%State%TD_String%NoCasingMudElements/=0) THEN
  53. ! Do j = (TD_StringNoHorizontalMudElements+data%State%TD_String%NoStringMudElements+data%State%TD_String%NoCasingMudElements),(TD_StringNoHorizontalMudElements+data%State%TD_String%NoStringMudElements+1),-1
  54. ! if ( data%State%TD_DrillStems(i)%DownDepthIni<=data%State%TD_String%FluidMudEndX(j) ) then
  55. ! exit
  56. ! end if
  57. ! data%State%TD_DrillStems(i)%MudDensityOut = data%State%TD_String%FluidMudDensity(j)*7.48051948d0 !10.*7.48051948 ! [ppg]*7.48051948=[lb/ft3]
  58. ! data%State%TD_DrillStems(i)%MudWeight = data%State%TD_String%FluidMudDensity(j) !10.0 ! [ppg] ???????????????
  59. ! End Do
  60. !ELSE
  61. ! data%State%TD_DrillStems(i)%MudDensityOut = data%State%TD_DrillStems(i)%MudDensityOut ! [ppg]*7.48051948=[lb/ft3]
  62. ! data%State%TD_DrillStems(i)%MudWeight = data%State%TD_DrillStems(i)%MudWeight ! [ppg] ???????????????
  63. !END IF
  64. data%State%TD_DrillStems(i)%MudPlasticVis = 5.d0+(5.d0*(data%State%TD_DrillStems(i)%MudWeight-8.3d0)) ! [cP]
  65. !data%State%TD_DrillStems(i)%MudPlasticVis= data%State%TD_DrillStems(i)%MudPlasticVis * 6.71968d-4 ! [cP]*6.71968d-4=[lb/(ft.s)]
  66. data%State%TD_DrillStems(i)%MudViscosity = 0.2d0 !data%State%TD_DrillStems(i)%MudPlasticVis
  67. data%State%TD_DrillStems(i)%MudYieldPoint = 10.d0+(data%State%TD_DrillStems(i)%MudWeight-8.3d0)
  68. end subroutine