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.
 
 
 
 
 
 

237 rivejä
7.7 KiB

  1. module CMudProperties
  2. use CMudPropertiesVariables
  3. use CLog4
  4. implicit none
  5. public
  6. contains
  7. subroutine SetActiveMudType(v)
  8. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveMudType
  9. !DEC$ ATTRIBUTES ALIAS: 'SetActiveMudType' :: SetActiveMudType
  10. implicit none
  11. integer, intent(in) :: v
  12. ActiveMudType = v
  13. end subroutine
  14. subroutine SetActiveRheologyModel(v)
  15. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveRheologyModel
  16. !DEC$ ATTRIBUTES ALIAS: 'SetActiveRheologyModel' :: SetActiveRheologyModel
  17. implicit none
  18. integer, intent(in) :: v
  19. ActiveRheologyModel = v
  20. #ifdef deb
  21. call Log_4( '=====ActiveRheologyModel=', ActiveRheologyModel)
  22. #endif
  23. end subroutine
  24. subroutine SetActiveMudVolume(v)
  25. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveMudVolume
  26. !DEC$ ATTRIBUTES ALIAS: 'SetActiveMudVolume' :: SetActiveMudVolume
  27. implicit none
  28. real*8, intent(in) :: v
  29. ActiveMudVolume = v
  30. !call Log_5('ActiveDensity=', ActiveDensity)
  31. #ifdef deb
  32. print*, 'ActiveMudVolume=', ActiveMudVolume
  33. #endif
  34. ActiveMudVolumeGal = v * 42.0
  35. call OnActiveMudVolumeChange%RunAll(v * 42.0d0)
  36. end subroutine
  37. subroutine SetActiveDensity(v)
  38. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveDensity
  39. !DEC$ ATTRIBUTES ALIAS: 'SetActiveDensity' :: SetActiveDensity
  40. implicit none
  41. real*8, intent(in) :: v
  42. ActiveDensity = v
  43. !call Log_5('ActiveDensity=', ActiveDensity)
  44. #ifdef deb
  45. print*, 'ActiveDensity=', ActiveDensity
  46. #endif
  47. call OnActiveDensityChange%RunAll(v)
  48. end subroutine
  49. subroutine SetActiveThetaThreeHundred(v)
  50. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveThetaThreeHundred
  51. !DEC$ ATTRIBUTES ALIAS: 'SetActiveThetaThreeHundred' :: SetActiveThetaThreeHundred
  52. implicit none
  53. real*8, intent(in) :: v
  54. ActiveThetaThreeHundred = v
  55. end subroutine
  56. subroutine SetActiveThetaSixHundred(v)
  57. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveThetaSixHundred
  58. !DEC$ ATTRIBUTES ALIAS: 'SetActiveThetaSixHundred' :: SetActiveThetaSixHundred
  59. implicit none
  60. real*8, intent(in) :: v
  61. ActiveThetaSixHundred = v
  62. end subroutine
  63. subroutine SetReserveMudType(v)
  64. !DEC$ ATTRIBUTES DLLEXPORT :: SetReserveMudType
  65. !DEC$ ATTRIBUTES ALIAS: 'SetReserveMudType' :: SetReserveMudType
  66. implicit none
  67. integer, intent(in) :: v
  68. ReserveMudType = v
  69. end subroutine
  70. subroutine SetReserveMudVolume(v)
  71. !DEC$ ATTRIBUTES DLLEXPORT :: SetReserveMudVolume
  72. !DEC$ ATTRIBUTES ALIAS: 'SetReserveMudVolume' :: SetReserveMudVolume
  73. implicit none
  74. real*8, intent(in) :: v
  75. ReserveMudVolume = v
  76. !call Log_5('ReserveMudVolume=', ReserveMudVolume)
  77. #ifdef deb
  78. print*, 'ReserveMudVolume=', ReserveMudVolume
  79. #endif
  80. ReserveMudVolumeGal = v * 42.0
  81. call OnReserveMudVolumeChange%RunAll(v * 42.0d0)
  82. end subroutine
  83. subroutine SetReserveDensity(v)
  84. !DEC$ ATTRIBUTES DLLEXPORT :: SetReserveDensity
  85. !DEC$ ATTRIBUTES ALIAS: 'SetReserveDensity' :: SetReserveDensity
  86. implicit none
  87. real*8, intent(in) :: v
  88. ReserveDensity = v
  89. !call Log_5('ReserveDensity=', ReserveDensity)
  90. #ifdef deb
  91. print*, 'ReserveDensity=', ReserveDensity
  92. #endif
  93. call OnReserveDensityChange%RunAll(v)
  94. end subroutine
  95. subroutine SetReserveThetaThreeHundred(v)
  96. !DEC$ ATTRIBUTES DLLEXPORT :: SetReserveThetaThreeHundred
  97. !DEC$ ATTRIBUTES ALIAS: 'SetReserveThetaThreeHundred' :: SetReserveThetaThreeHundred
  98. implicit none
  99. real*8, intent(in) :: v
  100. ReserveThetaThreeHundred = v
  101. end subroutine
  102. subroutine SetReserveThetaSixHundred(v)
  103. !DEC$ ATTRIBUTES DLLEXPORT :: SetReserveThetaSixHundred
  104. !DEC$ ATTRIBUTES ALIAS: 'SetReserveThetaSixHundred' :: SetReserveThetaSixHundred
  105. implicit none
  106. real*8, intent(in) :: v
  107. ReserveThetaSixHundred = v
  108. end subroutine
  109. subroutine SetActiveTotalTankCapacity(v)
  110. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveTotalTankCapacity
  111. !DEC$ ATTRIBUTES ALIAS: 'SetActiveTotalTankCapacity' :: SetActiveTotalTankCapacity
  112. implicit none
  113. real*8, intent(in) :: v
  114. ActiveTotalTankCapacity = v
  115. ActiveTotalTankCapacityGal = v * 42.0
  116. #ifdef deb
  117. print*, 'ActiveTotalTankCapacity=', ActiveTotalTankCapacity
  118. #endif
  119. end subroutine
  120. subroutine SetActiveSettledContents(v)
  121. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveSettledContents
  122. !DEC$ ATTRIBUTES ALIAS: 'SetActiveSettledContents' :: SetActiveSettledContents
  123. implicit none
  124. real*8, intent(in) :: v
  125. ActiveSettledContents = v
  126. ActiveSettledContentsGal = v * 42.0
  127. #ifdef deb
  128. print*, 'ActiveSettledContents=', ActiveSettledContents
  129. #endif
  130. end subroutine
  131. subroutine SetActiveTotalContents(v)
  132. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveTotalContents
  133. !DEC$ ATTRIBUTES ALIAS: 'SetActiveTotalContents' :: SetActiveTotalContents
  134. implicit none
  135. real*8, intent(in) :: v
  136. ActiveTotalContents = v
  137. ActiveTotalContentsGal = v * 42.0
  138. #ifdef deb
  139. print*, 'ActiveTotalContents=', ActiveTotalContents
  140. #endif
  141. end subroutine
  142. subroutine SetActivePlasticViscosity(v)
  143. !DEC$ ATTRIBUTES DLLEXPORT :: SetActivePlasticViscosity
  144. !DEC$ ATTRIBUTES ALIAS: 'SetActivePlasticViscosity' :: SetActivePlasticViscosity
  145. implicit none
  146. real*8, intent(in) :: v
  147. ActivePlasticViscosity = v
  148. #ifdef deb
  149. print*, 'ActivePlasticViscosity=', ActivePlasticViscosity
  150. #endif
  151. end subroutine
  152. subroutine SetActiveYieldPoint(v)
  153. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveYieldPoint
  154. !DEC$ ATTRIBUTES ALIAS: 'SetActiveYieldPoint' :: SetActiveYieldPoint
  155. implicit none
  156. real*8, intent(in) :: v
  157. ActiveYieldPoint = v
  158. #ifdef deb
  159. print*, 'ActiveYieldPoint=', ActiveYieldPoint
  160. #endif
  161. end subroutine
  162. subroutine SetActiveAutoDensity(v)
  163. !DEC$ ATTRIBUTES DLLEXPORT :: SetActiveAutoDensity
  164. !DEC$ ATTRIBUTES ALIAS: 'SetActiveAutoDensity' :: SetActiveAutoDensity
  165. implicit none
  166. logical, intent(in) :: v
  167. ActiveAutoDensity = v
  168. #ifdef deb
  169. print*, 'ActiveAutoDensity=', ActiveAutoDensity
  170. #endif
  171. end subroutine
  172. subroutine SetReservePlasticViscosity(v)
  173. !DEC$ ATTRIBUTES DLLEXPORT :: SetReservePlasticViscosity
  174. !DEC$ ATTRIBUTES ALIAS: 'SetReservePlasticViscosity' :: SetReservePlasticViscosity
  175. implicit none
  176. real*8, intent(in) :: v
  177. ReservePlasticViscosity = v
  178. #ifdef deb
  179. print*, 'ReservePlasticViscosity=', ReservePlasticViscosity
  180. #endif
  181. end subroutine
  182. subroutine SetReserveYieldPoint(v)
  183. !DEC$ ATTRIBUTES DLLEXPORT :: SetReserveYieldPoint
  184. !DEC$ ATTRIBUTES ALIAS: 'SetReserveYieldPoint' :: SetReserveYieldPoint
  185. implicit none
  186. real*8, intent(in) :: v
  187. ReserveYieldPoint = v
  188. #ifdef deb
  189. print*, 'ReserveYieldPoint=', ReserveYieldPoint
  190. #endif
  191. end subroutine
  192. subroutine SetInitialTripTankMudVolume(v)
  193. !DEC$ ATTRIBUTES DLLEXPORT :: SetInitialTripTankMudVolume
  194. !DEC$ ATTRIBUTES ALIAS: 'SetInitialTripTankMudVolume' :: SetInitialTripTankMudVolume
  195. implicit none
  196. real*8, intent(in) :: v
  197. InitialTripTankMudVolume = v
  198. InitialTripTankMudVolumeGal = v * 42.0
  199. #ifdef deb
  200. print*, 'InitialTripTankMudVolume=', InitialTripTankMudVolume
  201. #endif
  202. end subroutine
  203. subroutine SetPedalFlowMeter(v)
  204. !DEC$ ATTRIBUTES DLLEXPORT :: SetPedalFlowMeter
  205. !DEC$ ATTRIBUTES ALIAS: 'SetPedalFlowMeter' :: SetPedalFlowMeter
  206. implicit none
  207. real*8, intent(in) :: v
  208. PedalFlowMeter = v
  209. #ifdef deb
  210. print*, 'PedalFlowMeter=', PedalFlowMeter
  211. #endif
  212. end subroutine
  213. end module CMudProperties