|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553 |
- {
- "cells": [
- {
- "attachments": {},
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "# Make makefile"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 72,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "\tCSharp/OperationScenarios/Common/COperationScenariosVariables.f90 /\n",
- "\tTorqueDrag/TD_Modules/TD_WellGeometry.f90 /\n",
- "\tTorqueDrag/TD_Modules/TD_WellElements.f90 /\n",
- "\tTorqueDrag/TD_Modules/TD_StringConnectionData.f90 /\n",
- "\tTorqueDrag/TD_Modules/GeoElements_FluidModule.f90 /\n",
- "\tRop/sROP_Variables.f90 /\n",
- "\tRop/sROP_Other_Variables.f90 /\n",
- "\tFluidFlow/Flow_Startup_VARIABLES.f90 /\n",
- "\tCSharp/DownHole/CDownHoleTypes.f90 /\n",
- "\tEquipments/Drawworks/Drawworks_VARIABLES.f90 /\n",
- "\tEquipments/ChokeControl/CHOKE_VARIABLES.f90 /\n",
- "\tEquipments/TopDrive/TopDrive_VARIABLES.f90 /\n",
- "\tEquipments/RotaryTable/RTable_VARIABLES.f90 /\n",
- "\tEquipments/Pumps/Pumps_VARIABLES.f90 /\n",
- "\tCSharp/Warnings/CWarningsVariables.f90 /\n",
- "\tCSharp/StudentStation/CStudentStationVariables.f90 /\n",
- "\tCSharp/OperationScenarios/SoftwareInputsVariables.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/UnitySignalsVariables.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/PermissionsVariables.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/NotificationVariables.f90 /\n",
- "\tCSharp/Equipments/Tanks/CTanksVariables.f90 /\n",
- "\tCSharp/Equipments/DrillWatch/CDrillWatchVariables.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CTopDrivePanelVariables.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CStandPipeManifoldVariables.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CHookVariables.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CDrillingConsoleVariables.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CChokeManifoldVariables.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CChokeControlPanelVariables.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CBopControlPanelVariables.f90 /\n",
- "\tCSharp/BasicInputs/WellProfile/CWellSurveyDataVariables.f90 /\n",
- "\tCSharp/BasicInputs/WellProfile/CPathGenerationVariables.f90 /\n",
- "\tCSharp/BasicInputs/WellProfile/CCasingLinerChokeVariables.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CRigSizeVariables.f90 /\n",
- "\tCSharp/Common/CIActionReference.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CPowerVariables.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CHoistingVariables.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CBopStackVariables.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CAccumulatorVariables.f90 /\n",
- "\tCSharp/BasicInputs/Geology/CShoeVariables.f90 /\n",
- "\tCSharp/BasicInputs/Geology/CReservoirVariables.f90 /\n",
- "\tCSharp/BasicInputs/Geology/CFormationVariables.f90 /\n",
- "\tCSharp/BasicInputs/Bha/CStringConfigurationVariables.f90 /\n",
- "\tSimulation/Constants.f90 /\n",
- "\tCSharp/Equipments/MudPathFinding/CArrangement.f90 /\n",
- "\tCSharp/OperationScenarios/Unity/CUnityInputs.f90 /\n",
- "\tCSharp/Common/CCommonVariables.f90 /\n",
- "\tCommon/DynamicIntegerArray.f90 /\n",
- "\tRop/RopMain.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CEquipmentsConstants.f90 /\n",
- "\tCommon/DynamicRealArray.f90 /\n",
- "\tCSharp/Common/CTimerLegacy.f90 /\n",
- "\tCommon/DynamicDoubleArray.f90 /\n",
- "\tCSharp/Equipments/MudPathFinding/CPathChangeEvents.f90 /\n",
- "\tCommon/DynamicLogicalArray.f90 /\n",
- "\tCSharp/Common/CScaleRange.f90 /\n",
- "\tCSharp/Common/CTimer.f90 /\n",
- "\tCSharp/Common/CQuery.f90 /\n",
- "\tFluidFlow/FluidFlowMain.f90 /\n",
- "\tTorqueDrag/TD_Modules/TD_GeneralData.f90 /\n",
- "\tCSharp/BasicInputs/WellProfile/CWellSurveyData.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CDataDisplayConsoleVariables.f90 /\n",
- "\tCSharp/ErrorLog/CLog4.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CPumpsVariables.f90 /\n",
- "\tCSharp/ErrorLog/CLog1.f90 /\n",
- "\tCSharp/BasicInputs/CMudPropertiesVariables.f90 /\n",
- "\tCSharp/ErrorLog/CLog5.f90 /\n",
- "\tCSharp/ErrorLog/CError.f90 /\n",
- "\tCSharp/ErrorLog/CLog2.f90 /\n",
- "\tCSharp/ErrorLog/CLog3.f90 /\n",
- "\tSimulation/CSounds.f90 /\n",
- "\tCSharp/Common/CCommon.f90 /\n",
- "\tFluidFlow/Pressure_Display_VARIABLES.f90 /\n",
- "\tEquipments/BopStack/VARIABLES.f90 /\n",
- "\tFluidFlow/kick/Kick_VARIABLES.f90 /\n",
- "\tCSharp/OperationScenarios/Unity/CUnityOutputs.f90 /\n",
- "\tCSharp/DownHole/CDownHoleVariables.f90 /\n",
- "\tGeo/GeoMain.f90 /\n",
- "\tCSharp/Equipments/MudPathFinding/CPath.f90 /\n",
- "\tCSharp/Problems/CProblemDifinition.f90 /\n",
- "\tFluidFlow/Pressure_Distribution_VARIABLES.f90 /\n",
- "\tEquipments/MudSystem/MudSystem_Variables.f90 /\n",
- "\tTorqueDrag/TD_Modules/TD_DrillStem.f90 /\n",
- "\tCSharp/Equipments/MudPathFinding/CStack.f90 /\n",
- "\tCSharp/Problems/CDrillStemProblemsVariables.f90 /\n",
- "\tCSharp/Problems/COtherProblemsVariables.f90 /\n",
- "\tCSharp/Problems/CLostProblemsVariables.f90 /\n",
- "\tCSharp/Problems/CGaugesProblemsVariables.f90 /\n",
- "\tCSharp/Problems/CBitProblemsVariables.f90 /\n",
- "\tCSharp/Problems/CKickProblemsVariables.f90 /\n",
- "\tCSharp/Problems/CHoistingProblemsVariables.f90 /\n",
- "\tCSharp/Problems/CChokeProblemsVariables.f90 /\n",
- "\tCSharp/Problems/CPumpProblemsVariables.f90 /\n",
- "\tCSharp/Problems/CRotaryProblemsVariables.f90 /\n",
- "\tCSharp/Problems/CMudTreatmentProblemsVariables.f90 /\n",
- "\tCSharp/Problems/CBopProblemsVariables.f90 /\n",
- "\tSimulation/SimulationVariables.f90 /\n",
- "\tCSharp/Problems/CMudTreatmentProblems.f90 /\n",
- "\tCSharp/Problems/CChokeProblems.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CHook.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CRigSize.f90 /\n",
- "\tEquipments/BopStack/PipeRams1Main.f90 /\n",
- "\tCSharp/Problems/COtherProblems.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CAccumulator.f90 /\n",
- "\tCSharp/Problems/CRotaryProblems.f90 /\n",
- "\tCSharp/Problems/CDrillStemProblems.f90 /\n",
- "\tCSharp/BasicInputs/MudProperties.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CPower.f90 /\n",
- "\tEquipments/RotaryTable/RotaryTableMain.f90 /\n",
- "\tCSharp/Equipments/MudPathFinding/CManifolds.f90 /\n",
- "\tCSharp/Problems/CBopProblems.f90 /\n",
- "\tCSharp/DownHole/DownHole.f90 /\n",
- "\tCSharp/Problems/CHoistingProblems.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CHoisting.f90 /\n",
- "\tEquipments/Drawworks/DrawworksMain.f90 /\n",
- "\tCSharp/Problems/CLostProblems.f90 /\n",
- "\tCSharp/Problems/CBitProblems.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CBopStack.f90 /\n",
- "\tEquipments/BopStack/ChokeLineMain.f90 /\n",
- "\tEquipments/Pumps/PumpsMain.f90 /\n",
- "\tEquipments/BopStack/AnnularMain.f90 /\n",
- "\tCSharp/BasicInputs/WellProfile/CPathGeneration.f90 /\n",
- "\tCSharp/BasicInputs/Geology/CReservoir.f90 /\n",
- "\tCSharp/BasicInputs/Bha/CStringConfiguration.f90 /\n",
- "\tEquipments/BopStack/PipeRams2Main.f90 /\n",
- "\tEquipments/BopStack/BlindRamsMain.f90 /\n",
- "\tCSharp/Problems/CKickProblems.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/Permissions.f90 /\n",
- "\tCSharp/BasicInputs/Geology/CFormation.f90 /\n",
- "\tEquipments/BopStack/KillLineMain.f90 /\n",
- "\tCSharp/Problems/CGaugesProblems.f90 /\n",
- "\tCSharp/BasicInputs/WellProfile/CCasingLinerChoke.f90 /\n",
- "\tCSharp/BasicInputs/Geology/CShoe.f90 /\n",
- "\tCSharp/Problems/CPumpProblems.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CDataDisplayConsole.f90 /\n",
- "\tCSharp/OperationScenarios/SoftwareInputs.f90 /\n",
- "\tTorqueDrag/TD_ReadDataSubroutines/TD_DrillStemReadData.f90 /\n",
- "\tEquipments/Pumps/Pump_OffMode_Solver.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_DropArea/TD_ForceDownDRot.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_DropArea/TD_ForceDownD.f90 /\n",
- "\tFluidFlow/kick/Formation_Information.f90 /\n",
- "\tTorqueDrag/TD_DrillingSubs/TD_WellElementsConfiguration.f90 /\n",
- "\tEquipments/MudSystem/Elements_Creation.f90 /\n",
- "\tEquipments/Drawworks/Drawworks_StartUp.f90 /\n",
- "\tTorqueDrag/TD_ReadDataSubroutines/TD_PipePropertiesReadData.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_CombinedMotionData.f90 /\n",
- "\tTorqueDrag/TD_DrillingSubs/TVD_Calculator.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_StraightArea/TD_ForceUpSRot.f90 /\n",
- "\tRop/Bit_Specification.f90 /\n",
- "\tEquipments/Pumps/Pump3_MainSolver.f90 /\n",
- "\tEquipments/MudSystem/Kick_Expansion_and_Contraction.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_ForceCalculation.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_BuildArea/TD_ForceDownB.f90 /\n",
- "\tEquipments/Pumps/Pumps_TotalSolver.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_StrainCalculation.f90 /\n",
- "\tFluidFlow/Flow_Startup.f90 /\n",
- "\tEquipments/DrillingConsole_ScrLEDs.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_ViscousDragForce/TD_ViscousDragForce.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_StraightArea/TD_ForceUpS.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_StraightArea/TD_ForceDownS.f90 /\n",
- "\tEquipments/RotaryTable/RTable_StartUp.f90 /\n",
- "\tEquipments/MudSystem/Utube2_and_Trip_In.f90 /\n",
- "\tEquipments/MudSystem/Kick_Migration.f90 /\n",
- "\tTorqueDrag/TD_ReadDataSubroutines/TD_ForceReadData.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_StaticHookLoadCalculation.f90 /\n",
- "\tEquipments/MudSystem/Pump_and_Trip_In.f90 /\n",
- "\tEquipments/MudSystem/Deallocate_Normal_Circulation.f90 /\n",
- "\tEquipments/RotaryTable/RTable_OnModeSolver.f90 /\n",
- "\tEquipments/Pumps/Pump_OnMode_Solver.f90 /\n",
- "\tTorqueDrag/TD_ReadDataSubroutines/TD_WellElementsReadData.f90 /\n",
- "\tTorqueDrag/TD_ReadDataSubroutines/TD_MudPropertiesReadData.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_DropArea/TD_ForceUpDRot.f90 /\n",
- "\tEquipments/TopDrive/TopDrive_StartUp.f90 /\n",
- "\tEquipments/MudSystem/FillingWell_By_BellNipple.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_BuildArea/TD_ForceUpBRot.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_TorqueCalculation.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_BuildArea/TD_ForceDownBRot.f90 /\n",
- "\tEquipments/Drawworks/Drawworks_MainSolver.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_DropArea/TD_ForceUpD.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_BuildArea/TD_ForceUpB.f90 /\n",
- "\tEquipments/RotaryTable/RTable_OffModeSolver.f90 /\n",
- "\tTorqueDrag/TD_StartUp/TD_DrillStemStartUp.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_StraightArea/TD_ForceDownSRot.f90 /\n",
- "\tRop/JetImpactForce.f90 /\n",
- "\tTorqueDrag/TD_ReadDataSubroutines/TD_WellReadData.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_BouyancyFactor.f90 /\n",
- "\tFluidFlow/Frictional_Press_Drop_Calc.f90 /\n",
- "\tEquipments/TopDrive/TopDrive_Outputs.f90 /\n",
- "\tEquipments/Drawworks/DWFixModeMotion.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CBopControlPanel.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/UnitySignals.f90 /\n",
- "\tCSharp/BasicInputs/RigSpecifications/CPumps.f90 /\n",
- "\tCSharp/Equipments/ControlPanels/CChokeManifold.f90 /\n",
- "\tCSharp/Equipments/Tanks/CTanks.f90 /\n",
- "\tCSharp/Warnings/CWarnings.f90 /\n",
- "\tTorqueDrag/TD_DrillingSubs/TD_BOPDiamCalculation.f90 /\n",
- "\tEquipments/Drawworks/Drawworks_Direction.f90 /\n",
- "\tEquipments/RotaryTable/RTable_Outputs.f90 /\n",
- "\tEquipments/Drawworks/DWMalfunction_MotorFailure.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_WeightOnBitCalculation.f90 /\n",
- "\tFluidFlow/String_Property_Calculator.f90 /\n",
- "\tFluidFlow/Annulus_Property_Calculator.f90 /\n",
- "\tEquipments/MudSystem/Trip_Out_andPump.f90 /\n",
- "\tEquipments/MudSystem/Utube1_and_Trip_In.f90 /\n",
- "\tEquipments/Pumps/Pump2_MainSolver.f90 /\n",
- "\tEquipments/Pumps/Pump1_MainSolver.f90 /\n",
- "\tFluidFlow/Utube.f90 /\n",
- "\tEquipments/BopStack/BOP.f90 /\n",
- "\tEquipments/BopStack/SHEAR_RAM.f90 /\n",
- "\tEquipments/BopStack/PIPE_RAM2.f90 /\n",
- "\tEquipments/BopStack/LOSS_INPUTS.f90 /\n",
- "\tEquipments/BopStack/ANNULAR.f90 /\n",
- "\tEquipments/BopStack/CHOKE_LINE.f90 /\n",
- "\tEquipments/BopStack/KILL_LINE.f90 /\n",
- "\tEquipments/BopStack/PIPE_RAM1.f90 /\n",
- "\tEquipments/BopStack/BOPstartup.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/Notofications.f90 /\n",
- "\tTorqueDrag/TD_StartUp/TD_StartUp.f90 /\n",
- "\tTorqueDrag/TD_Forces/TD_HookLoadCalculation.f90 /\n",
- "\tEquipments/TopDrive/TopDrive_Inputs.f90 /\n",
- "\tEquipments/TopDrive/TopDrive_Solver.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/Notifications.f90 /\n",
- "\tTorqueDrag/TorqueDragMain.f90 /\n",
- "\tTorqueDrag/TD_DrillingSubs/MeshGeneration_FluidModule.f90 /\n",
- "\tEquipments/Pumps/Pumps_StartUp.f90 /\n",
- "\tEquipments/ChokeControl/CHOKE.f90 /\n",
- "\tEquipments/ChokeControl/AirPump_Choke_Subs.f90 /\n",
- "\tEquipments/MudSystem/MudSystemStartup.f90 /\n",
- "\tEquipments/TopDrive/TopDriveMain.f90 /\n",
- "\tEquipments/MudSystem/MudSystem.f90 /\n",
- "\tRop/ROP_MainCalculation.f90 /\n",
- "\tEquipments/Drawworks/Drawworks_Outputs.f90 /\n",
- "\tEquipments/RotaryTable/RTable_Inputs.f90 /\n",
- "\tEquipments/TopDrive/TopDrive_OffMode.f90 /\n",
- "\tEquipments/TopDrive/TopDrive_MainSolver.f90 /\n",
- "\tCSharp/OperationScenarios/Common/OperationScenarios.f90 /\n",
- "\tEquipments/ChokeControl/ChokeControlMain.f90 /\n",
- "\tEquipments/ChokeControl/ChokeStartup.f90 /\n",
- "\tEquipments/MudSystem/MudSystemMain.f90 /\n",
- "\tEquipments/Pumps/Pumps_Inputs.f90 /\n",
- "\tEquipments/Pumps/Pumps_Outputs.f90 /\n",
- "\tFluidFlow/Annulus_and_Openhole_Pressure_Distribution.f90 /\n",
- "\tTorqueDrag/TD_DrillingSubs/TD_WellGeoConfiguration.f90 /\n",
- "\tEquipments/RotaryTable/RTable_MainSolver.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CSlipsEnum.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CUnlatchLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CTdsTorqueWrenchLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/CInstallMudBucketPermission.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/CFillupHeadPermission.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/COpenKellyCockLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CTdsPowerLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CSwingLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/Enums/CTdsElevatorModesEnum.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CTdsSpineEnum.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/CSwingTiltPermission.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/CIrSafetyValvePermission.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/CSwingOffPermission.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CCloseSafetyValveLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CMouseHoleEnum.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CFlowPipeDisconnectEnum.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CCloseKellyCockLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/Enums/CElevatorConnectionEnum.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CIrSafetyValveLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CFlowKellyDisconnectEnum.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/COpenSafetyValveLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CTdsBackupClamp.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CTdsTongEnum.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CElevatorEnum.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CTongNotification.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CSafetyValveEnum.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/CRemoveMudBucketPermission.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/CInstallFillupHeadPermission.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CSwingEnum.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CKellyEnum.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/CSwingDrillPermission.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/CIrIbopPermission.f90 /\n",
- "\tCSharp/OperationScenarios/Permissions/CRemoveFillupHeadPermission.f90 /\n",
- "\tCSharp/OperationScenarios/Common/COperationScenariosSettings.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CTdsSwingEnum.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CIbopEnum.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CFillMouseHoleLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/UnitySignals/CTongEnum.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CIrIBopLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CTdsIbopLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CLatchLedNotification.f90 /\n",
- "\tCSharp/OperationScenarios/Notifications/CSlipsNotification.f90 /\n",
- "\tTorqueDrag/TD_DrillingSubs/TD_DrillStemConfiguration.f90 /\n",
- "\tEquipments/MudSystem/Kick_Influx.f90 /\n",
- "\tEquipments/MudSystem/Disconnecting_Pipe.f90 /\n",
- "\tEquipments/Drawworks/Drawworks_Solver_OffMode.f90 /\n",
- "\tTorqueDrag/TD_DrillingSubs/TD_RemoveComponents.f90 /\n",
- "\tFluidFlow/Horizontal_and_String_Pressure_Distribution.f90 /\n",
- "\tEquipments/Drawworks/Drawworks_INPUTS.f90 /\n",
- "\tTorqueDrag/TD_DrillingSubs/TD_AddComponents.f90 /\n",
- "\tEquipments/Drawworks/Drawworks_Solver.f90 /\n",
- "\tEquipments/Pumps/Pumps_MainSolver.f90 /\n",
- "\tCSharp/OperationScenarios/Common/COperationScenariosMain.f90 /\n",
- "\tEquipments/MudSystem/Circulation_Code_Select.f90 /\n",
- "\tTorqueDrag/TD_DrillingSubs/TD_StringConnectionModes.f90 /\n",
- "\tFluidFlow/kick/Gas_Kick_Calculator.f90 /\n",
- "\tSimulator.f90 /\n",
- "\tTorqueDrag/TD_MainCalculations.f90 /\n",
- "\tFluidFlow/Well_Pressure_Data_Transfer.f90 /\n",
- "\tSimulationCore2.f90 /\n",
- "\tEquipments/MudSystem/Plot_Final_Mud_Elements.f90 /\n",
- "\tFluidFlow/Fluid_Flow_Solver.f90 /\n"
- ]
- }
- ],
- "source": [
- "import re\n",
- "current_dir = 'C:\\\\Projects\\\\VSIM\\\\SimulationCore2\\\\'\n",
- "target_dir = 'x64\\\\Debug\\\\'\n",
- "depfilename = 'x64\\Debug\\SimulationCore2.dep'\n",
- "depfile = open(depfilename,'r')\n",
- "content = depfile.read()\n",
- "deptexts = content.split('\\n\\n')\n",
- "dependencies = {}\n",
- "moddeps = {}\n",
- "external_deps = []\n",
- "deptexts = [dt for dt in deptexts if dt!='']\n",
- "\n",
- "for depno,dept in enumerate(deptexts):\n",
- " headt,tailt = dept.split(': \\\\')\n",
- " headt,tailt = headt.strip(),tailt.strip()\n",
- " if headt.endswith('.mod'):\n",
- " ffile = tailt.replace(current_dir,'')\n",
- " mfiles = re.split(r' | \\\\\\n',headt)\n",
- " for mfile in mfiles:\n",
- " moddeps[mfile.strip()] = ffile\n",
- "for depno,dept in enumerate(deptexts):\n",
- " headt,tailt = dept.split(': \\\\')\n",
- " headt,tailt = headt.strip(),tailt.strip()\n",
- " if headt.endswith('.obj'):\n",
- " tails = re.split(r' \\\\\\n| ',tailt)\n",
- " tails = [t for t in tails if t!='']\n",
- " head = tails[0].replace(current_dir,'')\n",
- " deps = []\n",
- " for t in tails[1:]:\n",
- " mfile = t.replace(target_dir,'')\n",
- " # if 'json_' in mfile:\n",
- " # continue\n",
- " if mfile.strip() == '':\n",
- " print(f\"!!! t = '{t}', \")\n",
- " \n",
- " if mfile in moddeps:\n",
- " deps.append(moddeps[mfile])\n",
- " else:\n",
- " external_deps.append(mfile)\n",
- " # print(f\"{mfile} is not located\")\n",
- " if head in deps:\n",
- " deps.remove(head)\n",
- " # print(f\"making deps for {head}\")\n",
- " dependencies[head]=deps\n",
- "\n",
- "f = open('dependencies.txt','w')\n",
- "f.write(str(dependencies))\n",
- "f.close()\n",
- "\n",
- "from graphlib import TopologicalSorter\n",
- "ts = TopologicalSorter(dependencies)\n",
- "files = tuple(ts.static_order())\n",
- "for file in files:\n",
- " print(\"\\t\"+file.replace(\"\\\\\",\"/\")+\" /\")"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 12,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "CSharp/Equipments/ControlPanels/CBopControlPanel.f90\n",
- "CSharp/Equipments/ControlPanels/CChokeControlPanel.f90\n",
- "CSharp/Equipments/ControlPanels/CChokeManifold.f90\n",
- "CSharp/Equipments/ControlPanels/CDataDisplayConsole.f90\n",
- "CSharp/Equipments/ControlPanels/CDrillingConsole.f90\n",
- "CSharp/Equipments/ControlPanels/CEquipmentsConstants.f90\n",
- "CSharp/Equipments/ControlPanels/CHook.f90\n",
- "CSharp/Equipments/ControlPanels/CHookActions.f90\n",
- "CSharp/Equipments/ControlPanels/CStandPipeManifold.f90\n",
- "CSharp/Equipments/ControlPanels/CTopDrivePanel.f90\n"
- ]
- }
- ],
- "source": [
- "dir = 'CSharp/Equipments/ControlPanels'\n",
- "import os\n",
- "os.listdir(dir)\n",
- "for f in os.listdir(dir):\n",
- " if f.endswith('Variables.f90'):\n",
- " continue\n",
- " print(dir+'/'+f)"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 54,
- "metadata": {},
- "outputs": [
- {
- "data": {
- "text/plain": [
- "['FluidFlow\\\\Well_Pressure_Data_Transfer.f90',\n",
- " 'FluidFlow\\\\Well_Pressure_Data_Transfer.f90',\n",
- " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\MudProperties.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsole.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CLog1.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CError.f90',\n",
- " 'CSharp\\\\Warnings\\\\CWarnings.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Unity\\\\CUnityOutputs.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumps.f90',\n",
- " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CArrangement.f90',\n",
- " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CStack.f90',\n",
- " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CManifolds.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
- " 'Rop\\\\sROP_Variables.f90',\n",
- " 'Rop\\\\sROP_Other_Variables.f90',\n",
- " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
- " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
- " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
- " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
- " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
- " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
- " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
- " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
- " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
- " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
- " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
- " 'Simulation\\\\Constants.f90',\n",
- " 'Simulation\\\\SimulationVariables.f90',\n",
- " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
- " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
- " 'Equipments\\\\MudSystem\\\\MudSystem.f90',\n",
- " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90',\n",
- " 'FluidFlow\\\\kick\\\\Gas_Kick_Calculator.f90',\n",
- " 'FluidFlow\\\\Well_Pressure_Data_Transfer.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CError.f90',\n",
- " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
- " 'Rop\\\\sROP_Variables.f90',\n",
- " 'Rop\\\\sROP_Other_Variables.f90',\n",
- " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
- " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
- " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
- " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
- " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
- " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
- " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
- " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
- " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
- " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
- " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
- " 'Simulation\\\\Constants.f90',\n",
- " 'Simulation\\\\SimulationVariables.f90',\n",
- " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
- " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
- " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
- " 'Rop\\\\sROP_Variables.f90',\n",
- " 'Rop\\\\sROP_Other_Variables.f90',\n",
- " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90',\n",
- " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
- " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
- " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
- " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
- " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
- " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
- " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
- " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
- " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
- " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
- " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
- " 'Simulation\\\\Constants.f90',\n",
- " 'Simulation\\\\SimulationVariables.f90',\n",
- " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
- " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
- " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
- " 'Rop\\\\sROP_Variables.f90',\n",
- " 'Rop\\\\sROP_Other_Variables.f90',\n",
- " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90',\n",
- " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
- " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
- " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
- " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
- " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
- " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
- " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
- " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
- " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
- " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
- " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
- " 'Simulation\\\\Constants.f90',\n",
- " 'Simulation\\\\SimulationVariables.f90',\n",
- " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
- " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
- " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CError.f90',\n",
- " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
- " 'Rop\\\\sROP_Variables.f90',\n",
- " 'Rop\\\\sROP_Other_Variables.f90',\n",
- " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
- " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
- " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
- " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
- " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
- " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
- " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
- " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
- " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
- " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
- " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
- " 'Simulation\\\\Constants.f90',\n",
- " 'Simulation\\\\SimulationVariables.f90',\n",
- " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
- " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
- " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90',\n",
- " 'FluidFlow\\\\kick\\\\Kick_VARIABLES.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\MudProperties.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsole.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CLog1.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CError.f90',\n",
- " 'CSharp\\\\Warnings\\\\CWarnings.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Unity\\\\CUnityOutputs.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumps.f90',\n",
- " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CArrangement.f90',\n",
- " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CStack.f90',\n",
- " 'CSharp\\\\Equipments\\\\MudPathFinding\\\\CManifolds.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellGeometry.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_WellElements.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_StringConnectionData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_GeneralData.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\TD_DrillStem.f90',\n",
- " 'TorqueDrag\\\\TD_Modules\\\\GeoElements_FluidModule.f90',\n",
- " 'Rop\\\\sROP_Variables.f90',\n",
- " 'Rop\\\\sROP_Other_Variables.f90',\n",
- " 'FluidFlow\\\\Pressure_Display_VARIABLES.f90',\n",
- " 'FluidFlow\\\\Flow_Startup_VARIABLES.f90',\n",
- " 'Equipments\\\\Drawworks\\\\Drawworks_VARIABLES.f90',\n",
- " 'Equipments\\\\ChokeControl\\\\CHOKE_VARIABLES.f90',\n",
- " 'Equipments\\\\TopDrive\\\\TopDrive_VARIABLES.f90',\n",
- " 'Equipments\\\\RotaryTable\\\\RTable_VARIABLES.f90',\n",
- " 'Equipments\\\\Pumps\\\\Pumps_VARIABLES.f90',\n",
- " 'Equipments\\\\BopStack\\\\VARIABLES.f90',\n",
- " 'CSharp\\\\Warnings\\\\CWarningsVariables.f90',\n",
- " 'CSharp\\\\StudentStation\\\\CStudentStationVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CRotaryProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CPumpProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\COtherProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CMudTreatmentProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CLostProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CKickProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CHoistingProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CGaugesProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CDrillStemProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CChokeProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CBopProblemsVariables.f90',\n",
- " 'CSharp\\\\Problems\\\\CProblemDifinition.f90',\n",
- " 'CSharp\\\\Problems\\\\CBitProblemsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\SoftwareInputsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\UnitySignals\\\\UnitySignalsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Permissions\\\\PermissionsVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Notifications\\\\NotificationVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\Tanks\\\\CTanksVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\DrillWatch\\\\CDrillWatchVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CTopDrivePanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CStandPipeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CHookVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDrillingConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CDataDisplayConsoleVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeManifoldVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CChokeControlPanelVariables.f90',\n",
- " 'CSharp\\\\Equipments\\\\ControlPanels\\\\CBopControlPanelVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\CMudPropertiesVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CWellSurveyDataVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CPathGenerationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\WellProfile\\\\CCasingLinerChokeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CRigSizeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPumpsVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CPowerVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CHoistingVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CBopStackVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\RigSpecifications\\\\CAccumulatorVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CShoeVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CReservoirVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Geology\\\\CFormationVariables.f90',\n",
- " 'CSharp\\\\BasicInputs\\\\Bha\\\\CStringConfigurationVariables.f90',\n",
- " 'CSharp\\\\OperationScenarios\\\\Common\\\\COperationScenariosVariables.f90',\n",
- " 'Simulation\\\\Constants.f90',\n",
- " 'Simulation\\\\SimulationVariables.f90',\n",
- " 'CSharp\\\\Common\\\\CIActionReference.f90',\n",
- " 'CSharp\\\\ErrorLog\\\\CLog4.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleTypes.f90',\n",
- " 'CSharp\\\\DownHole\\\\CDownHoleVariables.f90',\n",
- " 'Equipments\\\\MudSystem\\\\MudSystem_Variables.f90',\n",
- " 'Equipments\\\\MudSystem\\\\MudSystem.f90',\n",
- " 'FluidFlow\\\\Pressure_Distribution_VARIABLES.f90']"
- ]
- },
- "execution_count": 54,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "dependencies['FluidFlow\\\\Well_Pressure_Data_Transfer.f90']"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 51,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "1-(0, 1)\n",
- "1-(1, 3)\n",
- "1-(2, 3)\n",
- "1-(3, 5)\n",
- "2-(0, 1)\n",
- "2-(1, 3)\n",
- "2-(2, 3)\n",
- "2-(3, 5)\n"
- ]
- }
- ],
- "source": [
- "l = [1,3,3,5]\n",
- "for a in enumerate(l):\n",
- " print(f\"1-{a}\")\n",
- "for a in enumerate(l):\n",
- " print(f\"2-{a}\")"
- ]
- },
- {
- "attachments": {},
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "# FromJson"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 4,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "\t\tcall json%get(p,'NumberOfBottels',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%NumberOfBottels)\n",
- "\t\tcall json%get(p,'AccumulatorSystemSize',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%AccumulatorSystemSize)\n",
- "\t\tcall json%get(p,'OilTankVolume',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%OilTankVolume)\n",
- "\t\tcall json%get(p,'PrechargePressure',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%PrechargePressure)\n",
- "\t\tcall json%get(p,'AccumulatorMinimumOperatingPressure',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%AccumulatorMinimumOperatingPressure)\n",
- "\t\tcall json%get(p,'ElectricPumpOutput',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%ElectricPumpOutput)\n",
- "\t\tcall json%get(p,'StartPressure',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%StartPressure)\n",
- "\t\tcall json%get(p,'StopPressure',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%StopPressure)\n",
- "\t\tcall json%get(p,'AirPlungerPumpOutput',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%AirPlungerPumpOutput)\n",
- "\t\tcall json%get(p,'StartPressure2',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%StartPressure2)\n",
- "\t\tcall json%get(p,'StopPressure2',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%Accumulator%StopPressure2)\n"
- ]
- }
- ],
- "source": [
- "pattern=\"\"\"\t\tcall json%get(p,'@@@',pval)\n",
- "\t\tcall json%get(pval,data%Configuration%BopStack%@@@)\"\"\"\n",
- "\n",
- "input = open(\"Text1.txt\")\n",
- "lines = input.readlines()\n",
- "for line in lines:\n",
- "\tname = line.split(\"::\")[-1].strip()\n",
- "\tnewline = pattern.replace(\"@@@\",name)\n",
- "\tprint(newline)\n"
- ]
- },
- {
- "attachments": {},
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "# ToJson"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 1,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "{\"ComponentType\":0,\n",
- "\"NumberOfJoint\":0,\n",
- "\"LengthPerJoint\":0,\n",
- "\"NominalOd\":0,\n",
- "\"NominalId\":0,\n",
- "\"WeightPerLength\":0,\n",
- "\"ComponentLength\":0,\n",
- "\"NominalToolJointOd\":0,\n",
- "\"Grade\":0,\n",
- "}\n"
- ]
- }
- ],
- "source": [
- "#Artifical JSon\n",
- "input = open(\"Text1.txt\")\n",
- "output = \"{\"\n",
- "lines = input.readlines()\n",
- "for line in lines:\n",
- " name = line.split(\"::\")[-1].strip()\n",
- " type = line.split(\"::\")[0].strip()\n",
- " output += f\"\\\"{name}\\\":0,\\n\" \n",
- " # name = line.split(\"%\")[-1][:-1]\n",
- " # print(name)\n",
- "print(output+\"}\")\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 6,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "call json%add(p,\"Depth\",data%EquipmentControl%DrillingWatch%Depth)\n",
- "call json%add(p,\"BitPosition\",data%EquipmentControl%DrillingWatch%BitPosition)\n",
- "call json%add(p,\"HookLoad\",data%EquipmentControl%DrillingWatch%HookLoad)\n",
- "call json%add(p,\"WeightOnBit\",data%EquipmentControl%DrillingWatch%WeightOnBit)\n",
- "call json%add(p,\"RPM\",data%EquipmentControl%DrillingWatch%RPM)\n",
- "call json%add(p,\"ROP\",data%EquipmentControl%DrillingWatch%ROP)\n",
- "call json%add(p,\"Torque\",data%EquipmentControl%DrillingWatch%Torque)\n",
- "call json%add(p,\"PumpPressure\",data%EquipmentControl%DrillingWatch%PumpPressure)\n",
- "call json%add(p,\"SPM1\",data%EquipmentControl%DrillingWatch%SPM1)\n",
- "call json%add(p,\"SPM2\",data%EquipmentControl%DrillingWatch%SPM2)\n",
- "call json%add(p,\"CasingPressure\",data%EquipmentControl%DrillingWatch%CasingPressure)\n",
- "call json%add(p,\"PercentFlow\",data%EquipmentControl%DrillingWatch%PercentFlow)\n",
- "call json%add(p,\"PitGainLose\",data%EquipmentControl%DrillingWatch%PitGainLose)\n",
- "call json%add(p,\"PitVolume\",data%EquipmentControl%DrillingWatch%PitVolume)\n",
- "call json%add(p,\"KillMudVolume\",data%EquipmentControl%DrillingWatch%KillMudVolume)\n",
- "call json%add(p,\"TripTankVolume\",data%EquipmentControl%DrillingWatch%TripTankVolume)\n",
- "call json%add(p,\"MudWeightIn\",data%EquipmentControl%DrillingWatch%MudWeightIn)\n",
- "call json%add(p,\"FillVolume\",data%EquipmentControl%DrillingWatch%FillVolume)\n",
- "call json%add(p,\"MudWeightOut\",data%EquipmentControl%DrillingWatch%MudWeightOut)\n"
- ]
- }
- ],
- "source": [
- "precode = \"\"\"call json%add(p,\"\",data%EquipmentControl%DrillingWatch%\"\"\"\n",
- "input = open(\"Text1.txt\")\n",
- "lines = input.readlines()\n",
- "for line in lines:\n",
- " name = line.split(\"::\")[-1].strip()\n",
- " icoute = precode.index(\"\\\"\")+1\n",
- " # name = line.split(\"%\")[-1][:-1]\n",
- " # print(name)\n",
- " newline = precode[:icoute]+name+precode[icoute:]+name+\")\"\n",
- " print(newline)\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 2,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "call BopControlPanelToJson(p)\n",
- "call ChokeControlPanelToJson(p)\n",
- "call ChokeManifoldToJson(p)\n",
- "call DataDisplayConsoleToJson(p)\n",
- "call DrillingConsoleToJson(p)\n",
- "call HookToJson(p)\n",
- "call StandPipeManifoldToJson(p)\n",
- "call TopDrivePanelToJson(p)\n",
- "call ! Drill WatchToJson(p)\n",
- "call DrillingWatchToJson(p)\n",
- "call TankToJson(p)\n"
- ]
- }
- ],
- "source": [
- "precode = \"\"\"call \"\"\"\n",
- "postcode = \"\"\"ToJson(p)\"\"\"\n",
- "input = open(\"Text1.txt\")\n",
- "lines = input.readlines()\n",
- "for line in lines:\n",
- " name = line.split(\"::\")[-1].strip()\n",
- " # icoute = precode.index(\"\\\"\")+1\n",
- " # name = line.split(\"::\")[-1][:-1].strip()\n",
- " # print(name)\n",
- " newline = precode+name+postcode\n",
- " print(newline)\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 3,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "\tGeo/GeoMain.f90 \\\n",
- "\n"
- ]
- }
- ],
- "source": [
- "##Replace space with _ in filenames and list them for put them in makefile\n",
- "import os\n",
- "dir = 'Geo'\n",
- "files = os.listdir(dir)\n",
- "fstring = ''\n",
- "for f in files:\n",
- " if f.endswith('90'):\n",
- " newf = f.replace(' ','_')\n",
- " os.rename(os.path.join(dir,f),os.path.join(dir,newf))\n",
- " if newf.lower().endswith('variables.f90'):\n",
- " fstring = '\\t'+os.path.join(dir,newf).replace('\\\\','/') +' \\\\\\n' + fstring\n",
- " else:\n",
- " fstring = fstring + '\\t'+os.path.join(dir,newf).replace('\\\\','/') +' \\\\\\n'\n",
- "\n",
- "print(fstring)"
- ]
- },
- {
- "attachments": {},
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Extract variable names from definition lines"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 1,
- "metadata": {},
- "outputs": [],
- "source": [
- "# %pwd\n",
- "lines = input(\"Enter lines:\").split(\" \")\n",
- "lines = [l.strip() for l in lines if len(l.strip())>0]\n",
- "vars = []\n",
- "for l in lines:\n",
- " if '::' in l:\n",
- " vars.append(l.split('::')[1].strip())"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 8,
- "metadata": {},
- "outputs": [
- {
- "data": {
- "text/plain": [
- "'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'"
- ]
- },
- "execution_count": 8,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "import string\n",
- "string.ascii_letters"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 9,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "var: AnnularRegulatorSetControl\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: AirMasterValve\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: ByePassValve\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: AnnularValve\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: UpperRamsValve\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: MiddleRamsValve\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: KillLineValve\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: ChokeLineValve\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: LowerRamsValve\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: ManifoldPressureGauge\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: AirSupplyPressureGauge\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: AccumulatorPressureGauge\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: AnnularPressureGauge\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: AnnularOpenLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: AnnularCloseLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: UpperRamsOpenLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: UpperRamsCloseLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: MiddleRamsOpenLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: MiddleRamsCloseLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: KillLineOpenLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: KillLineCloseLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: ChokeLineOpenLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: ChokeLineCloseLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: LowerRamsOpenLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: LowerRamsCloseLED\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: AnnularStatus\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: UpperRamsStatus\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: MiddleRamsStatus\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n",
- "var: LowerRamsStatus\n",
- "file = .\\CSharp\\Equipments\\ControlPanels\\CBopControlPanelVariables.f90\n",
- "Char before: \n",
- "Char after: \n",
- "\n"
- ]
- }
- ],
- "source": [
- "import os\n",
- "import sys\n",
- "import re\n",
- "dir = '.'\n",
- "varNameChars = string.ascii_letters + '_'\n",
- "log = open(os.path.join(dir,'ReplaceVars.log',),'a')\n",
- "end=False\n",
- "for dir,subdirs,files in os.walk(dir):\n",
- " for filename in files:\n",
- " if filename.lower().endswith('.f90'):\n",
- " # print(filename)\n",
- " file = open(os.path.join(dir,filename))\n",
- " code = file.read()\n",
- " for var in vars:\n",
- " if var not in code:\n",
- " continue\n",
- " occurs = [m.start() for m in re.finditer(var, code)]\n",
- " for occurance in occurs:\n",
- " if code[occurs[0]-1] in varNameChars or code[occurs[0]+len(var)] in varNameChars:\n",
- " continue\n",
- " print(f\"var: {var}\")\n",
- " print(f\"file = {os.path.join(dir,filename)}\")\n",
- " print(f\"Char before: {code[occurs[0]-1]}\")\n",
- " print(f\"Char after: {code[occurs[0]+len(var)]}\")\n",
- " end = True\n",
- " if end:\n",
- " break"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 9,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "State\n",
- "Hoisting\n",
- "OperationScenario\n",
- "notifications\n",
- "permissions\n",
- "unitySignals\n",
- "StudentStation\n",
- "BopStackInput\n",
- "BopStackAcc\n",
- "RamLine\n",
- "AnnularComputational\n",
- "Annular\n",
- "PipeRam1\n",
- "ShearRam\n",
- "PipeRam2\n",
- "ChokeLine\n",
- "KillLine\n",
- "Pumps\n",
- "RAM\n",
- "RAMS\n",
- "Choke\n",
- "AirDrivenPump\n",
- "AirPumpLine\n",
- "CHOOKE\n",
- "Drawworks\n",
- "MudSystem\n",
- "MUD\n",
- "PUMP\n",
- "RTable\n",
- "TDS\n",
- "GasType(3)\n",
- "PressureDisplay\n",
- "ObservationPoint(:)\n",
- "FricPressDrop\n",
- "ROP_Spec\n",
- "ROP_Bit\n",
- "TDGeo\n",
- "F_String(:)\n",
- "F_Counts\n",
- "F_Interval(:)\n",
- "OD_Annulus(4)\n",
- "TD_DrillStem\n",
- "TD_DrillStems\n",
- "TD_String\n",
- "TD_Count\n",
- "G_StringElement\n",
- "TD_Vol\n",
- "TD_General\n",
- "TD_BOP\n",
- "TD_BOPElement(4)\n",
- "TD_StConn\n",
- "TD_Load\n",
- "TD_WellEl\n",
- "TD_Casing\n",
- "data%State%TD_Liner\n",
- "TD_OpenHole\n",
- "TD_ROPHole\n",
- "TD_WellGeneral\n",
- "TD_WellGeo(:)\n",
- "EquipmentControl\n",
- "BopControlPanel\n",
- "ChokeControlPanel\n",
- "ChokeManifold\n",
- "DataDisplayConsole\n",
- "DrillingConsole\n",
- "Hook\n",
- "StandPipeManifold\n",
- "TopDrivePanel\n",
- "DrillingWatch\n",
- "Tank\n",
- "Configuration\n",
- "StringConfiguration\n",
- "Formation\n",
- "Reservoir\n",
- "Shoe\n",
- "Accumulator\n",
- "BopStackSpecification\n",
- "Hoisting\n",
- "Power\n",
- "PumpsSpecification\n",
- "RigSize\n",
- "CasingLinerChoke\n",
- "PathGeneration\n",
- "WellSurveyData\n",
- "MudProperties\n",
- "problems\n",
- "BitProblems\n",
- "BopProblems\n",
- "ChokeProblems\n",
- "DrillStemProblems\n",
- "GaugesProblems\n",
- "HoistingProblems\n",
- "KickProblems\n",
- "LostProblems\n",
- "MudTreatmentProblems\n",
- "OtherProblems\n",
- "PumpProblems\n",
- "RotaryProblems\n"
- ]
- },
- {
- "ename": "IndexError",
- "evalue": "list index out of range",
- "output_type": "error",
- "traceback": [
- "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
- "\u001b[1;31mIndexError\u001b[0m Traceback (most recent call last)",
- "\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",
- "\u001b[1;31mIndexError\u001b[0m: list index out of range"
- ]
- }
- ],
- "source": [
- "f = open(\"hier.txt\")\n",
- "lines = f.readlines()\n",
- "for line in lines[1:]:\n",
- " nsp=0\n",
- " while line[nsp]==' ':\n",
- " nsp+=1\n",
- " splits = line.split(\"::\")\n",
- " print(splits[1].strip())"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 4,
- "metadata": {},
- "outputs": [
- {
- "data": {
- "text/plain": [
- "'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'"
- ]
- },
- "execution_count": 4,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
- "source": [
- "line"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "for fn in modules:\n",
- " f = open(fn)\n",
- " lines = f.readlines()\n",
- " module_filenames = {}\n",
- " used_modules = []\n",
- " mod_count = 0\n",
- " for l in lines:\n",
- " l = l.strip().lower()\n",
- " if l.startswith('module ') and not l.startswith('module procedure '):\n",
- " mod_name = l.split(' ')[1]\n",
- " module_filenames[mod_name] = fn\n",
- " mod_count +=1\n",
- " if l.startswith('use'):\n",
- " used_modules.append(l.split(' ')[1])\n",
- " if mod_count !=1:\n",
- " print(f\"{fn} has {mod_count} modules\")\n",
- " module_filenames,used_modules"
- ]
- }
- ],
- "metadata": {
- "kernelspec": {
- "display_name": "base",
- "language": "python",
- "name": "python3"
- },
- "language_info": {
- "codemirror_mode": {
- "name": "ipython",
- "version": 3
- },
- "file_extension": ".py",
- "mimetype": "text/x-python",
- "name": "python",
- "nbconvert_exporter": "python",
- "pygments_lexer": "ipython3",
- "version": "3.9.12"
- },
- "orig_nbformat": 4,
- "vscode": {
- "interpreter": {
- "hash": "1ef4a26de7183d96d6da1045a38581e0a15b2215d0c1b98c7b273c6e514c6c7e"
- }
- }
- },
- "nbformat": 4,
- "nbformat_minor": 2
- }
|