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.

Deallocate_Normal_Circulation.f90 7.2 KiB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. subroutine DEALLOCATE_ARRAYS_NormalCirculation() ! is called in module FluidFlowMain
  2. USE MudSystemVARIABLES
  3. implicit none
  4. if(allocated(Xstart_PipeSection)) deallocate(Xstart_PipeSection)
  5. if(allocated(Xend_PipeSection)) deallocate(Xend_PipeSection)
  6. if(allocated(PipeSection_VolumeCapacity)) deallocate(PipeSection_VolumeCapacity)
  7. if(allocated(Area_PipeSectionFt)) deallocate(Area_PipeSectionFt)
  8. if(allocated(OD_PipeSectionInch)) deallocate(OD_PipeSectionInch)
  9. if(allocated(ID_PipeSectionInch)) deallocate(ID_PipeSectionInch)
  10. if(allocated(Xstart_OpSection)) deallocate(Xstart_OpSection)
  11. if(allocated(Xend_OpSection)) deallocate(Xend_OpSection)
  12. if(allocated(Area_OpSectionFt)) deallocate(Area_OpSectionFt)
  13. if(allocated(OD_OpSectionInch)) deallocate(OD_OpSectionInch)
  14. if(allocated(ID_OpSectionInch)) deallocate(ID_OpSectionInch)
  15. if(allocated(OpSection_VolumeCapacity)) deallocate(OpSection_VolumeCapacity)
  16. if(allocated(GeoTypeOp)) deallocate(GeoTypeOp)
  17. if(allocated(GeoType)) deallocate(GeoType)
  18. call Hz_MudDischarged_Volume%Empty()
  19. call Hz_Mud_Backhead_X%Empty()
  20. call Hz_Mud_Backhead_section%Empty()
  21. call Hz_Mud_Forehead_X%Empty()
  22. call Hz_Mud_Forehead_section%Empty()
  23. call Hz_Density%Empty()
  24. call Hz_RemainedVolume_in_LastSection%Empty()
  25. call Hz_EmptyVolume_inBackheadLocation%Empty()
  26. call Hz_MudOrKick%Empty()
  27. call St_MudDischarged_Volume%Empty()
  28. call St_Mud_Backhead_X%Empty()
  29. call St_Mud_Backhead_section%Empty()
  30. call St_Mud_Forehead_X%Empty()
  31. call St_Mud_Forehead_section%Empty()
  32. call St_Density%Empty()
  33. call St_RemainedVolume_in_LastSection%Empty()
  34. call St_EmptyVolume_inBackheadLocation%Empty()
  35. call St_MudOrKick%Empty()
  36. call Ann_MudDischarged_Volume%Empty()
  37. call Ann_Mud_Backhead_X%Empty()
  38. call Ann_Mud_Backhead_section%Empty()
  39. call Ann_Mud_Forehead_X%Empty()
  40. call Ann_Mud_Forehead_section%Empty()
  41. call Ann_Density%Empty()
  42. call Ann_RemainedVolume_in_LastSection%Empty()
  43. call Ann_EmptyVolume_inBackheadLocation%Empty()
  44. call Ann_MudOrKick%Empty()
  45. call Ann_CuttingMud%Empty()
  46. call Op_MudDischarged_Volume%Empty()
  47. call Op_Mud_Backhead_X%Empty()
  48. call Op_Mud_Backhead_section%Empty()
  49. call Op_Mud_Forehead_X%Empty()
  50. call Op_Mud_Forehead_section%Empty()
  51. call Op_Density%Empty()
  52. call Op_RemainedVolume_in_LastSection%Empty()
  53. call Op_EmptyVolume_inBackheadLocation%Empty()
  54. call Op_MudOrKick%Empty()
  55. call ChokeLine_MudDischarged_Volume%Empty()
  56. call ChokeLine_Mud_Backhead_X%Empty()
  57. call ChokeLine_Mud_Backhead_section%Empty()
  58. call ChokeLine_Mud_Forehead_X%Empty()
  59. call ChokeLine_Mud_Forehead_section%Empty()
  60. call ChokeLine_Density%Empty()
  61. call ChokeLine_RemainedVolume_in_LastSection%Empty()
  62. call ChokeLine_EmptyVolume_inBackheadLocation%Empty()
  63. call ChokeLine_MudOrKick%Empty()
  64. call Xend_MudElement%Empty()
  65. call Xstart_MudElement%Empty()
  66. call TVDend_MudElement%Empty()
  67. call TVDstart_MudElement%Empty()
  68. call Density_MudElement%Empty()
  69. call MudGeoType%Empty()
  70. call PipeID_MudElement%Empty()
  71. call PipeOD_MudElement%Empty()
  72. call MudType_MudElement%Empty()
  73. call Xend_OpMudElement%Empty()
  74. call Xstart_OpMudElement%Empty()
  75. call TVDend_OpMudElement%Empty()
  76. call TVDstart_OPMudElement%Empty()
  77. call Density_OpMudElement%Empty()
  78. call PipeID_OpMudElement%Empty()
  79. call PipeOD_OpMudElement%Empty()
  80. call MudTypeOp_MudElement%Empty()
  81. end subroutine
  82. subroutine RemoveAnnulusMudArrays(ilocal)
  83. USE MudSystemVARIABLES
  84. implicit none
  85. INTEGER :: ilocal
  86. call Ann_MudDischarged_Volume%Remove (ilocal)
  87. call Ann_Mud_Backhead_X%Remove (ilocal)
  88. call Ann_Mud_Backhead_section%Remove (ilocal)
  89. call Ann_Mud_Forehead_X%Remove (ilocal)
  90. call Ann_Mud_Forehead_section%Remove (ilocal)
  91. call Ann_Density%Remove (ilocal)
  92. call Ann_RemainedVolume_in_LastSection%Remove (ilocal)
  93. call Ann_EmptyVolume_inBackheadLocation%Remove (ilocal)
  94. call Ann_MudOrKick%Remove (ilocal)
  95. call Ann_CuttingMud%Remove (ilocal)
  96. end subroutine
  97. subroutine RemoveStringMudArrays(ilocal)
  98. USE MudSystemVARIABLES
  99. implicit none
  100. INTEGER :: ilocal
  101. call St_MudDischarged_Volume%Remove (ilocal)
  102. call St_Mud_Backhead_X%Remove (ilocal)
  103. call St_Mud_Backhead_section%Remove (ilocal)
  104. call St_Mud_Forehead_X%Remove (ilocal)
  105. call St_Mud_Forehead_section%Remove (ilocal)
  106. call St_Density%Remove (ilocal)
  107. call St_RemainedVolume_in_LastSection%Remove (ilocal)
  108. call St_EmptyVolume_inBackheadLocation%Remove (ilocal)
  109. call St_MudOrKick%Remove (ilocal)
  110. end subroutine
  111. subroutine RemoveOpMudArrays(ilocal)
  112. USE MudSystemVARIABLES
  113. implicit none
  114. INTEGER :: ilocal
  115. call Op_MudDischarged_Volume%Remove (ilocal)
  116. call Op_Mud_Backhead_X%Remove (ilocal)
  117. call Op_Mud_Backhead_section%Remove (ilocal)
  118. call Op_Mud_Forehead_X%Remove (ilocal)
  119. call Op_Mud_Forehead_section%Remove (ilocal)
  120. call Op_Density%Remove (ilocal)
  121. call Op_RemainedVolume_in_LastSection%Remove (ilocal)
  122. call Op_EmptyVolume_inBackheadLocation%Remove (ilocal)
  123. call Op_MudOrKick%Remove (ilocal)
  124. end subroutine
  125. subroutine RemoveHzMudArrays(ilocal)
  126. USE MudSystemVARIABLES
  127. implicit none
  128. INTEGER :: ilocal
  129. call Hz_MudDischarged_Volume%Remove (ilocal)
  130. call Hz_Mud_Backhead_X%Remove (ilocal)
  131. call Hz_Mud_Backhead_section%Remove (ilocal)
  132. call Hz_Mud_Forehead_X%Remove (ilocal)
  133. call Hz_Mud_Forehead_section%Remove (ilocal)
  134. call Hz_Density%Remove (ilocal)
  135. call Hz_RemainedVolume_in_LastSection%Remove (ilocal)
  136. call Hz_EmptyVolume_inBackheadLocation%Remove (ilocal)
  137. call Hz_MudOrKick%Remove (ilocal)
  138. end subroutine