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ů.
 
 
 
 
 
 

1593 řádky
84 KiB

  1. {
  2. "cells": [
  3. {
  4. <<<<<<< HEAD
  5. "attachments": {},
  6. "cell_type": "markdown",
  7. "metadata": {},
  8. =======
  9. "cell_type": "code",
  10. "execution_count": 10,
  11. "metadata": {},
  12. "outputs": [
  13. {
  14. "data": {
  15. "text/plain": [
  16. "[' real(8) :: AnnularRegulatorSetControl\\n',\n",
  17. " ' real(8) :: AirMasterValve\\n',\n",
  18. " ' real(8) :: ByePassValve\\n',\n",
  19. " ' real(8) :: AnnularValve\\n',\n",
  20. " ' real(8) :: UpperRamsValve\\n',\n",
  21. " ' real(8) :: MiddleRamsValve\\n',\n",
  22. " ' real(8) :: KillLineValve\\n',\n",
  23. " ' real(8) :: ChokeLineValve\\n',\n",
  24. " ' real(8) :: LowerRamsValve\\n',\n",
  25. " ' real(8) :: ManifoldPressureGauge\\n',\n",
  26. " ' real(8) :: AirSupplyPressureGauge\\n',\n",
  27. " ' real(8) :: AccumulatorPressureGauge\\n',\n",
  28. " ' real(8) :: AnnularPressureGauge\\n',\n",
  29. " ' integer :: AnnularOpenLED\\n',\n",
  30. " ' integer :: AnnularCloseLED\\n',\n",
  31. " ' integer :: UpperRamsOpenLED\\n',\n",
  32. " ' integer :: UpperRamsCloseLED\\n',\n",
  33. " ' integer :: MiddleRamsOpenLED\\n',\n",
  34. " ' integer :: MiddleRamsCloseLED\\n',\n",
  35. " ' integer :: KillLineOpenLED\\n',\n",
  36. " ' integer :: KillLineCloseLED\\n',\n",
  37. " ' integer :: ChokeLineOpenLED\\n',\n",
  38. " ' integer :: ChokeLineCloseLED\\n',\n",
  39. " ' integer :: LowerRamsOpenLED\\n',\n",
  40. " ' integer :: LowerRamsCloseLED\\n',\n",
  41. " ' real(8) :: AnnularStatus\\n',\n",
  42. " ' real(8) :: UpperRamsStatus\\n',\n",
  43. " ' real(8) :: MiddleRamsStatus\\n',\n",
  44. " ' real(8) :: LowerRamsStatus']"
  45. ]
  46. },
  47. "execution_count": 10,
  48. "metadata": {},
  49. "output_type": "execute_result"
  50. }
  51. ],
  52. >>>>>>> 12c8e5ea51ec0ab746d971224588f794381f80d2
  53. "source": [
  54. "# Make makefile"
  55. ]
  56. },
  57. {
  58. "cell_type": "code",
  59. <<<<<<< HEAD
  60. "execution_count": 72,
  61. =======
  62. "execution_count": 5,
  63. >>>>>>> 12c8e5ea51ec0ab746d971224588f794381f80d2
  64. "metadata": {},
  65. "outputs": [
  66. {
  67. "name": "stdout",
  68. "output_type": "stream",
  69. "text": [
  70. <<<<<<< HEAD
  71. "\tCSharp/OperationScenarios/Common/COperationScenariosVariables.f90 /\n",
  72. "\tTorqueDrag/TD_Modules/TD_WellGeometry.f90 /\n",
  73. "\tTorqueDrag/TD_Modules/TD_WellElements.f90 /\n",
  74. "\tTorqueDrag/TD_Modules/TD_StringConnectionData.f90 /\n",
  75. "\tTorqueDrag/TD_Modules/GeoElements_FluidModule.f90 /\n",
  76. "\tRop/sROP_Variables.f90 /\n",
  77. "\tRop/sROP_Other_Variables.f90 /\n",
  78. "\tFluidFlow/Flow_Startup_VARIABLES.f90 /\n",
  79. "\tCSharp/DownHole/CDownHoleTypes.f90 /\n",
  80. "\tEquipments/Drawworks/Drawworks_VARIABLES.f90 /\n",
  81. "\tEquipments/ChokeControl/CHOKE_VARIABLES.f90 /\n",
  82. "\tEquipments/TopDrive/TopDrive_VARIABLES.f90 /\n",
  83. "\tEquipments/RotaryTable/RTable_VARIABLES.f90 /\n",
  84. "\tEquipments/Pumps/Pumps_VARIABLES.f90 /\n",
  85. "\tCSharp/Warnings/CWarningsVariables.f90 /\n",
  86. "\tCSharp/StudentStation/CStudentStationVariables.f90 /\n",
  87. "\tCSharp/OperationScenarios/SoftwareInputsVariables.f90 /\n",
  88. "\tCSharp/OperationScenarios/UnitySignals/UnitySignalsVariables.f90 /\n",
  89. "\tCSharp/OperationScenarios/Permissions/PermissionsVariables.f90 /\n",
  90. "\tCSharp/OperationScenarios/Notifications/NotificationVariables.f90 /\n",
  91. "\tCSharp/Equipments/Tanks/CTanksVariables.f90 /\n",
  92. "\tCSharp/Equipments/DrillWatch/CDrillWatchVariables.f90 /\n",
  93. "\tCSharp/Equipments/ControlPanels/CTopDrivePanelVariables.f90 /\n",
  94. "\tCSharp/Equipments/ControlPanels/CStandPipeManifoldVariables.f90 /\n",
  95. "\tCSharp/Equipments/ControlPanels/CHookVariables.f90 /\n",
  96. "\tCSharp/Equipments/ControlPanels/CDrillingConsoleVariables.f90 /\n",
  97. "\tCSharp/Equipments/ControlPanels/CChokeManifoldVariables.f90 /\n",
  98. "\tCSharp/Equipments/ControlPanels/CChokeControlPanelVariables.f90 /\n",
  99. "\tCSharp/Equipments/ControlPanels/CBopControlPanelVariables.f90 /\n",
  100. "\tCSharp/BasicInputs/WellProfile/CWellSurveyDataVariables.f90 /\n",
  101. "\tCSharp/BasicInputs/WellProfile/CPathGenerationVariables.f90 /\n",
  102. "\tCSharp/BasicInputs/WellProfile/CCasingLinerChokeVariables.f90 /\n",
  103. "\tCSharp/BasicInputs/RigSpecifications/CRigSizeVariables.f90 /\n",
  104. "\tCSharp/Common/CIActionReference.f90 /\n",
  105. "\tCSharp/BasicInputs/RigSpecifications/CPowerVariables.f90 /\n",
  106. "\tCSharp/BasicInputs/RigSpecifications/CHoistingVariables.f90 /\n",
  107. "\tCSharp/BasicInputs/RigSpecifications/CBopStackVariables.f90 /\n",
  108. "\tCSharp/BasicInputs/RigSpecifications/CAccumulatorVariables.f90 /\n",
  109. "\tCSharp/BasicInputs/Geology/CShoeVariables.f90 /\n",
  110. "\tCSharp/BasicInputs/Geology/CReservoirVariables.f90 /\n",
  111. "\tCSharp/BasicInputs/Geology/CFormationVariables.f90 /\n",
  112. "\tCSharp/BasicInputs/Bha/CStringConfigurationVariables.f90 /\n",
  113. "\tSimulation/Constants.f90 /\n",
  114. "\tCSharp/Equipments/MudPathFinding/CArrangement.f90 /\n",
  115. "\tCSharp/OperationScenarios/Unity/CUnityInputs.f90 /\n",
  116. "\tCSharp/Common/CCommonVariables.f90 /\n",
  117. "\tCommon/DynamicIntegerArray.f90 /\n",
  118. "\tRop/RopMain.f90 /\n",
  119. "\tCSharp/Equipments/ControlPanels/CEquipmentsConstants.f90 /\n",
  120. "\tCommon/DynamicRealArray.f90 /\n",
  121. "\tCSharp/Common/CTimerLegacy.f90 /\n",
  122. "\tCommon/DynamicDoubleArray.f90 /\n",
  123. "\tCSharp/Equipments/MudPathFinding/CPathChangeEvents.f90 /\n",
  124. "\tCommon/DynamicLogicalArray.f90 /\n",
  125. "\tCSharp/Common/CScaleRange.f90 /\n",
  126. "\tCSharp/Common/CTimer.f90 /\n",
  127. "\tCSharp/Common/CQuery.f90 /\n",
  128. "\tFluidFlow/FluidFlowMain.f90 /\n",
  129. "\tTorqueDrag/TD_Modules/TD_GeneralData.f90 /\n",
  130. "\tCSharp/BasicInputs/WellProfile/CWellSurveyData.f90 /\n",
  131. "\tCSharp/Equipments/ControlPanels/CDataDisplayConsoleVariables.f90 /\n",
  132. "\tCSharp/ErrorLog/CLog4.f90 /\n",
  133. "\tCSharp/BasicInputs/RigSpecifications/CPumpsVariables.f90 /\n",
  134. "\tCSharp/ErrorLog/CLog1.f90 /\n",
  135. "\tCSharp/BasicInputs/CMudPropertiesVariables.f90 /\n",
  136. "\tCSharp/ErrorLog/CLog5.f90 /\n",
  137. "\tCSharp/ErrorLog/CError.f90 /\n",
  138. "\tCSharp/ErrorLog/CLog2.f90 /\n",
  139. "\tCSharp/ErrorLog/CLog3.f90 /\n",
  140. "\tSimulation/CSounds.f90 /\n",
  141. "\tCSharp/Common/CCommon.f90 /\n",
  142. "\tFluidFlow/Pressure_Display_VARIABLES.f90 /\n",
  143. "\tEquipments/BopStack/VARIABLES.f90 /\n",
  144. "\tFluidFlow/kick/Kick_VARIABLES.f90 /\n",
  145. "\tCSharp/OperationScenarios/Unity/CUnityOutputs.f90 /\n",
  146. "\tCSharp/DownHole/CDownHoleVariables.f90 /\n",
  147. "\tGeo/GeoMain.f90 /\n",
  148. "\tCSharp/Equipments/MudPathFinding/CPath.f90 /\n",
  149. "\tCSharp/Problems/CProblemDifinition.f90 /\n",
  150. "\tFluidFlow/Pressure_Distribution_VARIABLES.f90 /\n",
  151. "\tEquipments/MudSystem/MudSystem_Variables.f90 /\n",
  152. "\tTorqueDrag/TD_Modules/TD_DrillStem.f90 /\n",
  153. "\tCSharp/Equipments/MudPathFinding/CStack.f90 /\n",
  154. "\tCSharp/Problems/CDrillStemProblemsVariables.f90 /\n",
  155. "\tCSharp/Problems/COtherProblemsVariables.f90 /\n",
  156. "\tCSharp/Problems/CLostProblemsVariables.f90 /\n",
  157. "\tCSharp/Problems/CGaugesProblemsVariables.f90 /\n",
  158. "\tCSharp/Problems/CBitProblemsVariables.f90 /\n",
  159. "\tCSharp/Problems/CKickProblemsVariables.f90 /\n",
  160. "\tCSharp/Problems/CHoistingProblemsVariables.f90 /\n",
  161. "\tCSharp/Problems/CChokeProblemsVariables.f90 /\n",
  162. "\tCSharp/Problems/CPumpProblemsVariables.f90 /\n",
  163. "\tCSharp/Problems/CRotaryProblemsVariables.f90 /\n",
  164. "\tCSharp/Problems/CMudTreatmentProblemsVariables.f90 /\n",
  165. "\tCSharp/Problems/CBopProblemsVariables.f90 /\n",
  166. "\tSimulation/SimulationVariables.f90 /\n",
  167. "\tCSharp/Problems/CMudTreatmentProblems.f90 /\n",
  168. "\tCSharp/Problems/CChokeProblems.f90 /\n",
  169. "\tCSharp/Equipments/ControlPanels/CHook.f90 /\n",
  170. "\tCSharp/BasicInputs/RigSpecifications/CRigSize.f90 /\n",
  171. "\tEquipments/BopStack/PipeRams1Main.f90 /\n",
  172. "\tCSharp/Problems/COtherProblems.f90 /\n",
  173. "\tCSharp/BasicInputs/RigSpecifications/CAccumulator.f90 /\n",
  174. "\tCSharp/Problems/CRotaryProblems.f90 /\n",
  175. "\tCSharp/Problems/CDrillStemProblems.f90 /\n",
  176. "\tCSharp/BasicInputs/MudProperties.f90 /\n",
  177. "\tCSharp/BasicInputs/RigSpecifications/CPower.f90 /\n",
  178. "\tEquipments/RotaryTable/RotaryTableMain.f90 /\n",
  179. "\tCSharp/Equipments/MudPathFinding/CManifolds.f90 /\n",
  180. "\tCSharp/Problems/CBopProblems.f90 /\n",
  181. "\tCSharp/DownHole/DownHole.f90 /\n",
  182. "\tCSharp/Problems/CHoistingProblems.f90 /\n",
  183. "\tCSharp/BasicInputs/RigSpecifications/CHoisting.f90 /\n",
  184. "\tEquipments/Drawworks/DrawworksMain.f90 /\n",
  185. "\tCSharp/Problems/CLostProblems.f90 /\n",
  186. "\tCSharp/Problems/CBitProblems.f90 /\n",
  187. "\tCSharp/BasicInputs/RigSpecifications/CBopStack.f90 /\n",
  188. "\tEquipments/BopStack/ChokeLineMain.f90 /\n",
  189. "\tEquipments/Pumps/PumpsMain.f90 /\n",
  190. "\tEquipments/BopStack/AnnularMain.f90 /\n",
  191. "\tCSharp/BasicInputs/WellProfile/CPathGeneration.f90 /\n",
  192. "\tCSharp/BasicInputs/Geology/CReservoir.f90 /\n",
  193. "\tCSharp/BasicInputs/Bha/CStringConfiguration.f90 /\n",
  194. "\tEquipments/BopStack/PipeRams2Main.f90 /\n",
  195. "\tEquipments/BopStack/BlindRamsMain.f90 /\n",
  196. "\tCSharp/Problems/CKickProblems.f90 /\n",
  197. "\tCSharp/OperationScenarios/Permissions/Permissions.f90 /\n",
  198. "\tCSharp/BasicInputs/Geology/CFormation.f90 /\n",
  199. "\tEquipments/BopStack/KillLineMain.f90 /\n",
  200. "\tCSharp/Problems/CGaugesProblems.f90 /\n",
  201. "\tCSharp/BasicInputs/WellProfile/CCasingLinerChoke.f90 /\n",
  202. "\tCSharp/BasicInputs/Geology/CShoe.f90 /\n",
  203. "\tCSharp/Problems/CPumpProblems.f90 /\n",
  204. "\tCSharp/Equipments/ControlPanels/CDataDisplayConsole.f90 /\n",
  205. "\tCSharp/OperationScenarios/SoftwareInputs.f90 /\n",
  206. "\tTorqueDrag/TD_ReadDataSubroutines/TD_DrillStemReadData.f90 /\n",
  207. "\tEquipments/Pumps/Pump_OffMode_Solver.f90 /\n",
  208. "\tTorqueDrag/TD_Forces/TD_DropArea/TD_ForceDownDRot.f90 /\n",
  209. "\tTorqueDrag/TD_Forces/TD_DropArea/TD_ForceDownD.f90 /\n",
  210. "\tFluidFlow/kick/Formation_Information.f90 /\n",
  211. "\tTorqueDrag/TD_DrillingSubs/TD_WellElementsConfiguration.f90 /\n",
  212. "\tEquipments/MudSystem/Elements_Creation.f90 /\n",
  213. "\tEquipments/Drawworks/Drawworks_StartUp.f90 /\n",
  214. "\tTorqueDrag/TD_ReadDataSubroutines/TD_PipePropertiesReadData.f90 /\n",
  215. "\tTorqueDrag/TD_Forces/TD_CombinedMotionData.f90 /\n",
  216. "\tTorqueDrag/TD_DrillingSubs/TVD_Calculator.f90 /\n",
  217. "\tTorqueDrag/TD_Forces/TD_StraightArea/TD_ForceUpSRot.f90 /\n",
  218. "\tRop/Bit_Specification.f90 /\n",
  219. "\tEquipments/Pumps/Pump3_MainSolver.f90 /\n",
  220. "\tEquipments/MudSystem/Kick_Expansion_and_Contraction.f90 /\n",
  221. "\tTorqueDrag/TD_Forces/TD_ForceCalculation.f90 /\n",
  222. "\tTorqueDrag/TD_Forces/TD_BuildArea/TD_ForceDownB.f90 /\n",
  223. "\tEquipments/Pumps/Pumps_TotalSolver.f90 /\n",
  224. "\tTorqueDrag/TD_Forces/TD_StrainCalculation.f90 /\n",
  225. "\tFluidFlow/Flow_Startup.f90 /\n",
  226. "\tEquipments/DrillingConsole_ScrLEDs.f90 /\n",
  227. "\tTorqueDrag/TD_Forces/TD_ViscousDragForce/TD_ViscousDragForce.f90 /\n",
  228. "\tTorqueDrag/TD_Forces/TD_StraightArea/TD_ForceUpS.f90 /\n",
  229. "\tTorqueDrag/TD_Forces/TD_StraightArea/TD_ForceDownS.f90 /\n",
  230. "\tEquipments/RotaryTable/RTable_StartUp.f90 /\n",
  231. "\tEquipments/MudSystem/Utube2_and_Trip_In.f90 /\n",
  232. "\tEquipments/MudSystem/Kick_Migration.f90 /\n",
  233. "\tTorqueDrag/TD_ReadDataSubroutines/TD_ForceReadData.f90 /\n",
  234. "\tTorqueDrag/TD_Forces/TD_StaticHookLoadCalculation.f90 /\n",
  235. "\tEquipments/MudSystem/Pump_and_Trip_In.f90 /\n",
  236. "\tEquipments/MudSystem/Deallocate_Normal_Circulation.f90 /\n",
  237. "\tEquipments/RotaryTable/RTable_OnModeSolver.f90 /\n",
  238. "\tEquipments/Pumps/Pump_OnMode_Solver.f90 /\n",
  239. "\tTorqueDrag/TD_ReadDataSubroutines/TD_WellElementsReadData.f90 /\n",
  240. "\tTorqueDrag/TD_ReadDataSubroutines/TD_MudPropertiesReadData.f90 /\n",
  241. "\tTorqueDrag/TD_Forces/TD_DropArea/TD_ForceUpDRot.f90 /\n",
  242. "\tEquipments/TopDrive/TopDrive_StartUp.f90 /\n",
  243. "\tEquipments/MudSystem/FillingWell_By_BellNipple.f90 /\n",
  244. "\tTorqueDrag/TD_Forces/TD_BuildArea/TD_ForceUpBRot.f90 /\n",
  245. "\tTorqueDrag/TD_Forces/TD_TorqueCalculation.f90 /\n",
  246. "\tTorqueDrag/TD_Forces/TD_BuildArea/TD_ForceDownBRot.f90 /\n",
  247. "\tEquipments/Drawworks/Drawworks_MainSolver.f90 /\n",
  248. "\tTorqueDrag/TD_Forces/TD_DropArea/TD_ForceUpD.f90 /\n",
  249. "\tTorqueDrag/TD_Forces/TD_BuildArea/TD_ForceUpB.f90 /\n",
  250. "\tEquipments/RotaryTable/RTable_OffModeSolver.f90 /\n",
  251. "\tTorqueDrag/TD_StartUp/TD_DrillStemStartUp.f90 /\n",
  252. "\tTorqueDrag/TD_Forces/TD_StraightArea/TD_ForceDownSRot.f90 /\n",
  253. "\tRop/JetImpactForce.f90 /\n",
  254. "\tTorqueDrag/TD_ReadDataSubroutines/TD_WellReadData.f90 /\n",
  255. "\tTorqueDrag/TD_Forces/TD_BouyancyFactor.f90 /\n",
  256. "\tFluidFlow/Frictional_Press_Drop_Calc.f90 /\n",
  257. "\tEquipments/TopDrive/TopDrive_Outputs.f90 /\n",
  258. "\tEquipments/Drawworks/DWFixModeMotion.f90 /\n",
  259. "\tCSharp/Equipments/ControlPanels/CBopControlPanel.f90 /\n",
  260. "\tCSharp/OperationScenarios/UnitySignals/UnitySignals.f90 /\n",
  261. "\tCSharp/BasicInputs/RigSpecifications/CPumps.f90 /\n",
  262. "\tCSharp/Equipments/ControlPanels/CChokeManifold.f90 /\n",
  263. "\tCSharp/Equipments/Tanks/CTanks.f90 /\n",
  264. "\tCSharp/Warnings/CWarnings.f90 /\n",
  265. "\tTorqueDrag/TD_DrillingSubs/TD_BOPDiamCalculation.f90 /\n",
  266. "\tEquipments/Drawworks/Drawworks_Direction.f90 /\n",
  267. "\tEquipments/RotaryTable/RTable_Outputs.f90 /\n",
  268. "\tEquipments/Drawworks/DWMalfunction_MotorFailure.f90 /\n",
  269. "\tTorqueDrag/TD_Forces/TD_WeightOnBitCalculation.f90 /\n",
  270. "\tFluidFlow/String_Property_Calculator.f90 /\n",
  271. "\tFluidFlow/Annulus_Property_Calculator.f90 /\n",
  272. "\tEquipments/MudSystem/Trip_Out_andPump.f90 /\n",
  273. "\tEquipments/MudSystem/Utube1_and_Trip_In.f90 /\n",
  274. "\tEquipments/Pumps/Pump2_MainSolver.f90 /\n",
  275. "\tEquipments/Pumps/Pump1_MainSolver.f90 /\n",
  276. "\tFluidFlow/Utube.f90 /\n",
  277. "\tEquipments/BopStack/BOP.f90 /\n",
  278. "\tEquipments/BopStack/SHEAR_RAM.f90 /\n",
  279. "\tEquipments/BopStack/PIPE_RAM2.f90 /\n",
  280. "\tEquipments/BopStack/LOSS_INPUTS.f90 /\n",
  281. "\tEquipments/BopStack/ANNULAR.f90 /\n",
  282. "\tEquipments/BopStack/CHOKE_LINE.f90 /\n",
  283. "\tEquipments/BopStack/KILL_LINE.f90 /\n",
  284. "\tEquipments/BopStack/PIPE_RAM1.f90 /\n",
  285. "\tEquipments/BopStack/BOPstartup.f90 /\n",
  286. "\tCSharp/OperationScenarios/Notifications/Notofications.f90 /\n",
  287. "\tTorqueDrag/TD_StartUp/TD_StartUp.f90 /\n",
  288. "\tTorqueDrag/TD_Forces/TD_HookLoadCalculation.f90 /\n",
  289. "\tEquipments/TopDrive/TopDrive_Inputs.f90 /\n",
  290. "\tEquipments/TopDrive/TopDrive_Solver.f90 /\n",
  291. "\tCSharp/OperationScenarios/Notifications/Notifications.f90 /\n",
  292. "\tTorqueDrag/TorqueDragMain.f90 /\n",
  293. "\tTorqueDrag/TD_DrillingSubs/MeshGeneration_FluidModule.f90 /\n",
  294. "\tEquipments/Pumps/Pumps_StartUp.f90 /\n",
  295. "\tEquipments/ChokeControl/CHOKE.f90 /\n",
  296. "\tEquipments/ChokeControl/AirPump_Choke_Subs.f90 /\n",
  297. "\tEquipments/MudSystem/MudSystemStartup.f90 /\n",
  298. "\tEquipments/TopDrive/TopDriveMain.f90 /\n",
  299. "\tEquipments/MudSystem/MudSystem.f90 /\n",
  300. "\tRop/ROP_MainCalculation.f90 /\n",
  301. "\tEquipments/Drawworks/Drawworks_Outputs.f90 /\n",
  302. "\tEquipments/RotaryTable/RTable_Inputs.f90 /\n",
  303. "\tEquipments/TopDrive/TopDrive_OffMode.f90 /\n",
  304. "\tEquipments/TopDrive/TopDrive_MainSolver.f90 /\n",
  305. "\tCSharp/OperationScenarios/Common/OperationScenarios.f90 /\n",
  306. "\tEquipments/ChokeControl/ChokeControlMain.f90 /\n",
  307. "\tEquipments/ChokeControl/ChokeStartup.f90 /\n",
  308. "\tEquipments/MudSystem/MudSystemMain.f90 /\n",
  309. "\tEquipments/Pumps/Pumps_Inputs.f90 /\n",
  310. "\tEquipments/Pumps/Pumps_Outputs.f90 /\n",
  311. "\tFluidFlow/Annulus_and_Openhole_Pressure_Distribution.f90 /\n",
  312. "\tTorqueDrag/TD_DrillingSubs/TD_WellGeoConfiguration.f90 /\n",
  313. "\tEquipments/RotaryTable/RTable_MainSolver.f90 /\n",
  314. "\tCSharp/OperationScenarios/UnitySignals/CSlipsEnum.f90 /\n",
  315. "\tCSharp/OperationScenarios/Notifications/CUnlatchLedNotification.f90 /\n",
  316. "\tCSharp/OperationScenarios/Notifications/CTdsTorqueWrenchLedNotification.f90 /\n",
  317. "\tCSharp/OperationScenarios/Permissions/CInstallMudBucketPermission.f90 /\n",
  318. "\tCSharp/OperationScenarios/Permissions/CFillupHeadPermission.f90 /\n",
  319. "\tCSharp/OperationScenarios/Notifications/COpenKellyCockLedNotification.f90 /\n",
  320. "\tCSharp/OperationScenarios/Notifications/CTdsPowerLedNotification.f90 /\n",
  321. "\tCSharp/OperationScenarios/Notifications/CSwingLedNotification.f90 /\n",
  322. "\tCSharp/OperationScenarios/Enums/CTdsElevatorModesEnum.f90 /\n",
  323. "\tCSharp/OperationScenarios/UnitySignals/CTdsSpineEnum.f90 /\n",
  324. "\tCSharp/OperationScenarios/Permissions/CSwingTiltPermission.f90 /\n",
  325. "\tCSharp/OperationScenarios/Permissions/CIrSafetyValvePermission.f90 /\n",
  326. "\tCSharp/OperationScenarios/Permissions/CSwingOffPermission.f90 /\n",
  327. "\tCSharp/OperationScenarios/Notifications/CCloseSafetyValveLedNotification.f90 /\n",
  328. "\tCSharp/OperationScenarios/UnitySignals/CMouseHoleEnum.f90 /\n",
  329. "\tCSharp/OperationScenarios/UnitySignals/CFlowPipeDisconnectEnum.f90 /\n",
  330. "\tCSharp/OperationScenarios/Notifications/CCloseKellyCockLedNotification.f90 /\n",
  331. "\tCSharp/OperationScenarios/Enums/CElevatorConnectionEnum.f90 /\n",
  332. "\tCSharp/OperationScenarios/Notifications/CIrSafetyValveLedNotification.f90 /\n",
  333. "\tCSharp/OperationScenarios/UnitySignals/CFlowKellyDisconnectEnum.f90 /\n",
  334. "\tCSharp/OperationScenarios/Notifications/COpenSafetyValveLedNotification.f90 /\n",
  335. "\tCSharp/OperationScenarios/UnitySignals/CTdsBackupClamp.f90 /\n",
  336. "\tCSharp/OperationScenarios/UnitySignals/CTdsTongEnum.f90 /\n",
  337. "\tCSharp/OperationScenarios/UnitySignals/CElevatorEnum.f90 /\n",
  338. "\tCSharp/OperationScenarios/Notifications/CTongNotification.f90 /\n",
  339. "\tCSharp/OperationScenarios/UnitySignals/CSafetyValveEnum.f90 /\n",
  340. "\tCSharp/OperationScenarios/Permissions/CRemoveMudBucketPermission.f90 /\n",
  341. "\tCSharp/OperationScenarios/Permissions/CInstallFillupHeadPermission.f90 /\n",
  342. "\tCSharp/OperationScenarios/UnitySignals/CSwingEnum.f90 /\n",
  343. "\tCSharp/OperationScenarios/UnitySignals/CKellyEnum.f90 /\n",
  344. "\tCSharp/OperationScenarios/Permissions/CSwingDrillPermission.f90 /\n",
  345. "\tCSharp/OperationScenarios/Permissions/CIrIbopPermission.f90 /\n",
  346. "\tCSharp/OperationScenarios/Permissions/CRemoveFillupHeadPermission.f90 /\n",
  347. "\tCSharp/OperationScenarios/Common/COperationScenariosSettings.f90 /\n",
  348. "\tCSharp/OperationScenarios/UnitySignals/CTdsSwingEnum.f90 /\n",
  349. "\tCSharp/OperationScenarios/UnitySignals/CIbopEnum.f90 /\n",
  350. "\tCSharp/OperationScenarios/Notifications/CFillMouseHoleLedNotification.f90 /\n",
  351. "\tCSharp/OperationScenarios/UnitySignals/CTongEnum.f90 /\n",
  352. "\tCSharp/OperationScenarios/Notifications/CIrIBopLedNotification.f90 /\n",
  353. "\tCSharp/OperationScenarios/Notifications/CTdsIbopLedNotification.f90 /\n",
  354. "\tCSharp/OperationScenarios/Notifications/CLatchLedNotification.f90 /\n",
  355. "\tCSharp/OperationScenarios/Notifications/CSlipsNotification.f90 /\n",
  356. "\tTorqueDrag/TD_DrillingSubs/TD_DrillStemConfiguration.f90 /\n",
  357. "\tEquipments/MudSystem/Kick_Influx.f90 /\n",
  358. "\tEquipments/MudSystem/Disconnecting_Pipe.f90 /\n",
  359. "\tEquipments/Drawworks/Drawworks_Solver_OffMode.f90 /\n",
  360. "\tTorqueDrag/TD_DrillingSubs/TD_RemoveComponents.f90 /\n",
  361. "\tFluidFlow/Horizontal_and_String_Pressure_Distribution.f90 /\n",
  362. "\tEquipments/Drawworks/Drawworks_INPUTS.f90 /\n",
  363. "\tTorqueDrag/TD_DrillingSubs/TD_AddComponents.f90 /\n",
  364. "\tEquipments/Drawworks/Drawworks_Solver.f90 /\n",
  365. "\tEquipments/Pumps/Pumps_MainSolver.f90 /\n",
  366. "\tCSharp/OperationScenarios/Common/COperationScenariosMain.f90 /\n",
  367. "\tEquipments/MudSystem/Circulation_Code_Select.f90 /\n",
  368. "\tTorqueDrag/TD_DrillingSubs/TD_StringConnectionModes.f90 /\n",
  369. "\tFluidFlow/kick/Gas_Kick_Calculator.f90 /\n",
  370. "\tSimulator.f90 /\n",
  371. "\tTorqueDrag/TD_MainCalculations.f90 /\n",
  372. "\tFluidFlow/Well_Pressure_Data_Transfer.f90 /\n",
  373. "\tSimulationCore2.f90 /\n",
  374. "\tEquipments/MudSystem/Plot_Final_Mud_Elements.f90 /\n",
  375. "\tFluidFlow/Fluid_Flow_Solver.f90 /\n"
  376. =======
  377. "call json%add(p,\"TopDriveTdsPowerState\",data%Equipments%ControlPanel%CTopDrive%TopDriveTdsPowerState)\n",
  378. "call json%add(p,\"TopDriveTorqueWrench\",data%Equipments%ControlPanel%CTopDrive%TopDriveTorqueWrench)\n",
  379. "call json%add(p,\"TopDriveDrillTorqueState\",data%Equipments%ControlPanel%CTopDrive%TopDriveDrillTorqueState)\n",
  380. "call json%add(p,\"TopDriveLinkTiltState\",data%Equipments%ControlPanel%CTopDrive%TopDriveLinkTiltState)\n",
  381. "call json%add(p,\"TopDriveIbop\",data%Equipments%ControlPanel%CTopDrive%TopDriveIbop)\n",
  382. "call json%add(p,\"TopDriveTorqueLimitKnob\",data%Equipments%ControlPanel%CTopDrive%TopDriveTorqueLimitKnob)\n",
  383. "call json%add(p,\"RpmKnob\",data%Equipments%ControlPanel%CTopDrive%RpmKnob)\n",
  384. "call json%add(p,\"TopDriveOperationFaultLed\",data%Equipments%ControlPanel%CTopDrive%TopDriveOperationFaultLed)\n",
  385. "call json%add(p,\"TopDriveTdsPowerLed\",data%Equipments%ControlPanel%CTopDrive%TopDriveTdsPowerLed)\n",
  386. "call json%add(p,\"TopDriveTorqueWrenchLed\",data%Equipments%ControlPanel%CTopDrive%TopDriveTorqueWrenchLed)\n",
  387. "call json%add(p,\"TopDriveLinkTiltLed\",data%Equipments%ControlPanel%CTopDrive%TopDriveLinkTiltLed)\n",
  388. "call json%add(p,\"TopDriveIbopLed\",data%Equipments%ControlPanel%CTopDrive%TopDriveIbopLed)\n",
  389. "call json%add(p,\"TopDriveTorqueLimitGauge\",data%Equipments%ControlPanel%CTopDrive%TopDriveTorqueLimitGauge)\n",
  390. "call json%add(p,\"TopDriveTorqueGauge\",data%Equipments%ControlPanel%CTopDrive%TopDriveTorqueGauge)\n",
  391. "call json%add(p,\"TopDriveRpmGauge\",data%Equipments%ControlPanel%CTopDrive%TopDriveRpmGauge)\n"
  392. >>>>>>> 12c8e5ea51ec0ab746d971224588f794381f80d2
  393. ]
  394. }
  395. ],
  396. "source": [
  397. <<<<<<< HEAD
  398. "import re\n",
  399. "current_dir = 'C:\\\\Projects\\\\VSIM\\\\SimulationCore2\\\\'\n",
  400. "target_dir = 'x64\\\\Debug\\\\'\n",
  401. "depfilename = 'x64\\Debug\\SimulationCore2.dep'\n",
  402. "depfile = open(depfilename,'r')\n",
  403. "content = depfile.read()\n",
  404. "deptexts = content.split('\\n\\n')\n",
  405. "dependencies = {}\n",
  406. "moddeps = {}\n",
  407. "external_deps = []\n",
  408. "deptexts = [dt for dt in deptexts if dt!='']\n",
  409. "\n",
  410. "for depno,dept in enumerate(deptexts):\n",
  411. " headt,tailt = dept.split(': \\\\')\n",
  412. " headt,tailt = headt.strip(),tailt.strip()\n",
  413. " if headt.endswith('.mod'):\n",
  414. " ffile = tailt.replace(current_dir,'')\n",
  415. " mfiles = re.split(r' | \\\\\\n',headt)\n",
  416. " for mfile in mfiles:\n",
  417. " moddeps[mfile.strip()] = ffile\n",
  418. "for depno,dept in enumerate(deptexts):\n",
  419. " headt,tailt = dept.split(': \\\\')\n",
  420. " headt,tailt = headt.strip(),tailt.strip()\n",
  421. " if headt.endswith('.obj'):\n",
  422. " tails = re.split(r' \\\\\\n| ',tailt)\n",
  423. " tails = [t for t in tails if t!='']\n",
  424. " head = tails[0].replace(current_dir,'')\n",
  425. " deps = []\n",
  426. " for t in tails[1:]:\n",
  427. " mfile = t.replace(target_dir,'')\n",
  428. " # if 'json_' in mfile:\n",
  429. " # continue\n",
  430. " if mfile.strip() == '':\n",
  431. " print(f\"!!! t = '{t}', \")\n",
  432. " \n",
  433. " if mfile in moddeps:\n",
  434. " deps.append(moddeps[mfile])\n",
  435. " else:\n",
  436. " external_deps.append(mfile)\n",
  437. " # print(f\"{mfile} is not located\")\n",
  438. " if head in deps:\n",
  439. " deps.remove(head)\n",
  440. " # print(f\"making deps for {head}\")\n",
  441. " dependencies[head]=deps\n",
  442. "\n",
  443. "f = open('dependencies.txt','w')\n",
  444. "f.write(str(dependencies))\n",
  445. "f.close()\n",
  446. "\n",
  447. "from graphlib import TopologicalSorter\n",
  448. "ts = TopologicalSorter(dependencies)\n",
  449. "files = tuple(ts.static_order())\n",
  450. "for file in files:\n",
  451. " print(\"\\t\"+file.replace(\"\\\\\",\"/\")+\" /\")"
  452. ]
  453. },
  454. {
  455. "cell_type": "code",
  456. "execution_count": 70,
  457. "metadata": {},
  458. "outputs": [
  459. {
  460. "ename": "ValueError",
  461. "evalue": "cannot prepare() more than once",
  462. "output_type": "error",
  463. "traceback": [
  464. "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
  465. "\u001b[1;31mValueError\u001b[0m Traceback (most recent call last)",
  466. "\u001b[1;32mc:\\Projects\\VSIM\\SimulationCore2\\helper.ipynb Cell 3\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> <a href='vscode-notebook-cell:/c%3A/Projects/VSIM/SimulationCore2/helper.ipynb#X20sZmlsZQ%3D%3D?line=0'>1</a>\u001b[0m files \u001b[39m=\u001b[39m \u001b[39mtuple\u001b[39;49m(ts\u001b[39m.\u001b[39;49mstatic_order())\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Projects/VSIM/SimulationCore2/helper.ipynb#X20sZmlsZQ%3D%3D?line=1'>2</a>\u001b[0m \u001b[39mfor\u001b[39;00m file \u001b[39min\u001b[39;00m files:\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Projects/VSIM/SimulationCore2/helper.ipynb#X20sZmlsZQ%3D%3D?line=2'>3</a>\u001b[0m \u001b[39mprint\u001b[39m(file\u001b[39m.\u001b[39mreplace(\u001b[39m\"\u001b[39m\u001b[39m\\\\\u001b[39;00m\u001b[39m\"\u001b[39m,\u001b[39m\"\u001b[39m\u001b[39m/\u001b[39m\u001b[39m\"\u001b[39m)\u001b[39m+\u001b[39m\u001b[39m\"\u001b[39m\u001b[39m /\u001b[39m\u001b[39m\"\u001b[39m)\n",
  467. "File \u001b[1;32mc:\\Users\\Mahmood\\Anaconda3\\lib\\graphlib.py:242\u001b[0m, in \u001b[0;36mTopologicalSorter.static_order\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m 233\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39mstatic_order\u001b[39m(\u001b[39mself\u001b[39m):\n\u001b[0;32m 234\u001b[0m \u001b[39m\"\"\"Returns an iterable of nodes in a topological order.\u001b[39;00m\n\u001b[0;32m 235\u001b[0m \n\u001b[0;32m 236\u001b[0m \u001b[39m The particular order that is returned may depend on the specific\u001b[39;00m\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 240\u001b[0m \u001b[39m cycle is detected, :exc:`CycleError` will be raised.\u001b[39;00m\n\u001b[0;32m 241\u001b[0m \u001b[39m \"\"\"\u001b[39;00m\n\u001b[1;32m--> 242\u001b[0m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mprepare()\n\u001b[0;32m 243\u001b[0m \u001b[39mwhile\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mis_active():\n\u001b[0;32m 244\u001b[0m node_group \u001b[39m=\u001b[39m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mget_ready()\n",
  468. "File \u001b[1;32mc:\\Users\\Mahmood\\Anaconda3\\lib\\graphlib.py:93\u001b[0m, in \u001b[0;36mTopologicalSorter.prepare\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m 85\u001b[0m \u001b[39m\"\"\"Mark the graph as finished and check for cycles in the graph.\u001b[39;00m\n\u001b[0;32m 86\u001b[0m \n\u001b[0;32m 87\u001b[0m \u001b[39mIf any cycle is detected, \"CycleError\" will be raised, but \"get_ready\" can\u001b[39;00m\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 90\u001b[0m \u001b[39mtherefore no more nodes can be added using \"add\".\u001b[39;00m\n\u001b[0;32m 91\u001b[0m \u001b[39m\"\"\"\u001b[39;00m\n\u001b[0;32m 92\u001b[0m \u001b[39mif\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_ready_nodes \u001b[39mis\u001b[39;00m \u001b[39mnot\u001b[39;00m \u001b[39mNone\u001b[39;00m:\n\u001b[1;32m---> 93\u001b[0m \u001b[39mraise\u001b[39;00m \u001b[39mValueError\u001b[39;00m(\u001b[39m\"\u001b[39m\u001b[39mcannot prepare() more than once\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[0;32m 95\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_ready_nodes \u001b[39m=\u001b[39m [\n\u001b[0;32m 96\u001b[0m i\u001b[39m.\u001b[39mnode \u001b[39mfor\u001b[39;00m i \u001b[39min\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_node2info\u001b[39m.\u001b[39mvalues() \u001b[39mif\u001b[39;00m i\u001b[39m.\u001b[39mnpredecessors \u001b[39m==\u001b[39m \u001b[39m0\u001b[39m\n\u001b[0;32m 97\u001b[0m ]\n\u001b[0;32m 98\u001b[0m \u001b[39m# ready_nodes is set before we look for cycles on purpose:\u001b[39;00m\n\u001b[0;32m 99\u001b[0m \u001b[39m# if the user wants to catch the CycleError, that's fine,\u001b[39;00m\n\u001b[0;32m 100\u001b[0m \u001b[39m# they can continue using the instance to grab as many\u001b[39;00m\n\u001b[0;32m 101\u001b[0m \u001b[39m# nodes as possible before cycles block more progress\u001b[39;00m\n",
  469. "\u001b[1;31mValueError\u001b[0m: cannot prepare() more than once"
  470. ]
  471. }
  472. ],
  473. "source": [
  474. "files = tuple(ts.static_order())\n"
  475. ]
  476. },
  477. {
  478. "cell_type": "code",
  479. "execution_count": 54,
  480. "metadata": {},
  481. "outputs": [
  482. {
  483. "data": {
  484. "text/plain": [
  485. "['FluidFlow\\\\Well_Pressure_Data_Transfer.f90',\n",
  486. " 'FluidFlow\\\\Well_Pressure_Data_Transfer.f90',\n",
  487. " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
  488. " 'CSharp\\\\BasicInputs\\\\MudProperties.f90',\n",
  489. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsole.f90',\n",
  490. " 'CSharp\\\\ErrorLog\\\\CLog1.f90',\n",
  491. " 'CSharp\\\\ErrorLog\\\\CError.f90',\n",
  492. " 'CSharp\\\\Warnings\\\\CWarnings.f90',\n",
  493. " 'CSharp\\\\OperationScenarios\\\\Unity\\\\CUnityOutputs.f90',\n",
  494. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumps.f90',\n",
  495. " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CArrangement.f90',\n",
  496. " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CStack.f90',\n",
  497. " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CManifolds.f90',\n",
  498. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
  499. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
  500. " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
  501. " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
  502. " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
  503. " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
  504. " 'Rop\\\\sROP_Variables.f90',\n",
  505. " 'Rop\\\\sROP_Other_Variables.f90',\n",
  506. " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
  507. " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
  508. " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
  509. " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
  510. " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
  511. " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
  512. " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
  513. " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
  514. " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
  515. " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
  516. " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
  517. " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
  518. " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
  519. " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
  520. " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
  521. " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
  522. " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
  523. " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
  524. " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
  525. " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
  526. " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
  527. " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
  528. " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
  529. " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
  530. " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
  531. " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
  532. " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
  533. " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
  534. " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
  535. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
  536. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
  537. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
  538. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
  539. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
  540. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
  541. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
  542. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
  543. " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
  544. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
  545. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
  546. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
  547. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
  548. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
  549. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
  550. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
  551. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
  552. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
  553. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
  554. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
  555. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
  556. " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
  557. " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
  558. " 'Simulation\\\\Constants.f90',\n",
  559. " 'Simulation\\\\SimulationVariables.f90',\n",
  560. " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
  561. " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
  562. " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
  563. " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
  564. " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
  565. " 'Equipments\\\\MudSystem\\\\MudSystem.f90',\n",
  566. " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90',\n",
  567. " 'FluidFlow\\\\kick\\\\Gas_Kick_Calculator.f90',\n",
  568. " 'FluidFlow\\\\Well_Pressure_Data_Transfer.f90',\n",
  569. " 'CSharp\\\\ErrorLog\\\\CError.f90',\n",
  570. " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
  571. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
  572. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
  573. " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
  574. " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
  575. " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
  576. " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
  577. " 'Rop\\\\sROP_Variables.f90',\n",
  578. " 'Rop\\\\sROP_Other_Variables.f90',\n",
  579. " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
  580. " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
  581. " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
  582. " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
  583. " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
  584. " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
  585. " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
  586. " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
  587. " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
  588. " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
  589. " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
  590. " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
  591. " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
  592. " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
  593. " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
  594. " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
  595. " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
  596. " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
  597. " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
  598. " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
  599. " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
  600. " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
  601. " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
  602. " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
  603. " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
  604. " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
  605. " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
  606. " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
  607. " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
  608. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
  609. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
  610. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
  611. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
  612. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
  613. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
  614. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
  615. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
  616. " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
  617. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
  618. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
  619. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
  620. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
  621. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
  622. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
  623. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
  624. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
  625. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
  626. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
  627. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
  628. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
  629. " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
  630. " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
  631. " 'Simulation\\\\Constants.f90',\n",
  632. " 'Simulation\\\\SimulationVariables.f90',\n",
  633. " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
  634. " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
  635. " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
  636. " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
  637. " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
  638. " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90',\n",
  639. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
  640. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
  641. " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
  642. " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
  643. " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
  644. " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
  645. " 'Rop\\\\sROP_Variables.f90',\n",
  646. " 'Rop\\\\sROP_Other_Variables.f90',\n",
  647. " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90',\n",
  648. " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
  649. " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
  650. " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
  651. " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
  652. " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
  653. " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
  654. " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
  655. " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
  656. " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
  657. " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
  658. " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
  659. " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
  660. " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
  661. " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
  662. " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
  663. " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
  664. " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
  665. " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
  666. " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
  667. " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
  668. " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
  669. " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
  670. " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
  671. " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
  672. " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
  673. " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
  674. " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
  675. " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
  676. " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
  677. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
  678. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
  679. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
  680. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
  681. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
  682. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
  683. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
  684. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
  685. " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
  686. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
  687. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
  688. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
  689. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
  690. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
  691. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
  692. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
  693. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
  694. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
  695. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
  696. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
  697. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
  698. " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
  699. " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
  700. " 'Simulation\\\\Constants.f90',\n",
  701. " 'Simulation\\\\SimulationVariables.f90',\n",
  702. " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
  703. " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
  704. " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
  705. " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
  706. " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
  707. " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
  708. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
  709. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
  710. " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
  711. " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
  712. " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
  713. " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
  714. " 'Rop\\\\sROP_Variables.f90',\n",
  715. " 'Rop\\\\sROP_Other_Variables.f90',\n",
  716. " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90',\n",
  717. " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
  718. " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
  719. " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
  720. " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
  721. " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
  722. " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
  723. " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
  724. " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
  725. " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
  726. " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
  727. " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
  728. " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
  729. " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
  730. " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
  731. " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
  732. " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
  733. " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
  734. " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
  735. " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
  736. " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
  737. " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
  738. " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
  739. " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
  740. " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
  741. " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
  742. " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
  743. " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
  744. " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
  745. " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
  746. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
  747. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
  748. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
  749. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
  750. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
  751. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
  752. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
  753. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
  754. " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
  755. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
  756. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
  757. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
  758. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
  759. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
  760. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
  761. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
  762. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
  763. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
  764. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
  765. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
  766. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
  767. " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
  768. " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
  769. " 'Simulation\\\\Constants.f90',\n",
  770. " 'Simulation\\\\SimulationVariables.f90',\n",
  771. " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
  772. " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
  773. " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
  774. " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
  775. " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
  776. " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
  777. " 'CSharp\\\\ErrorLog\\\\CError.f90',\n",
  778. " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
  779. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
  780. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
  781. " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
  782. " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
  783. " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
  784. " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
  785. " 'Rop\\\\sROP_Variables.f90',\n",
  786. " 'Rop\\\\sROP_Other_Variables.f90',\n",
  787. " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
  788. " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
  789. " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
  790. " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
  791. " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
  792. " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
  793. " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
  794. " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
  795. " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
  796. " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
  797. " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
  798. " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
  799. " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
  800. " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
  801. " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
  802. " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
  803. " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
  804. " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
  805. " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
  806. " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
  807. " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
  808. " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
  809. " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
  810. " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
  811. " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
  812. " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
  813. " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
  814. " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
  815. " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
  816. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
  817. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
  818. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
  819. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
  820. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
  821. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
  822. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
  823. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
  824. " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
  825. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
  826. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
  827. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
  828. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
  829. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
  830. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
  831. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
  832. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
  833. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
  834. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
  835. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
  836. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
  837. " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
  838. " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
  839. " 'Simulation\\\\Constants.f90',\n",
  840. " 'Simulation\\\\SimulationVariables.f90',\n",
  841. " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
  842. " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
  843. " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
  844. " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
  845. " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
  846. " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90',\n",
  847. " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
  848. " 'CSharp\\\\BasicInputs\\\\MudProperties.f90',\n",
  849. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsole.f90',\n",
  850. " 'CSharp\\\\ErrorLog\\\\CLog1.f90',\n",
  851. " 'CSharp\\\\ErrorLog\\\\CError.f90',\n",
  852. " 'CSharp\\\\Warnings\\\\CWarnings.f90',\n",
  853. " 'CSharp\\\\OperationScenarios\\\\Unity\\\\CUnityOutputs.f90',\n",
  854. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumps.f90',\n",
  855. " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CArrangement.f90',\n",
  856. " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CStack.f90',\n",
  857. " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CManifolds.f90',\n",
  858. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
  859. " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
  860. " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
  861. " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
  862. " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
  863. " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
  864. " 'Rop\\\\sROP_Variables.f90',\n",
  865. " 'Rop\\\\sROP_Other_Variables.f90',\n",
  866. " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
  867. " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
  868. " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
  869. " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
  870. " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
  871. " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
  872. " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
  873. " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
  874. " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
  875. " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
  876. " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
  877. " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
  878. " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
  879. " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
  880. " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
  881. " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
  882. " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
  883. " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
  884. " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
  885. " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
  886. " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
  887. " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
  888. " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
  889. " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
  890. " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
  891. " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
  892. " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
  893. " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
  894. " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
  895. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
  896. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
  897. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
  898. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
  899. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
  900. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
  901. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
  902. " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
  903. " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
  904. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
  905. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
  906. " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
  907. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
  908. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
  909. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
  910. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
  911. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
  912. " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
  913. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
  914. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
  915. " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
  916. " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
  917. " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
  918. " 'Simulation\\\\Constants.f90',\n",
  919. " 'Simulation\\\\SimulationVariables.f90',\n",
  920. " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
  921. " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
  922. " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
  923. " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
  924. " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
  925. " 'Equipments\\\\MudSystem\\\\MudSystem.f90',\n",
  926. " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90']"
  927. ]
  928. },
  929. "execution_count": 54,
  930. "metadata": {},
  931. "output_type": "execute_result"
  932. }
  933. ],
  934. "source": [
  935. "dependencies['FluidFlow\\\\Well_Pressure_Data_Transfer.f90']"
  936. ]
  937. },
  938. {
  939. "cell_type": "code",
  940. "execution_count": 51,
  941. "metadata": {},
  942. "outputs": [
  943. {
  944. "name": "stdout",
  945. "output_type": "stream",
  946. "text": [
  947. "1-(0, 1)\n",
  948. "1-(1, 3)\n",
  949. "1-(2, 3)\n",
  950. "1-(3, 5)\n",
  951. "2-(0, 1)\n",
  952. "2-(1, 3)\n",
  953. "2-(2, 3)\n",
  954. "2-(3, 5)\n"
  955. ]
  956. }
  957. ],
  958. "source": [
  959. "l = [1,3,3,5]\n",
  960. "for a in enumerate(l):\n",
  961. " print(f\"1-{a}\")\n",
  962. "for a in enumerate(l):\n",
  963. " print(f\"2-{a}\")"
  964. ]
  965. },
  966. {
  967. "attachments": {},
  968. "cell_type": "markdown",
  969. "metadata": {},
  970. "source": [
  971. "# ToJson"
  972. ]
  973. },
  974. {
  975. "cell_type": "code",
  976. "execution_count": 8,
  977. "metadata": {},
  978. "outputs": [
  979. {
  980. "name": "stdout",
  981. "output_type": "stream",
  982. "text": [
  983. "{\"HoleType\":0,\n",
  984. "\"Angle\":0,\n",
  985. "\"Length\":0,\n",
  986. "\"FinalAngle\":0,\n",
  987. "\"TotalLength\":0,\n",
  988. "\"MeasuredDepth\":0,\n",
  989. "\"TotalVerticalDepth\":0,\n",
  990. "}\n"
  991. ]
  992. }
  993. ],
  994. "source": [
  995. "input = open(\"Text1.txt\")\n",
  996. "output = \"{\"\n",
  997. "lines = input.readlines()\n",
  998. "for line in lines:\n",
  999. " name = line.split(\"::\")[-1].strip()\n",
  1000. " type = line.split(\"::\")[0].strip()\n",
  1001. " output += f\"\\\"{name}\\\":0,\\n\" \n",
  1002. " # name = line.split(\"%\")[-1][:-1]\n",
  1003. " # print(name)\n",
  1004. "print(output+\"}\")\n"
  1005. ]
  1006. },
  1007. {
  1008. "cell_type": "code",
  1009. "execution_count": 1,
  1010. "metadata": {},
  1011. "outputs": [
  1012. {
  1013. "name": "stdout",
  1014. "output_type": "stream",
  1015. "text": [
  1016. "call ProblemToJson(p,\"ElevatorConnection\",data%State%OperationScenarios%ElevatorConnection)\n",
  1017. "call ProblemToJson(p,\"StringUpdate\",data%State%OperationScenarios%StringUpdate)\n",
  1018. "call ProblemToJson(p,\"KellyConnection\",data%State%OperationScenarios%KellyConnection)\n"
  1019. ]
  1020. }
  1021. ],
  1022. "source": [
  1023. "precode = \"\"\"call ProblemToJson(p,\"\",data%State%OperationScenarios%\"\"\"\n",
  1024. =======
  1025. "precode = \"\"\"call json%add(pform,\"\",data%Equipments%ControlPanel%CTopDrive%\"\"\"\n",
  1026. >>>>>>> 12c8e5ea51ec0ab746d971224588f794381f80d2
  1027. "input = open(\"Text1.txt\")\n",
  1028. "lines = input.readlines()\n",
  1029. "for line in lines:\n",
  1030. " name = line.split(\"::\")[-1].strip()\n",
  1031. " icoute = precode.index(\"\\\"\")+1\n",
  1032. " # name = line.split(\"%\")[-1][:-1]\n",
  1033. " # print(name)\n",
  1034. " newline = precode[:icoute]+name+precode[icoute:]+name+\")\"\n",
  1035. " print(newline)\n"
  1036. ]
  1037. },
  1038. {
  1039. "cell_type": "code",
  1040. <<<<<<< HEAD
  1041. "execution_count": 20,
  1042. "metadata": {},
  1043. "outputs": [
  1044. {
  1045. "name": "stdout",
  1046. "output_type": "stream",
  1047. "text": [
  1048. "call HoistingToJson(p)\n",
  1049. "call OperationScenarioToJson(p)\n",
  1050. "call notificationsToJson(p)\n",
  1051. "call permissionsToJson(p)\n",
  1052. "call unitySignalsToJson(p)\n",
  1053. "call StudentStationToJson(p)\n",
  1054. "call BopStackInputToJson(p)\n",
  1055. "call BopStackAccToJson(p)\n",
  1056. "call RamLineToJson(p)\n",
  1057. "call AnnularComputationalToJson(p)\n",
  1058. "call AnnularToJson(p)\n",
  1059. "call PipeRam1ToJson(p)\n",
  1060. "call ShearRamToJson(p)\n",
  1061. "call PipeRam2ToJson(p)\n",
  1062. "call ChokeLineToJson(p)\n",
  1063. "call KillLineToJson(p)\n",
  1064. "call PumpsToJson(p)\n",
  1065. "call RAMToJson(p)\n",
  1066. "call RAMSToJson(p)\n",
  1067. "call ChokeToJson(p)\n",
  1068. "call AirDrivenPumpToJson(p)\n",
  1069. "call AirPumpLineToJson(p)\n",
  1070. "call CHOOKEToJson(p)\n",
  1071. "call DrawworksToJson(p)\n",
  1072. "call MudSystemToJson(p)\n",
  1073. "call MUDToJson(p)\n",
  1074. "call MPumpsToJson(p)\n",
  1075. "call PUMPToJson(p)\n",
  1076. "call RTableToJson(p)\n",
  1077. "call TDSToJson(p)\n",
  1078. "call GasType(3) ! 1 = methane , 2 = Hydrogen sulfide , 3 = Carbon dioxidToJson(p)\n",
  1079. "call PressureDisplayToJson(p)\n",
  1080. "call FricPressDropToJson(p)\n",
  1081. "call ROP_SpecToJson(p)\n",
  1082. "call ROP_BitToJson(p)\n",
  1083. "call TDGeoToJson(p)\n",
  1084. "call F_String(:)ToJson(p)\n",
  1085. "call F_CountsToJson(p)\n",
  1086. "call F_Interval(:)ToJson(p)\n",
  1087. "call OD_Annulus(4)ToJson(p)\n",
  1088. "call TD_DrillStemToJson(p)\n",
  1089. "call TD_DrillStemsToJson(p)\n",
  1090. "call TD_StringToJson(p)\n",
  1091. "call TD_CountToJson(p)\n",
  1092. "call G_StringElementToJson(p)\n",
  1093. "call TD_VolToJson(p)\n",
  1094. "call TD_GeneralToJson(p)\n",
  1095. "call TD_BOPToJson(p)\n",
  1096. "call TD_BOPElement(4)ToJson(p)\n",
  1097. "call TD_StConnToJson(p)\n",
  1098. "call TD_LoadToJson(p)\n",
  1099. "call TD_WellElToJson(p)\n",
  1100. "call TD_CasingToJson(p)\n",
  1101. "call TD_LinerToJson(p)\n",
  1102. "call TD_OpenHoleToJson(p)\n",
  1103. "call TD_ROPHoleToJson(p)\n",
  1104. "call TD_WellGeneralToJson(p)\n",
  1105. "call TD_WellGeo(:)ToJson(p)\n"
  1106. ]
  1107. }
  1108. ],
  1109. "source": [
  1110. "precode = \"\"\"call \"\"\"\n",
  1111. "postcode = \"\"\"ToJson(p)\"\"\"\n",
  1112. "input = open(\"Text1.txt\")\n",
  1113. "lines = input.readlines()\n",
  1114. "for line in lines:\n",
  1115. " name = line.split(\"::\")[-1].strip()\n",
  1116. " # icoute = precode.index(\"\\\"\")+1\n",
  1117. " # name = line.split(\"::\")[-1][:-1].strip()\n",
  1118. " # print(name)\n",
  1119. " newline = precode+name+postcode\n",
  1120. " print(newline)\n"
  1121. ]
  1122. },
  1123. {
  1124. "cell_type": "code",
  1125. "execution_count": 3,
  1126. =======
  1127. "execution_count": 2,
  1128. >>>>>>> 12c8e5ea51ec0ab746d971224588f794381f80d2
  1129. "metadata": {},
  1130. "outputs": [
  1131. {
  1132. "name": "stdout",
  1133. "output_type": "stream",
  1134. "text": [
  1135. "\tGeo/GeoMain.f90 \\\n",
  1136. "\n"
  1137. ]
  1138. }
  1139. ],
  1140. "source": [
  1141. "##Replace space with _ in filenames and list them for put them in makefile\n",
  1142. "import os\n",
  1143. "dir = 'Geo'\n",
  1144. "files = os.listdir(dir)\n",
  1145. "fstring = ''\n",
  1146. "for f in files:\n",
  1147. " if f.endswith('90'):\n",
  1148. " newf = f.replace(' ','_')\n",
  1149. " os.rename(os.path.join(dir,f),os.path.join(dir,newf))\n",
  1150. " if newf.lower().endswith('variables.f90'):\n",
  1151. " fstring = '\\t'+os.path.join(dir,newf).replace('\\\\','/') +' \\\\\\n' + fstring\n",
  1152. " else:\n",
  1153. " fstring = fstring + '\\t'+os.path.join(dir,newf).replace('\\\\','/') +' \\\\\\n'\n",
  1154. "\n",
  1155. "print(fstring)"
  1156. ]
  1157. },
  1158. {
  1159. "cell_type": "markdown",
  1160. "metadata": {},
  1161. "source": [
  1162. "## Extract variable names from definition lines"
  1163. ]
  1164. },
  1165. {
  1166. "cell_type": "code",
  1167. "execution_count": 1,
  1168. "metadata": {},
  1169. "outputs": [],
  1170. "source": [
  1171. "# %pwd\n",
  1172. "lines = input(\"Enter lines:\").split(\" \")\n",
  1173. "lines = [l.strip() for l in lines if len(l.strip())>0]\n",
  1174. "vars = []\n",
  1175. "for l in lines:\n",
  1176. " if '::' in l:\n",
  1177. " vars.append(l.split('::')[1].strip())"
  1178. ]
  1179. },
  1180. {
  1181. "cell_type": "code",
  1182. "execution_count": 8,
  1183. "metadata": {},
  1184. "outputs": [
  1185. {
  1186. "data": {
  1187. "text/plain": [
  1188. "'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'"
  1189. ]
  1190. },
  1191. "execution_count": 8,
  1192. "metadata": {},
  1193. "output_type": "execute_result"
  1194. }
  1195. ],
  1196. "source": [
  1197. "import string\n",
  1198. "string.ascii_letters"
  1199. ]
  1200. },
  1201. {
  1202. "cell_type": "code",
  1203. "execution_count": 9,
  1204. "metadata": {},
  1205. "outputs": [
  1206. {
  1207. "name": "stdout",
  1208. "output_type": "stream",
  1209. "text": [
  1210. "var: AnnularRegulatorSetControl\n",
  1211. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1212. "Char before: \n",
  1213. "Char after: \n",
  1214. "\n",
  1215. "var: AirMasterValve\n",
  1216. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1217. "Char before: \n",
  1218. "Char after: \n",
  1219. "\n",
  1220. "var: ByePassValve\n",
  1221. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1222. "Char before: \n",
  1223. "Char after: \n",
  1224. "\n",
  1225. "var: AnnularValve\n",
  1226. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1227. "Char before: \n",
  1228. "Char after: \n",
  1229. "\n",
  1230. "var: UpperRamsValve\n",
  1231. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1232. "Char before: \n",
  1233. "Char after: \n",
  1234. "\n",
  1235. "var: MiddleRamsValve\n",
  1236. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1237. "Char before: \n",
  1238. "Char after: \n",
  1239. "\n",
  1240. "var: KillLineValve\n",
  1241. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1242. "Char before: \n",
  1243. "Char after: \n",
  1244. "\n",
  1245. "var: ChokeLineValve\n",
  1246. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1247. "Char before: \n",
  1248. "Char after: \n",
  1249. "\n",
  1250. "var: LowerRamsValve\n",
  1251. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1252. "Char before: \n",
  1253. "Char after: \n",
  1254. "\n",
  1255. "var: ManifoldPressureGauge\n",
  1256. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1257. "Char before: \n",
  1258. "Char after: \n",
  1259. "\n",
  1260. "var: AirSupplyPressureGauge\n",
  1261. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1262. "Char before: \n",
  1263. "Char after: \n",
  1264. "\n",
  1265. "var: AccumulatorPressureGauge\n",
  1266. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1267. "Char before: \n",
  1268. "Char after: \n",
  1269. "\n",
  1270. "var: AnnularPressureGauge\n",
  1271. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1272. "Char before: \n",
  1273. "Char after: \n",
  1274. "\n",
  1275. "var: AnnularOpenLED\n",
  1276. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1277. "Char before: \n",
  1278. "Char after: \n",
  1279. "\n",
  1280. "var: AnnularCloseLED\n",
  1281. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1282. "Char before: \n",
  1283. "Char after: \n",
  1284. "\n",
  1285. "var: UpperRamsOpenLED\n",
  1286. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1287. "Char before: \n",
  1288. "Char after: \n",
  1289. "\n",
  1290. "var: UpperRamsCloseLED\n",
  1291. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1292. "Char before: \n",
  1293. "Char after: \n",
  1294. "\n",
  1295. "var: MiddleRamsOpenLED\n",
  1296. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1297. "Char before: \n",
  1298. "Char after: \n",
  1299. "\n",
  1300. "var: MiddleRamsCloseLED\n",
  1301. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1302. "Char before: \n",
  1303. "Char after: \n",
  1304. "\n",
  1305. "var: KillLineOpenLED\n",
  1306. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1307. "Char before: \n",
  1308. "Char after: \n",
  1309. "\n",
  1310. "var: KillLineCloseLED\n",
  1311. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1312. "Char before: \n",
  1313. "Char after: \n",
  1314. "\n",
  1315. "var: ChokeLineOpenLED\n",
  1316. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1317. "Char before: \n",
  1318. "Char after: \n",
  1319. "\n",
  1320. "var: ChokeLineCloseLED\n",
  1321. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1322. "Char before: \n",
  1323. "Char after: \n",
  1324. "\n",
  1325. "var: LowerRamsOpenLED\n",
  1326. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1327. "Char before: \n",
  1328. "Char after: \n",
  1329. "\n",
  1330. "var: LowerRamsCloseLED\n",
  1331. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1332. "Char before: \n",
  1333. "Char after: \n",
  1334. "\n",
  1335. "var: AnnularStatus\n",
  1336. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1337. "Char before: \n",
  1338. "Char after: \n",
  1339. "\n",
  1340. "var: UpperRamsStatus\n",
  1341. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1342. "Char before: \n",
  1343. "Char after: \n",
  1344. "\n",
  1345. "var: MiddleRamsStatus\n",
  1346. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1347. "Char before: \n",
  1348. "Char after: \n",
  1349. "\n",
  1350. "var: LowerRamsStatus\n",
  1351. "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
  1352. "Char before: \n",
  1353. "Char after: \n",
  1354. "\n"
  1355. ]
  1356. }
  1357. ],
  1358. "source": [
  1359. "import os\n",
  1360. "import sys\n",
  1361. "import re\n",
  1362. "dir = '.'\n",
  1363. "varNameChars = string.ascii_letters + '_'\n",
  1364. "log = open(os.path.join(dir,'ReplaceVars.log',),'a')\n",
  1365. "end=False\n",
  1366. "for dir,subdirs,files in os.walk(dir):\n",
  1367. " for filename in files:\n",
  1368. " if filename.lower().endswith('.f90'):\n",
  1369. " # print(filename)\n",
  1370. " file = open(os.path.join(dir,filename))\n",
  1371. " code = file.read()\n",
  1372. " for var in vars:\n",
  1373. " if var not in code:\n",
  1374. " continue\n",
  1375. " occurs = [m.start() for m in re.finditer(var, code)]\n",
  1376. " for occurance in occurs:\n",
  1377. " if code[occurs[0]-1] in varNameChars or code[occurs[0]+len(var)] in varNameChars:\n",
  1378. " continue\n",
  1379. " print(f\"var: {var}\")\n",
  1380. " print(f\"file = {os.path.join(dir,filename)}\")\n",
  1381. " print(f\"Char before: {code[occurs[0]-1]}\")\n",
  1382. " print(f\"Char after: {code[occurs[0]+len(var)]}\")\n",
  1383. " end = True\n",
  1384. " if end:\n",
  1385. " break"
  1386. ]
  1387. },
  1388. {
  1389. "cell_type": "code",
  1390. "execution_count": 9,
  1391. "metadata": {},
  1392. "outputs": [
  1393. {
  1394. "name": "stdout",
  1395. "output_type": "stream",
  1396. "text": [
  1397. "State\n",
  1398. "Hoisting\n",
  1399. "OperationScenario\n",
  1400. "notifications\n",
  1401. "permissions\n",
  1402. "unitySignals\n",
  1403. "StudentStation\n",
  1404. "BopStackInput\n",
  1405. "BopStackAcc\n",
  1406. "RamLine\n",
  1407. "AnnularComputational\n",
  1408. "Annular\n",
  1409. "PipeRam1\n",
  1410. "ShearRam\n",
  1411. "PipeRam2\n",
  1412. "ChokeLine\n",
  1413. "KillLine\n",
  1414. "Pumps\n",
  1415. "RAM\n",
  1416. "RAMS\n",
  1417. "Choke\n",
  1418. "AirDrivenPump\n",
  1419. "AirPumpLine\n",
  1420. "CHOOKE\n",
  1421. "Drawworks\n",
  1422. "MudSystem\n",
  1423. "MUD\n",
  1424. "PUMP\n",
  1425. "RTable\n",
  1426. "TDS\n",
  1427. "GasType(3)\n",
  1428. "PressureDisplay\n",
  1429. "ObservationPoint(:)\n",
  1430. "FricPressDrop\n",
  1431. "ROP_Spec\n",
  1432. "ROP_Bit\n",
  1433. "TDGeo\n",
  1434. "F_String(:)\n",
  1435. "F_Counts\n",
  1436. "F_Interval(:)\n",
  1437. "OD_Annulus(4)\n",
  1438. "TD_DrillStem\n",
  1439. "TD_DrillStems\n",
  1440. "TD_String\n",
  1441. "TD_Count\n",
  1442. "G_StringElement\n",
  1443. "TD_Vol\n",
  1444. "TD_General\n",
  1445. "TD_BOP\n",
  1446. "TD_BOPElement(4)\n",
  1447. "TD_StConn\n",
  1448. "TD_Load\n",
  1449. "TD_WellEl\n",
  1450. "TD_Casing\n",
  1451. "data%State%TD_Liner\n",
  1452. "TD_OpenHole\n",
  1453. "TD_ROPHole\n",
  1454. "TD_WellGeneral\n",
  1455. "TD_WellGeo(:)\n",
  1456. "EquipmentControl\n",
  1457. "BopControlPanel\n",
  1458. "ChokeControlPanel\n",
  1459. "ChokeManifold\n",
  1460. "DataDisplayConsole\n",
  1461. "DrillingConsole\n",
  1462. "Hook\n",
  1463. "StandPipeManifold\n",
  1464. "TopDrivePanel\n",
  1465. "DrillingWatch\n",
  1466. "Tank\n",
  1467. "Configuration\n",
  1468. "StringConfiguration\n",
  1469. "Formation\n",
  1470. "Reservoir\n",
  1471. "Shoe\n",
  1472. "Accumulator\n",
  1473. "BopStackSpecification\n",
  1474. "Hoisting\n",
  1475. "Power\n",
  1476. "PumpsSpecification\n",
  1477. "RigSize\n",
  1478. "CasingLinerChoke\n",
  1479. "PathGeneration\n",
  1480. "WellSurveyData\n",
  1481. "MudProperties\n",
  1482. "problems\n",
  1483. "BitProblems\n",
  1484. "BopProblems\n",
  1485. "ChokeProblems\n",
  1486. "DrillStemProblems\n",
  1487. "GaugesProblems\n",
  1488. "HoistingProblems\n",
  1489. "KickProblems\n",
  1490. "LostProblems\n",
  1491. "MudTreatmentProblems\n",
  1492. "OtherProblems\n",
  1493. "PumpProblems\n",
  1494. "RotaryProblems\n"
  1495. ]
  1496. },
  1497. {
  1498. "ename": "IndexError",
  1499. "evalue": "list index out of range",
  1500. "output_type": "error",
  1501. "traceback": [
  1502. "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
  1503. "\u001b[1;31mIndexError\u001b[0m Traceback (most recent call last)",
  1504. "\u001b[1;32mc:\\Projects\\VSIM\\SimulationCore2\\helper.ipynb Cell 6\u001b[0m in \u001b[0;36m<cell line: 3>\u001b[1;34m()\u001b[0m\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Projects/VSIM/SimulationCore2/helper.ipynb#W5sZmlsZQ%3D%3D?line=5'>6</a>\u001b[0m nsp\u001b[39m+\u001b[39m\u001b[39m=\u001b[39m\u001b[39m1\u001b[39m\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Projects/VSIM/SimulationCore2/helper.ipynb#W5sZmlsZQ%3D%3D?line=6'>7</a>\u001b[0m splits \u001b[39m=\u001b[39m line\u001b[39m.\u001b[39msplit(\u001b[39m\"\u001b[39m\u001b[39m::\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m----> <a href='vscode-notebook-cell:/c%3A/Projects/VSIM/SimulationCore2/helper.ipynb#W5sZmlsZQ%3D%3D?line=7'>8</a>\u001b[0m \u001b[39mprint\u001b[39m(splits[\u001b[39m1\u001b[39;49m]\u001b[39m.\u001b[39mstrip())\n",
  1505. "\u001b[1;31mIndexError\u001b[0m: list index out of range"
  1506. ]
  1507. }
  1508. ],
  1509. "source": [
  1510. "f = open(\"hier.txt\")\n",
  1511. "lines = f.readlines()\n",
  1512. "for line in lines[1:]:\n",
  1513. " nsp=0\n",
  1514. " while line[nsp]==' ':\n",
  1515. " nsp+=1\n",
  1516. " splits = line.split(\"::\")\n",
  1517. " print(splits[1].strip())"
  1518. ]
  1519. },
  1520. {
  1521. "cell_type": "code",
  1522. "execution_count": 4,
  1523. "metadata": {},
  1524. "outputs": [
  1525. {
  1526. "data": {
  1527. "text/plain": [
  1528. "'type SimulationDataType type(SimulationStateType)::State Type(HoistingType)::Hoisting type(OperationScenarioType)::OperationScenario type(NotificationType)::notifications type(PermissionsType):: permissions type(UnitySignalsType):: unitySignals type(StudentStationType)::StudentStation type(BopStackInputType)::BopStackInput type(BopStackAccType)::BopStackAcc type(RamLineType)::RamLine type(AnnularComputationalType)::AnnularComputational type(AnnularType)::Annular type(PipeRams1Type)::PipeRam1 type(ShearRamType)::ShearRam type(PipeRam2Type)::PipeRam2 type(ChokeLineType)::ChokeLine type(KillLineType)::KillLine type(PumpsType)::Pumps TYPE(BOP_TypeVars), DIMENSION(1:6) :: RAM TYPE(BOP_TypeVars2D) :: RAMS type(ChokeType)::Choke type(AirDrivenPumpType)::AirDrivenPump type(AirPumpLineType)::AirPumpLine TYPE(CHOKE_TypeVars), DIMENSION(1:2) :: CHOOKE TYPE(Drawworks_Var) :: Drawworks type(MudSystemType)::MudSystem TYPE(MUD_TypeVars), DIMENSION(1:10) :: MUD TYPE(Pump_Var), DIMENSION(1:3) :: PUMP TYPE(RTable_Var) :: RTable TYPE(TDS_Var) :: TDS TYPE(GasData) :: GasType(3) ! 1 = methane , 2 = Hydrogen sulfide , 3 = Carbon dioxid TYPE(PressureDisplayVARIABLESTYPE) :: PressureDisplay TYPE(ObservationAndGaugePointsInformations) , ALLOCATABLE :: ObservationPoint(:) TYPE(FricPressDropVarsTYPE) :: FricPressDrop TYPE(ROPSpecificationInfo) :: ROP_Spec TYPE(ROPInfo) :: ROP_Bit TYPE(Geo_Data) :: TDGeo TYPE(F_StringData) , Allocatable :: F_String(:) TYPE(F_IntervalsCountsData):: F_Counts TYPE(F_IntervalData) , Allocatable :: F_Interval(:) TYPE(OD_AnnulusData) :: OD_Annulus(4) TYPE(TD_DrillStemInfo), ALLOCATABLE, DIMENSION(:) :: TD_DrillStem TYPE(TD_SeparatedDrillStemInfo), ALLOCATABLE, DIMENSION(:) :: TD_DrillStems TYPE(TD_StringInfo) :: TD_String TYPE(TD_AddRemoveInfo) :: TD_Count TYPE(CStringComponents), ALLOCATABLE, DIMENSION(:) :: G_StringElement TYPE(TD_RemovedVolumeInfo) :: TD_Vol TYPE(TD_GeneralInfo) :: TD_General TYPE(TD_BOPInfo) :: TD_BOP TYPE(CBopElement) :: TD_BOPElement(4) TYPE(TD_StringconnectionInfo) :: TD_StConn TYPE(TD_LoadInfo) :: TD_Load TYPE(TD_WellElementsInfo) :: TD_WellEl TYPE(TD_CasingInfo), ALLOCATABLE, DIMENSION(:) :: TD_Casing TYPE(TD_LinerInfo), ALLOCATABLE, DIMENSION(:) :: data%State%TD_Liner TYPE(TD_OpenHoleInfo), ALLOCATABLE, DIMENSION(:) :: TD_OpenHole TYPE(TD_ROPHoleInfo), ALLOCATABLE, DIMENSION(:) :: TD_ROPHole TYPE(TD_WellGeneralInfo) :: TD_WellGeneral TYPE(TD_WellGeometryData), Allocatable :: TD_WellGeo(:) type(EquipmentControlType)::EquipmentControl type(BopControlPanelType) :: BopControlPanel Type(ChokeControlPanelType)::ChokeControlPanel Type(ChokeManifoldType)::ChokeManifold Type(DataDisplayConsoleType) :: DataDisplayConsole TYPE(DrillingConsoleType) :: DrillingConsole Type(HookType)::Hook type(StandPipeManifoldType)::StandPipeManifold Type(TopDrivePanelType)::TopDrivePanel Type(DrillingWatchType)::DrillingWatch Type(TankType)::Tank type(ConfigurationType)::Configuration Type(StringConfigurationType)::StringConfiguration Type(FormationType) :: Formation Type(ReservoirType)::Reservoir Type(ShoeType)::Shoe Type(AccumulatorType)::Accumulator Type(BopStackSpecificationType)::BopStackSpecification Type(HoistingType)::Hoisting Type(PowerType)::Power Type(PumpSpecificationType)::PumpsSpecification Type(RigSizeType)::RigSize Type(CasingLinerChokeType)::CasingLinerChoke Type(PathGenerationType)::PathGeneration Type(WellSurveyDataType)::WellSurveyData Type(MudPropertiesType)::MudProperties type(ProblemsType)::problems type(BitProblemsType)::BitProblems type(BopProblemsType)::BopProblems type(ChokeProblemsType)::ChokeProblems type(DrillStemProblemsType)::DrillStemProblems type(GaugesProblemsType)::GaugesProblems type(HoistingProblemsType):: HoistingProblems type(KickProblemsType)::KickProblems type(LostProblemsType)::LostProblems type(MudTreatmentProblemsType)::MudTreatmentProblems type(OtherProblemsType)::OtherProblems type(PumpProblemsType)::PumpProblems type(RotaryProblemsType)::RotaryProblems end type SimulationDataType'"
  1529. ]
  1530. },
  1531. "execution_count": 4,
  1532. "metadata": {},
  1533. "output_type": "execute_result"
  1534. }
  1535. ],
  1536. "source": [
  1537. "line"
  1538. ]
  1539. },
  1540. {
  1541. "cell_type": "code",
  1542. "execution_count": null,
  1543. "metadata": {},
  1544. "outputs": [],
  1545. "source": [
  1546. "for fn in modules:\n",
  1547. " f = open(fn)\n",
  1548. " lines = f.readlines()\n",
  1549. " module_filenames = {}\n",
  1550. " used_modules = []\n",
  1551. " mod_count = 0\n",
  1552. " for l in lines:\n",
  1553. " l = l.strip().lower()\n",
  1554. " if l.startswith('module ') and not l.startswith('module procedure '):\n",
  1555. " mod_name = l.split(' ')[1]\n",
  1556. " module_filenames[mod_name] = fn\n",
  1557. " mod_count +=1\n",
  1558. " if l.startswith('use'):\n",
  1559. " used_modules.append(l.split(' ')[1])\n",
  1560. " if mod_count !=1:\n",
  1561. " print(f\"{fn} has {mod_count} modules\")\n",
  1562. " module_filenames,used_modules"
  1563. ]
  1564. }
  1565. ],
  1566. "metadata": {
  1567. "kernelspec": {
  1568. "display_name": "Python 3 (ipykernel)",
  1569. "language": "python",
  1570. "name": "python3"
  1571. },
  1572. "language_info": {
  1573. "codemirror_mode": {
  1574. "name": "ipython",
  1575. "version": 3
  1576. },
  1577. "file_extension": ".py",
  1578. "mimetype": "text/x-python",
  1579. "name": "python",
  1580. "nbconvert_exporter": "python",
  1581. "pygments_lexer": "ipython3",
  1582. "version": "3.11.4"
  1583. },
  1584. "vscode": {
  1585. "interpreter": {
  1586. "hash": "1ef4a26de7183d96d6da1045a38581e0a15b2215d0c1b98c7b273c6e514c6c7e"
  1587. }
  1588. }
  1589. },
  1590. "nbformat": 4,
  1591. "nbformat_minor": 2
  1592. }