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.
 
 
 
 
 
 

117 lines
2.9 KiB

  1. module CBopControlPanelVariables
  2. implicit none
  3. public
  4. ! Input vars
  5. real(8) :: AnnularRegulatorSetControl
  6. real(8) :: AirMasterValve
  7. real(8) :: ByePassValve
  8. real(8) :: AnnularValve
  9. real(8) :: UpperRamsValve
  10. real(8) :: MiddleRamsValve
  11. real(8) :: KillLineValve
  12. real(8) :: ChokeLineValve
  13. real(8) :: LowerRamsValve
  14. ! Output vars
  15. real(8) :: ManifoldPressureGauge
  16. real(8) :: AirSupplyPressureGauge
  17. real(8) :: AccumulatorPressureGauge
  18. real(8) :: AnnularPressureGauge
  19. integer :: AnnularOpenLED
  20. integer :: AnnularCloseLED
  21. integer :: UpperRamsOpenLED
  22. integer :: UpperRamsCloseLED
  23. integer :: MiddleRamsOpenLED
  24. integer :: MiddleRamsCloseLED
  25. integer :: KillLineOpenLED
  26. integer :: KillLineCloseLED
  27. integer :: ChokeLineOpenLED
  28. integer :: ChokeLineCloseLED
  29. integer :: LowerRamsOpenLED
  30. integer :: LowerRamsCloseLED
  31. real(8) :: AnnularStatus
  32. real(8) :: UpperRamsStatus
  33. real(8) :: MiddleRamsStatus
  34. real(8) :: LowerRamsStatus
  35. contains
  36. subroutine OpenAnnular()
  37. use CManifolds
  38. implicit none
  39. call ChangeValve(52, .true.)
  40. end subroutine
  41. subroutine CloseAnnular()
  42. use CManifolds
  43. implicit none
  44. call ChangeValve(52, .false.)
  45. end subroutine
  46. subroutine OpenUpperRams()
  47. use CManifolds
  48. implicit none
  49. call ChangeValve(51, .true.)
  50. end subroutine
  51. subroutine CloseUpperRams()
  52. use CManifolds
  53. implicit none
  54. call ChangeValve(51, .false.)
  55. end subroutine
  56. subroutine OpenMiddleRams()
  57. use CManifolds
  58. implicit none
  59. call ToggleMiddleRams(.true.)
  60. end subroutine
  61. subroutine CloseMiddleRams()
  62. use CManifolds
  63. implicit none
  64. call ToggleMiddleRams(.false.)
  65. end subroutine
  66. subroutine OpenKillLine()
  67. use CManifolds
  68. implicit none
  69. call ChangeValve(46, .true.)
  70. end subroutine
  71. subroutine CloseKillLine()
  72. use CManifolds
  73. implicit none
  74. call ChangeValve(46, .false.)
  75. end subroutine
  76. subroutine OpenChokeLine()
  77. use CManifolds
  78. implicit none
  79. call ChangeValve(47, .true.)
  80. !WRITE (*,*) ' valve 47 true '
  81. end subroutine
  82. subroutine CloseChokeLine()
  83. use CManifolds
  84. implicit none
  85. call ChangeValve(47, .false.)
  86. !WRITE (*,*) ' valve 47 false '
  87. end subroutine
  88. subroutine OpenLowerRams()
  89. use CManifolds
  90. implicit none
  91. call ChangeValve(49, .true.)
  92. !WRITE (*,*) ' valve 49 true '
  93. end subroutine
  94. subroutine CloseLowerRams()
  95. use CManifolds
  96. implicit none
  97. call ChangeValve(49, .false.)
  98. !WRITE (*,*) ' valve 49 false '
  99. end subroutine
  100. end module CBopControlPanelVariables