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.
 
 
 
 
 
 

37 lines
1.9 KiB

  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. ! 1. create new node
  9. call json%create_object(p,'DrillingWatch')
  10. call json%add(p,"Depth",data%Equipments%DrillingWatch%Depth)
  11. call json%add(p,"BitPosition",data%Equipments%DrillingWatch%BitPosition)
  12. call json%add(p,"HookLoad",data%Equipments%DrillingWatch%HookLoad)
  13. call json%add(p,"WeightOnBit",data%Equipments%DrillingWatch%WeightOnBit)
  14. call json%add(p,"RPM",data%Equipments%DrillingWatch%RPM)
  15. call json%add(p,"ROP",data%Equipments%DrillingWatch%ROP)
  16. call json%add(p,"Torque",data%Equipments%DrillingWatch%Torque)
  17. call json%add(p,"PumpPressure",data%Equipments%DrillingWatch%PumpPressure)
  18. call json%add(p,"SPM1",data%Equipments%DrillingWatch%SPM1)
  19. call json%add(p,"SPM2",data%Equipments%DrillingWatch%SPM2)
  20. call json%add(p,"CasingPressure",data%Equipments%DrillingWatch%CasingPressure)
  21. ! call json%add(p,"PercentFlow",50)
  22. call json%add(p,"PercentFlow",data%Equipments%DrillingWatch%PercentFlow)
  23. call json%add(p,"PitGainLose",data%Equipments%DrillingWatch%PitGainLose)
  24. call json%add(p,"PitVolume",data%Equipments%DrillingWatch%PitVolume)
  25. call json%add(p,"KillMudVolume",data%Equipments%DrillingWatch%KillMudVolume)
  26. call json%add(p,"TripTankVolume",data%Equipments%DrillingWatch%TripTankVolume)
  27. call json%add(p,"MudWeightIn",data%Equipments%DrillingWatch%MudWeightIn)
  28. call json%add(p,"FillVolume",data%Equipments%DrillingWatch%FillVolume)
  29. call json%add(p,"MudWeightOut",data%Equipments%DrillingWatch%MudWeightOut)
  30. call json%add(parent,p)
  31. end subroutine
  32. end module DrillingWatchModule