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.

CAccumulator.f90 1.5 KiB

1 year ago
12345678910111213141516171819202122232425262728293031
  1. module CAccumulator
  2. use SimulationVariables
  3. ! use CAccumulatorVariables
  4. use json_module
  5. implicit none
  6. public
  7. contains
  8. subroutine AccumulatorToJson(parent)
  9. type(json_value),pointer :: parent
  10. type(json_core) :: json
  11. type(json_value),pointer :: p
  12. call json%create_object(p,'Accumulator')
  13. call json%add(p,'AccumulatorMinimumOperatingPressure',data%Configuration%Accumulator%AccumulatorMinimumOperatingPressure)
  14. call json%add(p,'AccumulatorSystemSize',data%Configuration%Accumulator%AccumulatorSystemSize)
  15. call json%add(p,'AirPlungerPumpOutput',data%Configuration%Accumulator%AirPlungerPumpOutput)
  16. call json%add(p,'ElectricPumpOutput',data%Configuration%Accumulator%ElectricPumpOutput)
  17. call json%add(p,'NumberOfBottels',data%Configuration%Accumulator%NumberOfBottels)
  18. call json%add(p,'OilTankVolume',data%Configuration%Accumulator%OilTankVolume)
  19. call json%add(p,'PrechargePressure',data%Configuration%Accumulator%PrechargePressure)
  20. call json%add(p,'StartPressure',data%Configuration%Accumulator%StartPressure)
  21. call json%add(p,'StartPressure2',data%Configuration%Accumulator%StartPressure2)
  22. call json%add(p,'StopPressure',data%Configuration%Accumulator%StopPressure)
  23. call json%add(p,'StopPressure2',data%Configuration%Accumulator%StopPressure2)
  24. call json%add(parent,p)
  25. end subroutine
  26. end module CAccumulator