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.
 
 
 
 
 
 

251 lines
8.1 KiB

  1. module CBopControlPanel
  2. use CBopControlPanelVariables
  3. implicit none
  4. public
  5. contains
  6. ! Input routines
  7. subroutine SetAnnularRegulatorSetControl(v)
  8. !DEC$ ATTRIBUTES DLLEXPORT :: SetAnnularRegulatorSetControl
  9. !DEC$ ATTRIBUTES ALIAS: 'SetAnnularRegulatorSetControl' :: SetAnnularRegulatorSetControl
  10. implicit none
  11. real*8, intent(in) :: v
  12. AnnularRegulatorSetControl = v
  13. #ifdef deb
  14. print*, 'AnnularRegulatorSetControl=', AnnularRegulatorSetControl
  15. #endif
  16. end subroutine
  17. subroutine SetAirMasterValve(v)
  18. !DEC$ ATTRIBUTES DLLEXPORT :: SetAirMasterValve
  19. !DEC$ ATTRIBUTES ALIAS: 'SetAirMasterValve' :: SetAirMasterValve
  20. implicit none
  21. real*8, intent(in) :: v
  22. AirMasterValve = v
  23. #ifdef deb
  24. print*, 'AirMasterValve=', AirMasterValve
  25. #endif
  26. end subroutine
  27. subroutine SetByePassValve(v)
  28. !DEC$ ATTRIBUTES DLLEXPORT :: SetByePassValve
  29. !DEC$ ATTRIBUTES ALIAS: 'SetByePassValve' :: SetByePassValve
  30. implicit none
  31. real*8, intent(in) :: v
  32. ByePassValve = v
  33. #ifdef deb
  34. print*, 'ByePassValve=', ByePassValve
  35. #endif
  36. end subroutine
  37. subroutine SetAnnularValve(v)
  38. !DEC$ ATTRIBUTES DLLEXPORT :: SetAnnularValve
  39. !DEC$ ATTRIBUTES ALIAS: 'SetAnnularValve' :: SetAnnularValve
  40. implicit none
  41. real*8, intent(in) :: v
  42. AnnularValve = v
  43. #ifdef deb
  44. print*, 'AnnularValve=', AnnularValve
  45. #endif
  46. end subroutine
  47. subroutine SetUpperRamsValve(v)
  48. !DEC$ ATTRIBUTES DLLEXPORT :: SetUpperRamsValve
  49. !DEC$ ATTRIBUTES ALIAS: 'SetUpperRamsValve' :: SetUpperRamsValve
  50. implicit none
  51. real*8, intent(in) :: v
  52. UpperRamsValve = v
  53. #ifdef deb
  54. print*, 'UpperRamsValve=', UpperRamsValve
  55. #endif
  56. end subroutine
  57. subroutine SetMiddleRamsValve(v)
  58. !DEC$ ATTRIBUTES DLLEXPORT :: SetMiddleRamsValve
  59. !DEC$ ATTRIBUTES ALIAS: 'SetMiddleRamsValve' :: SetMiddleRamsValve
  60. implicit none
  61. real*8, intent(in) :: v
  62. MiddleRamsValve = v
  63. #ifdef deb
  64. print*, 'MiddleRamsValve=', MiddleRamsValve
  65. #endif
  66. end subroutine
  67. subroutine SetKillLineValve(v)
  68. !DEC$ ATTRIBUTES DLLEXPORT :: SetKillLineValve
  69. !DEC$ ATTRIBUTES ALIAS: 'SetKillLineValve' :: SetKillLineValve
  70. implicit none
  71. real*8, intent(in) :: v
  72. KillLineValve = v
  73. #ifdef deb
  74. print*, 'KillLineValve=', KillLineValve
  75. #endif
  76. end subroutine
  77. subroutine SetChokeLineValve(v)
  78. !DEC$ ATTRIBUTES DLLEXPORT :: SetChokeLineValve
  79. !DEC$ ATTRIBUTES ALIAS: 'SetChokeLineValve' :: SetChokeLineValve
  80. implicit none
  81. real*8, intent(in) :: v
  82. ChokeLineValve = v
  83. #ifdef deb
  84. print*, 'ChokeLineValve=', ChokeLineValve
  85. #endif
  86. end subroutine
  87. subroutine SetLowerRamsValve(v)
  88. !DEC$ ATTRIBUTES DLLEXPORT :: SetLowerRamsValve
  89. !DEC$ ATTRIBUTES ALIAS: 'SetLowerRamsValve' :: SetLowerRamsValve
  90. implicit none
  91. real*8, intent(in) :: v
  92. LowerRamsValve = v
  93. #ifdef deb
  94. print*, 'LowerRamsValve=', LowerRamsValve
  95. #endif
  96. end subroutine
  97. ! Output routines
  98. real(8) function GetManifoldPressureGauge()
  99. !DEC$ ATTRIBUTES DLLEXPORT :: GetManifoldPressureGauge
  100. !DEC$ ATTRIBUTES ALIAS: 'GetManifoldPressureGauge' :: GetManifoldPressureGauge
  101. implicit none
  102. GetManifoldPressureGauge = ManifoldPressureGauge
  103. end function
  104. real(8) function GetAirSupplyPressureGauge()
  105. !DEC$ ATTRIBUTES DLLEXPORT :: GetAirSupplyPressureGauge
  106. !DEC$ ATTRIBUTES ALIAS: 'GetAirSupplyPressureGauge' :: GetAirSupplyPressureGauge
  107. implicit none
  108. GetAirSupplyPressureGauge = AirSupplyPressureGauge
  109. end function
  110. real(8) function GetAccumulatorPressureGauge()
  111. !DEC$ ATTRIBUTES DLLEXPORT :: GetAccumulatorPressureGauge
  112. !DEC$ ATTRIBUTES ALIAS: 'GetAccumulatorPressureGauge' :: GetAccumulatorPressureGauge
  113. implicit none
  114. GetAccumulatorPressureGauge = AccumulatorPressureGauge
  115. !GetAccumulatorPressureGauge = 2000.0d0
  116. end function
  117. real(8) function GetAnnularPressureGauge()
  118. !DEC$ ATTRIBUTES DLLEXPORT :: GetAnnularPressureGauge
  119. !DEC$ ATTRIBUTES ALIAS: 'GetAnnularPressureGauge' :: GetAnnularPressureGauge
  120. implicit none
  121. GetAnnularPressureGauge = AnnularPressureGauge
  122. end function
  123. integer function GetAnnularOpenLED()
  124. !DEC$ ATTRIBUTES DLLEXPORT :: GetAnnularOpenLED
  125. !DEC$ ATTRIBUTES ALIAS: 'GetAnnularOpenLED' :: GetAnnularOpenLED
  126. implicit none
  127. GetAnnularOpenLED = AnnularOpenLED
  128. end function
  129. integer function GetAnnularCloseLED()
  130. !DEC$ ATTRIBUTES DLLEXPORT :: GetAnnularCloseLED
  131. !DEC$ ATTRIBUTES ALIAS: 'GetAnnularCloseLED' :: GetAnnularCloseLED
  132. implicit none
  133. GetAnnularCloseLED = AnnularCloseLED
  134. end function
  135. integer function GetUpperRamsOpenLED()
  136. !DEC$ ATTRIBUTES DLLEXPORT :: GetUpperRamsOpenLED
  137. !DEC$ ATTRIBUTES ALIAS: 'GetUpperRamsOpenLED' :: GetUpperRamsOpenLED
  138. implicit none
  139. GetUpperRamsOpenLED = UpperRamsOpenLED
  140. end function
  141. integer function GetUpperRamsCloseLED()
  142. !DEC$ ATTRIBUTES DLLEXPORT :: GetUpperRamsCloseLED
  143. !DEC$ ATTRIBUTES ALIAS: 'GetUpperRamsCloseLED' :: GetUpperRamsCloseLED
  144. implicit none
  145. GetUpperRamsCloseLED = UpperRamsCloseLED
  146. end function
  147. integer function GetMiddleRamsOpenLED()
  148. !DEC$ ATTRIBUTES DLLEXPORT :: GetMiddleRamsOpenLED
  149. !DEC$ ATTRIBUTES ALIAS: 'GetMiddleRamsOpenLED' :: GetMiddleRamsOpenLED
  150. implicit none
  151. GetMiddleRamsOpenLED = MiddleRamsOpenLED
  152. end function
  153. integer function GetMiddleRamsCloseLED()
  154. !DEC$ ATTRIBUTES DLLEXPORT :: GetMiddleRamsCloseLED
  155. !DEC$ ATTRIBUTES ALIAS: 'GetMiddleRamsCloseLED' :: GetMiddleRamsCloseLED
  156. implicit none
  157. GetMiddleRamsCloseLED = MiddleRamsCloseLED
  158. end function
  159. integer function GetKillLineOpenLED()
  160. !DEC$ ATTRIBUTES DLLEXPORT :: GetKillLineOpenLED
  161. !DEC$ ATTRIBUTES ALIAS: 'GetKillLineOpenLED' :: GetKillLineOpenLED
  162. implicit none
  163. GetKillLineOpenLED = KillLineOpenLED
  164. end function
  165. integer function GetKillLineCloseLED()
  166. !DEC$ ATTRIBUTES DLLEXPORT :: GetKillLineCloseLED
  167. !DEC$ ATTRIBUTES ALIAS: 'GetKillLineCloseLED' :: GetKillLineCloseLED
  168. implicit none
  169. GetKillLineCloseLED = KillLineCloseLED
  170. end function
  171. integer function GetChokeLineOpenLED()
  172. !DEC$ ATTRIBUTES DLLEXPORT :: GetChokeLineOpenLED
  173. !DEC$ ATTRIBUTES ALIAS: 'GetChokeLineOpenLED' :: GetChokeLineOpenLED
  174. implicit none
  175. GetChokeLineOpenLED = ChokeLineOpenLED
  176. end function
  177. integer function GetChokeLineCloseLED()
  178. !DEC$ ATTRIBUTES DLLEXPORT :: GetChokeLineCloseLED
  179. !DEC$ ATTRIBUTES ALIAS: 'GetChokeLineCloseLED' :: GetChokeLineCloseLED
  180. implicit none
  181. GetChokeLineCloseLED = ChokeLineCloseLED
  182. end function
  183. integer function GetLowerRamsOpenLED()
  184. !DEC$ ATTRIBUTES DLLEXPORT :: GetLowerRamsOpenLED
  185. !DEC$ ATTRIBUTES ALIAS: 'GetLowerRamsOpenLED' :: GetLowerRamsOpenLED
  186. implicit none
  187. GetLowerRamsOpenLED = LowerRamsOpenLED
  188. end function
  189. integer function GetLowerRamsCloseLED()
  190. !DEC$ ATTRIBUTES DLLEXPORT :: GetLowerRamsCloseLED
  191. !DEC$ ATTRIBUTES ALIAS: 'GetLowerRamsCloseLED' :: GetLowerRamsCloseLED
  192. implicit none
  193. GetLowerRamsCloseLED = LowerRamsCloseLED
  194. end function
  195. real(8) function GetAnnularStatus()
  196. !DEC$ ATTRIBUTES DLLEXPORT :: GetAnnularStatus
  197. !DEC$ ATTRIBUTES ALIAS: 'GetAnnularStatus' :: GetAnnularStatus
  198. implicit none
  199. GetAnnularStatus = AnnularStatus
  200. end function
  201. real(8) function GetUpperRamsStatus()
  202. !DEC$ ATTRIBUTES DLLEXPORT :: GetUpperRamsStatus
  203. !DEC$ ATTRIBUTES ALIAS: 'GetUpperRamsStatus' :: GetUpperRamsStatus
  204. implicit none
  205. GetUpperRamsStatus = UpperRamsStatus
  206. end function
  207. real(8) function GetMiddleRamsStatus()
  208. !DEC$ ATTRIBUTES DLLEXPORT :: GetMiddleRamsStatus
  209. !DEC$ ATTRIBUTES ALIAS: 'GetMiddleRamsStatus' :: GetMiddleRamsStatus
  210. implicit none
  211. GetMiddleRamsStatus = MiddleRamsStatus
  212. end function
  213. real(8) function GetLowerRamsStatus()
  214. !DEC$ ATTRIBUTES DLLEXPORT :: GetLowerRamsStatus
  215. !DEC$ ATTRIBUTES ALIAS: 'GetLowerRamsStatus' :: GetLowerRamsStatus
  216. implicit none
  217. GetLowerRamsStatus = LowerRamsStatus
  218. end function
  219. end module CBopControlPanel