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 8.4 KiB

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