Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DrillWatch.f90 1.9 KiB

12345678910111213141516171819202122232425262728293031323334353637
  1. module DrillingWatchModule
  2. use SimulationVariables
  3. contains
  4. subroutine DrillingWatchToJson(parent)
  5. type(json_value),pointer :: parent
  6. type(json_core) :: json
  7. type(json_value),pointer :: p
  8. integer :: i
  9. ! 1. create new node
  10. call json%create_object(p,'DrillingWatch')
  11. call json%add(p,"Depth",data%EquipmentControl%DrillingWatch%Depth)
  12. call json%add(p,"BitPosition",data%EquipmentControl%DrillingWatch%BitPosition)
  13. call json%add(p,"HookLoad",data%EquipmentControl%DrillingWatch%HookLoad)
  14. call json%add(p,"WeightOnBit",data%EquipmentControl%DrillingWatch%WeightOnBit)
  15. call json%add(p,"RPM",data%EquipmentControl%DrillingWatch%RPM)
  16. call json%add(p,"ROP",data%EquipmentControl%DrillingWatch%ROP)
  17. call json%add(p,"Torque",data%EquipmentControl%DrillingWatch%Torque)
  18. call json%add(p,"PumpPressure",data%EquipmentControl%DrillingWatch%PumpPressure)
  19. call json%add(p,"SPM1",data%EquipmentControl%DrillingWatch%SPM1)
  20. call json%add(p,"SPM2",data%EquipmentControl%DrillingWatch%SPM2)
  21. call json%add(p,"CasingPressure",data%EquipmentControl%DrillingWatch%CasingPressure)
  22. call json%add(p,"PercentFlow",data%EquipmentControl%DrillingWatch%PercentFlow)
  23. call json%add(p,"PitGainLose",data%EquipmentControl%DrillingWatch%PitGainLose)
  24. call json%add(p,"PitVolume",data%EquipmentControl%DrillingWatch%PitVolume)
  25. call json%add(p,"KillMudVolume",data%EquipmentControl%DrillingWatch%KillMudVolume)
  26. call json%add(p,"TripTankVolume",data%EquipmentControl%DrillingWatch%TripTankVolume)
  27. call json%add(p,"MudWeightIn",data%EquipmentControl%DrillingWatch%MudWeightIn)
  28. call json%add(p,"FillVolume",data%EquipmentControl%DrillingWatch%FillVolume)
  29. call json%add(p,"MudWeightOut",data%EquipmentControl%DrillingWatch%MudWeightOut)
  30. call json%add(parent,p)
  31. end subroutine
  32. end module DrillingWatchModule