Simulation Core
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

175 řádky
5.8 KiB

  1. # 1 "/mnt/c/Projects/VSIM/SimulationCore2/CSharp/OperationScenarios/SoftwareInputs.f90"
  2. module SoftwareInputsModule
  3. use SimulationVariables
  4. contains
  5. subroutine Set_ZeroStringSpeed(v)
  6. implicit none
  7. logical , intent(in) :: v
  8. #ifdef ExcludeExtraChanges
  9. if(data%State%softwareInputs%ZeroStringSpeed == v) return
  10. #endif
  11. data%State%softwareInputs%ZeroStringSpeed = v
  12. #ifdef deb
  13. print*, 'ZeroStringSpeed=', data%State%softwareInputs%ZeroStringSpeed
  14. #endif
  15. ! call data%State%softwareInputs%OnZeroStringSpeedChange%RunAll()
  16. end subroutine
  17. logical function Get_ZeroStringSpeed()
  18. implicit none
  19. Get_ZeroStringSpeed = data%State%softwareInputs%ZeroStringSpeed
  20. !Get_ZeroStringSpeed = .true.
  21. end function
  22. subroutine Set_TdsStemJointHeight(v)
  23. implicit none
  24. real , intent(in) :: v
  25. #ifdef ExcludeExtraChanges
  26. if(data%State%softwareInputs%TdsStemJointHeight == v) return
  27. #endif
  28. data%State%softwareInputs%TdsStemJointHeight = v
  29. #ifdef deb
  30. print*, 'TdsStemJointHeight=', data%State%softwareInputs%TdsStemJointHeight
  31. #endif
  32. ! call data%State%softwareInputs%OnTdsStemJointHeightChange%RunAll()
  33. end subroutine
  34. real function Get_TdsStemJointHeight()
  35. implicit none
  36. Get_TdsStemJointHeight = data%State%softwareInputs%TdsStemJointHeight
  37. end function
  38. subroutine Set_StringPressure(v)
  39. implicit none
  40. real , intent(in) :: v
  41. #ifdef ExcludeExtraChanges
  42. if(data%State%softwareInputs%StringPressure == v) return
  43. #endif
  44. data%State%softwareInputs%StringPressure = v
  45. #ifdef deb
  46. print*, 'StringPressure=', data%State%softwareInputs%StringPressure
  47. #endif
  48. ! call data%State%softwareInputs%OnStringPressureChange%RunAll()
  49. end subroutine
  50. real function Get_StringPressure()
  51. implicit none
  52. Get_StringPressure = data%State%softwareInputs%StringPressure
  53. end function
  54. subroutine Set_StandRack(v)
  55. implicit none
  56. integer , intent(in) :: v
  57. #ifdef ExcludeExtraChanges
  58. if(data%State%softwareInputs%StandRack == v) return
  59. #endif
  60. data%State%softwareInputs%StandRack = v
  61. #ifdef deb
  62. print*, 'StandRack=', data%State%softwareInputs%StandRack
  63. #endif
  64. ! call data%State%softwareInputs%OnStandRackChanged%RunAll()
  65. end subroutine
  66. integer function Get_StandRack()
  67. implicit none
  68. Get_StandRack = data%State%softwareInputs%StandRack
  69. end function
  70. subroutine Set_SlackOff(v)
  71. implicit none
  72. logical , intent(in) :: v
  73. #ifdef ExcludeExtraChanges
  74. if(data%State%softwareInputs%SlackOff == v) return
  75. #endif
  76. data%State%softwareInputs%SlackOff = v
  77. #ifdef deb
  78. print*, 'SlackOff=', data%State%softwareInputs%SlackOff
  79. #endif
  80. ! call data%State%softwareInputs%OnSlackOffChange%RunAll()
  81. end subroutine
  82. logical function Get_SlackOff()
  83. implicit none
  84. Get_SlackOff = data%State%softwareInputs%SlackOff
  85. end function
  86. subroutine Set_SafetyValveHeight(v)
  87. implicit none
  88. real , intent(in) :: v
  89. #ifdef ExcludeExtraChanges
  90. if(data%State%softwareInputs%SafetyValveHeight == v) return
  91. #endif
  92. data%State%softwareInputs%SafetyValveHeight = v
  93. #ifdef deb
  94. print*, 'SafetyValveHeight=', data%State%softwareInputs%SafetyValveHeight
  95. #endif
  96. ! call data%State%softwareInputs%OnSafetyValveHeightChange%RunAll()
  97. end subroutine
  98. real function Get_SafetyValveHeight()
  99. implicit none
  100. Get_SafetyValveHeight = data%State%softwareInputs%SafetyValveHeight
  101. !Get_SafetyValveHeight = 23
  102. end function
  103. subroutine Set_NearFloorConnection(v)
  104. implicit none
  105. real , intent(in) :: v
  106. #ifdef ExcludeExtraChanges
  107. if(data%State%softwareInputs%NearFloorConnection == v) return
  108. #endif
  109. data%State%softwareInputs%NearFloorConnection = v
  110. #ifdef deb
  111. print*, 'NearFloorConnection=', data%State%softwareInputs%NearFloorConnection
  112. #endif
  113. ! call data%State%softwareInputs%OnNearFloorConnectionChange%RunAll()
  114. end subroutine
  115. real function Get_NearFloorConnection()
  116. implicit none
  117. Get_NearFloorConnection = data%State%softwareInputs%NearFloorConnection
  118. !Get_NearFloorConnection = 4
  119. end function
  120. subroutine Set_IbopHeight(v)
  121. implicit none
  122. real , intent(in) :: v
  123. #ifdef ExcludeExtraChanges
  124. if(data%State%softwareInputs%IbopHeight == v) return
  125. #endif
  126. data%State%softwareInputs%IbopHeight = v
  127. #ifdef deb
  128. print*, 'IbopHeight=', data%State%softwareInputs%IbopHeight
  129. #endif
  130. ! call data%State%softwareInputs%OnIbopHeightChange%RunAll()
  131. end subroutine
  132. real function Get_IbopHeight()
  133. implicit none
  134. Get_IbopHeight = data%State%softwareInputs%IbopHeight
  135. !Get_IbopHeight = 23.0
  136. end function
  137. subroutine Set_HookHeight(v)
  138. implicit none
  139. real , intent(in) :: v
  140. #ifdef ExcludeExtraChanges
  141. if(data%State%softwareInputs%HookHeight == v) return
  142. #endif
  143. data%State%softwareInputs%HookHeight = v
  144. #ifdef deb
  145. print*, 'HookHeight=', data%State%softwareInputs%HookHeight
  146. #endif
  147. ! call data%State%softwareInputs%OnHookHeightChange%RunAll()
  148. end subroutine
  149. real function Get_HookHeight()
  150. implicit none
  151. Get_HookHeight = data%State%softwareInputs%HookHeight
  152. end function
  153. end module SoftwareInputsModule