Simulation Core
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

SoftwareInputs.f90 5.9 KiB

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