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.0 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
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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. subroutine DEALLOCATE_ARRAYS_NormalCirculation() ! is called in module FluidFlowMain
  2. USE MudSystemVARIABLES
  3. implicit none
  4. if(allocated(MudSystemDotXstart_PipeSection)) deallocate(MudSystemDotXstart_PipeSection)
  5. if(allocated(MudSystemDotXend_PipeSection)) deallocate(MudSystemDotXend_PipeSection)
  6. if(allocated(MudSystemDotPipeSection_VolumeCapacity)) deallocate(MudSystemDotPipeSection_VolumeCapacity)
  7. if(allocated(MudSystemDotArea_PipeSectionFt)) deallocate(MudSystemDotArea_PipeSectionFt)
  8. if(allocated(MudSystemDotOD_PipeSectionInch)) deallocate(MudSystemDotOD_PipeSectionInch)
  9. if(allocated(MudSystemDotID_PipeSectionInch)) deallocate(MudSystemDotID_PipeSectionInch)
  10. if(allocated(MudSystemDotXstart_OpSection)) deallocate(MudSystemDotXstart_OpSection)
  11. if(allocated(MudSystemDotXend_OpSection)) deallocate(MudSystemDotXend_OpSection)
  12. if(allocated(MudSystemDotArea_OpSectionFt)) deallocate(MudSystemDotArea_OpSectionFt)
  13. if(allocated(MudSystemDotOD_OpSectionInch)) deallocate(MudSystemDotOD_OpSectionInch)
  14. if(allocated(MudSystemDotID_OpSectionInch)) deallocate(MudSystemDotID_OpSectionInch)
  15. if(allocated(MudSystemDotOpSection_VolumeCapacity)) deallocate(MudSystemDotOpSection_VolumeCapacity)
  16. if(allocated(MudSystemDotGeoTypeOp)) deallocate(MudSystemDotGeoTypeOp)
  17. if(allocated(MudSystemDotGeoType)) deallocate(MudSystemDotGeoType)
  18. call MudSystemDotHz_MudDischarged_Volume%Empty()
  19. call MudSystemDotHz_Mud_Backhead_X%Empty()
  20. call Hz_Mud_Backhead_section%Empty()
  21. call MudSystemDotHz_Mud_Forehead_X%Empty()
  22. call Hz_Mud_Forehead_section%Empty()
  23. call MudSystemDotHz_Density%Empty()
  24. call MudSystemDotHz_RemainedVolume_in_LastSection%Empty()
  25. call MudSystemDotHz_EmptyVolume_inBackheadLocation%Empty()
  26. call Hz_MudOrKick%Empty()
  27. call MudSystemDotSt_MudDischarged_Volume%Empty()
  28. call MudSystemDotSt_Mud_Backhead_X%Empty()
  29. call St_Mud_Backhead_section%Empty()
  30. call MudSystemDotSt_Mud_Forehead_X%Empty()
  31. call St_Mud_Forehead_section%Empty()
  32. call St_Density%Empty()
  33. call MudSystemDotSt_RemainedVolume_in_LastSection%Empty()
  34. call MudSystemDotSt_EmptyVolume_inBackheadLocation%Empty()
  35. call St_MudOrKick%Empty()
  36. call MudSystemDotAnn_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 MudSystemDotOp_MudDischarged_Volume%Empty()
  47. call MudSystemDotOp_Mud_Backhead_X%Empty()
  48. call Op_Mud_Backhead_section%Empty()
  49. call MudSystemDotOp_Mud_Forehead_X%Empty()
  50. call Op_Mud_Forehead_section%Empty()
  51. call MudSystemDotOp_Density%Empty()
  52. call MudSystemDotOp_RemainedVolume_in_LastSection%Empty()
  53. call MudSystemDotOp_EmptyVolume_inBackheadLocation%Empty()
  54. call Op_MudOrKick%Empty()
  55. call MudSystemDotChokeLine_MudDischarged_Volume%Empty()
  56. call MudSystemDotChokeLine_Mud_Backhead_X%Empty()
  57. call ChokeLine_Mud_Backhead_section%Empty()
  58. call MudSystemDotChokeLine_Mud_Forehead_X%Empty()
  59. call ChokeLine_Mud_Forehead_section%Empty()
  60. call MudSystemDotChokeLine_Density%Empty()
  61. call MudSystemDotChokeLine_RemainedVolume_in_LastSection%Empty()
  62. call MudSystemDotChokeLine_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 MudSystemDotAnn_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 MudSystemDotSt_MudDischarged_Volume%Remove (ilocal)
  102. call MudSystemDotSt_Mud_Backhead_X%Remove (ilocal)
  103. call St_Mud_Backhead_section%Remove (ilocal)
  104. call MudSystemDotSt_Mud_Forehead_X%Remove (ilocal)
  105. call St_Mud_Forehead_section%Remove (ilocal)
  106. call St_Density%Remove (ilocal)
  107. call MudSystemDotSt_RemainedVolume_in_LastSection%Remove (ilocal)
  108. call MudSystemDotSt_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 MudSystemDotOp_MudDischarged_Volume%Remove (ilocal)
  116. call MudSystemDotOp_Mud_Backhead_X%Remove (ilocal)
  117. call Op_Mud_Backhead_section%Remove (ilocal)
  118. call MudSystemDotOp_Mud_Forehead_X%Remove (ilocal)
  119. call Op_Mud_Forehead_section%Remove (ilocal)
  120. call MudSystemDotOp_Density%Remove (ilocal)
  121. call MudSystemDotOp_RemainedVolume_in_LastSection%Remove (ilocal)
  122. call MudSystemDotOp_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 MudSystemDotHz_MudDischarged_Volume%Remove (ilocal)
  130. call MudSystemDotHz_Mud_Backhead_X%Remove (ilocal)
  131. call Hz_Mud_Backhead_section%Remove (ilocal)
  132. call MudSystemDotHz_Mud_Forehead_X%Remove (ilocal)
  133. call Hz_Mud_Forehead_section%Remove (ilocal)
  134. call MudSystemDotHz_Density%Remove (ilocal)
  135. call MudSystemDotHz_RemainedVolume_in_LastSection%Remove (ilocal)
  136. call MudSystemDotHz_EmptyVolume_inBackheadLocation%Remove (ilocal)
  137. call Hz_MudOrKick%Remove (ilocal)
  138. end subroutine