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.

CHoisting.f90 1.2 KiB

1 year ago
123456789101112131415161718192021222324252627282930
  1. module CHoisting
  2. use SimulationVariables
  3. use json_module
  4. implicit none
  5. public
  6. contains
  7. subroutine HoistingToJson(parent)
  8. type(json_value),pointer :: parent
  9. type(json_core) :: json
  10. type(json_value),pointer :: p
  11. ! 1. create new node
  12. call json%create_object(p,'Hoisting')
  13. ! 2. add member of data type to new node
  14. ! call StringConfigurationToJson(p)
  15. ! call FormationToJson(p)
  16. call json%add(p,"DrillingLineBreakingLoadAbrasiveness",data%Configuration%Hoisting%DrillingLineBreakingLoad)
  17. call json%add(p,"DriveTypeAbrasiveness",data%Configuration%Hoisting%DriveType)
  18. call json%add(p,"KellyWeightAbrasiveness",data%Configuration%Hoisting%KellyWeight)
  19. call json%add(p,"NumberOfLineAbrasiveness",data%Configuration%Hoisting%NumberOfLine)
  20. call json%add(p,"TopDriveWeightAbrasiveness",data%Configuration%Hoisting%TopDriveWeight)
  21. call json%add(p,"TravelingBlockWeightAbrasiveness",data%Configuration%Hoisting%TravelingBlockWeight)
  22. ! 3. add new node to parent
  23. call json%add(parent,p)
  24. end subroutine
  25. end module CHoisting