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.
 
 
 
 
 
 

164 lines
4.0 KiB

  1. # 1 "/home/admin/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. # 11
  9. data%State%softwareInputs%ZeroStringSpeed = v
  10. # 15
  11. ! call data%State%softwareInputs%OnZeroStringSpeedChange%RunAll()
  12. end subroutine
  13. logical function Get_ZeroStringSpeed()
  14. implicit none
  15. if(abs(data%State%Drawworks%HookLinearVelocity_final)<0.2) then
  16. Get_ZeroStringSpeed = .TRUE.
  17. else
  18. Get_ZeroStringSpeed = .FALSE.
  19. endif
  20. !data%State%softwareInputs%ZeroStringSpeed
  21. !Get_ZeroStringSpeed = .true.
  22. end function
  23. subroutine Set_TdsStemJointHeight(v)
  24. implicit none
  25. real , intent(in) :: v
  26. # 35
  27. data%State%softwareInputs%TdsStemJointHeight = v
  28. # 39
  29. ! call data%State%softwareInputs%OnTdsStemJointHeightChange%RunAll()
  30. end subroutine
  31. real function Get_TdsStemJointHeight()
  32. implicit none
  33. Get_TdsStemJointHeight = data%State%softwareInputs%TdsStemJointHeight
  34. end function
  35. subroutine Set_StringPressure(v)
  36. implicit none
  37. real , intent(in) :: v
  38. # 54
  39. data%State%softwareInputs%StringPressure = v
  40. # 58
  41. ! call data%State%softwareInputs%OnStringPressureChange%RunAll()
  42. end subroutine
  43. real function Get_StringPressure()
  44. implicit none
  45. Get_StringPressure = data%State%softwareInputs%StringPressure
  46. end function
  47. subroutine Set_StandRack(v)
  48. implicit none
  49. integer , intent(in) :: v
  50. # 72
  51. data%State%softwareInputs%StandRack = v
  52. # 76
  53. ! call data%State%softwareInputs%OnStandRackChanged%RunAll()
  54. end subroutine
  55. integer function Get_StandRack()
  56. implicit none
  57. Get_StandRack = data%State%softwareInputs%StandRack
  58. end function
  59. subroutine Set_SlackOff(v)
  60. implicit none
  61. logical , intent(in) :: v
  62. # 90
  63. data%State%softwareInputs%SlackOff = v
  64. # 94
  65. ! call data%State%softwareInputs%OnSlackOffChange%RunAll()
  66. end subroutine
  67. logical function Get_SlackOff()
  68. implicit none
  69. Get_SlackOff = data%State%softwareInputs%SlackOff
  70. end function
  71. subroutine Set_SafetyValveHeight(v)
  72. implicit none
  73. real , intent(in) :: v
  74. # 108
  75. data%State%softwareInputs%SafetyValveHeight = v
  76. # 112
  77. ! call data%State%softwareInputs%OnSafetyValveHeightChange%RunAll()
  78. end subroutine
  79. real function Get_SafetyValveHeight()
  80. implicit none
  81. Get_SafetyValveHeight = data%State%softwareInputs%SafetyValveHeight
  82. !Get_SafetyValveHeight = 23
  83. end function
  84. subroutine Set_NearFloorConnection(v)
  85. implicit none
  86. real , intent(in) :: v
  87. # 128
  88. data%State%softwareInputs%NearFloorConnection = v
  89. # 132
  90. ! call data%State%softwareInputs%OnNearFloorConnectionChange%RunAll()
  91. end subroutine
  92. real function Get_NearFloorConnection()
  93. implicit none
  94. Get_NearFloorConnection = data%State%softwareInputs%NearFloorConnection
  95. !Get_NearFloorConnection = 4
  96. end function
  97. subroutine Set_IbopHeight(v)
  98. implicit none
  99. real , intent(in) :: v
  100. # 147
  101. data%State%softwareInputs%IbopHeight = v
  102. # 151
  103. ! call data%State%softwareInputs%OnIbopHeightChange%RunAll()
  104. end subroutine
  105. real function Get_IbopHeight()
  106. implicit none
  107. Get_IbopHeight = data%State%softwareInputs%IbopHeight
  108. !Get_IbopHeight = 23.0
  109. end function
  110. !//TODO: Investigate this hookheight! why two hook height?!
  111. subroutine Set_HookHeight(v)
  112. implicit none
  113. real , intent(in) :: v
  114. # 167
  115. data%State%softwareInputs%HookHeight = v
  116. # 171
  117. ! call data%State%softwareInputs%OnHookHeightChange%RunAll()
  118. end subroutine
  119. real function Get_HookHeight()
  120. implicit none
  121. ! Get_HookHeight = data%State%softwareInputs%HookHeight
  122. Get_HookHeight = data%State%Drawworks%Hook_Height_final
  123. end function
  124. end module SoftwareInputsModule