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.

CDataDisplayConsole.f90 6.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. module CDataDisplayConsole
  2. ! use CDataDisplayConsole
  3. use SimulationVariables
  4. implicit none
  5. public
  6. contains
  7. subroutine Set_TotalDepth(v)
  8. use SimulationVariables !@!!, only: data%EquipmentControl%DrillingWatch%Depth
  9. ! use CSimulationVariables, only: SetDistanceDrilled
  10. implicit none
  11. real(8), intent(in) :: v
  12. data%EquipmentControl%DataDisplayConsole%TotalWellDepth = v
  13. data%EquipmentControl%DrillingWatch%Depth = v
  14. ! call SetDistanceDrilled(v)
  15. end subroutine
  16. subroutine Set_BitPosition(v)
  17. use SimulationVariables !@!!, only: data%EquipmentControl%DrillingWatch%BitPosition
  18. implicit none
  19. real(8), intent(in) :: v
  20. data%EquipmentControl%DataDisplayConsole%BitDepth = v
  21. data%EquipmentControl%DrillingWatch%BitPosition = v
  22. end subroutine
  23. subroutine Set_RotaryTorque(v)
  24. use SimulationVariables !@!!, only: data%EquipmentControl%DrillingWatch%Torque
  25. implicit none
  26. real(8), intent(in) :: v
  27. data%EquipmentControl%DataDisplayConsole%RotaryTorqueGauge = v
  28. data%EquipmentControl%DrillingWatch%Torque = v
  29. data%EquipmentControl%DataDisplayConsole%RTTorque = v
  30. end subroutine
  31. subroutine Set_MudWeightIn(v)
  32. use SimulationVariables !@!, only: MudWeightInDw => data%EquipmentControl%DataDisplayConsole%MudWeightIn
  33. implicit none
  34. real(8), intent(in) :: v
  35. data%EquipmentControl%DataDisplayConsole%MudWeightIn = v
  36. data%EquipmentControl%DrillingWatch%MudWeightIn = v
  37. end subroutine
  38. subroutine Set_MudWeightOut(v)
  39. use SimulationVariables !@!, only: MudWeightOutDw => data%EquipmentControl%DataDisplayConsole%MudWeightOut
  40. implicit none
  41. real(8), intent(in) :: v
  42. data%EquipmentControl%DataDisplayConsole%MudWeightOut = v
  43. data%EquipmentControl%DrillingWatch%MudWeightOut = v
  44. end subroutine
  45. subroutine Set_TripTankVolume(v)
  46. use SimulationVariables !@!, only: data%EquipmentControl%DrillingWatch%TripTankVolume
  47. implicit none
  48. real(8), intent(in) :: v
  49. data%EquipmentControl%DrillingWatch%TripTankVolume = v
  50. end subroutine
  51. subroutine Set_FillVolume(v)
  52. use SimulationVariables !@!, only: data%EquipmentControl%DrillingWatch%FillVolume
  53. implicit none
  54. real(8), intent(in) :: v
  55. data%EquipmentControl%DrillingWatch%FillVolume = v
  56. end subroutine
  57. subroutine Set_HookLoad(v)
  58. use SimulationVariables !@!, only: HookLoadDw => data%EquipmentControl%DataDisplayConsole%HookLoad
  59. implicit none
  60. real(8), intent(in) :: v
  61. data%EquipmentControl%DataDisplayConsole%HookLoadPointer = v
  62. data%EquipmentControl%DrillingWatch%HookLoad = v * 1000
  63. data%EquipmentControl%DataDisplayConsole%HookLoad = v
  64. end subroutine
  65. subroutine Set_WeightOnBit(v)
  66. use SimulationVariables !@!, only: data%EquipmentControl%DrillingWatch%WeightOnBit
  67. implicit none
  68. real(8), intent(in) :: v
  69. data%EquipmentControl%DataDisplayConsole%WOBPointer = v
  70. data%EquipmentControl%DrillingWatch%WeightOnBit = v
  71. data%EquipmentControl%DataDisplayConsole%WOP = v
  72. end subroutine
  73. subroutine Set_ROP(v)
  74. use SimulationVariables !@!, only: ROPDw => data%EquipmentControl%DataDisplayConsole%ROP
  75. implicit none
  76. real(8), intent(in) :: v
  77. data%EquipmentControl%DataDisplayConsole%ROP = v
  78. data%EquipmentControl%DrillingWatch%ROP = v
  79. end subroutine
  80. subroutine Set_CasingPressure(v)
  81. use SimulationVariables !@!, only: CasingPressureDw => CasingPressure
  82. use CChokeControlPanelVariables
  83. use SimulationVariables!, only: CasingPressureChoke => CasingPressure
  84. implicit none
  85. real(8), intent(in) :: v
  86. data%EquipmentControl%DataDisplayConsole%CasingPressureGauge = v
  87. data%EquipmentControl%DrillingWatch%CasingPressure = v
  88. data%EquipmentControl%ChokeControlPanel%CasingPressure = v
  89. data%EquipmentControl%DataDisplayConsole%CasingPressure = v
  90. end subroutine
  91. subroutine Set_StandPipePressure(v)
  92. use SimulationVariables !@!, only: data%EquipmentControl%DrillingWatch%PumpPressure
  93. use CChokeControlPanelVariables
  94. use SimulationVariables!, only: StandPipePressureChoke => data%EquipmentControl%DataDisplayConsole%StandPipePressure
  95. implicit none
  96. real(8), intent(in) :: v
  97. data%EquipmentControl%DataDisplayConsole%StandPipePressureGauge = v
  98. data%EquipmentControl%DrillingWatch%PumpPressure = v
  99. data%EquipmentControl%ChokeControlPanel%StandPipePressure = v
  100. data%EquipmentControl%DataDisplayConsole%StandPipePressure = v
  101. end subroutine
  102. subroutine Set_RotaryRPMGauge(v)
  103. use SimulationVariables !@!, only: data%EquipmentControl%DrillingWatch%RPM
  104. implicit none
  105. real(8), intent(in) :: v
  106. data%EquipmentControl%DataDisplayConsole%RotaryRPMGauge = v
  107. data%EquipmentControl%DrillingWatch%RPM = v
  108. data%EquipmentControl%DataDisplayConsole%RTRPM = v
  109. ! call data%EquipmentControl%DataDisplayConsole%OnRotaryRpmChange%RunAll(v)
  110. end subroutine
  111. subroutine Set_MP1SPMGauge(v)
  112. implicit none
  113. real(8), intent(in) :: v
  114. data%EquipmentControl%DataDisplayConsole%MP1SPMGauge = v
  115. data%EquipmentControl%DataDisplayConsole%MP1SPM = v
  116. !@data%State%unitySignals%(PumpsSpmChanges)) call PumpsSpmChanges(data%EquipmentControl%DataDisplayConsole%MP1SPMGauge, data%EquipmentControl%DataDisplayConsole%MP2SPMGauge)
  117. #ifdef deb
  118. print*, 'MP1SPMGauge=', data%EquipmentControl%DataDisplayConsole%MP1SPMGauge
  119. #endif
  120. end subroutine
  121. subroutine Set_MP2SPMGauge(v)
  122. implicit none
  123. real(8), intent(in) :: v
  124. data%EquipmentControl%DataDisplayConsole%MP2SPMGauge = v
  125. data%EquipmentControl%DataDisplayConsole%MP2SPM = v
  126. !@data%State%unitySignals%(PumpsSpmChanges)) call PumpsSpmChanges(data%EquipmentControl%DataDisplayConsole%MP1SPMGauge, data%EquipmentControl%DataDisplayConsole%MP2SPMGauge)
  127. #ifdef deb
  128. print*, 'MP2SPMGauge=', data%EquipmentControl%DataDisplayConsole%MP2SPMGauge
  129. #endif
  130. end subroutine
  131. end module CDataDisplayConsole