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.
 
 
 
 
 
 

41 lines
1.3 KiB

  1. module CChokeManifold
  2. ! use CChokeManifoldVariables
  3. use SimulationVariables
  4. use CManifolds
  5. use CLog2
  6. implicit none
  7. public
  8. contains
  9. subroutine SetHydraulicChock1(v)
  10. implicit none
  11. integer, intent(in) :: v
  12. data%EquipmentControl%ChokeManifold%HydraulicChock1 = v
  13. if(data%EquipmentControl%ChokeManifold%HyChock1OnProblem) then
  14. call ChangeValve(33, .true.)
  15. else
  16. if(v == 100) then
  17. if(Manifold%Valve(33)%Status) call ChangeValve(33, .false.)
  18. else
  19. if(.not.Manifold%Valve(33)%Status) call ChangeValve(33, .true.)
  20. endif
  21. endif
  22. !WRITE (*,*) ' valve 33 ', Valve(33)%Status, ' arg ', v
  23. end subroutine
  24. subroutine SetHydraulicChock2(v)
  25. implicit none
  26. integer, intent(in) :: v
  27. data%EquipmentControl%ChokeManifold%HydraulicChock2 = v
  28. if(data%EquipmentControl%ChokeManifold%HyChock2OnProblem) then
  29. call ChangeValve(34, .true.)
  30. else
  31. if(v==100) then
  32. if(Manifold%Valve(34)%Status) call ChangeValve(34, .false.)
  33. else
  34. if(.not.Manifold%Valve(34)%Status) call ChangeValve(34, .true.)
  35. endif
  36. endif
  37. !WRITE (*,*) ' valve 34 ', Valve(34)%Status, ' arg ', v
  38. end subroutine
  39. end module CChokeManifold