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.
 
 
 
 
 
 

191 lines
10 KiB

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