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.
 
 
 
 
 
 

124 regels
4.0 KiB

  1. # 1 "/home/admin/SimulationCore2/Equipments/ChokeControl/ChokeStartup.f90"
  2. SUBROUTINE Choke_StartUp()
  3. USE CHOKEVARIABLES
  4. use SimulationVariables
  5. USE CChokeProblemsVariables
  6. implicit none
  7. CALL LOSS_INPUTS_CHOKE()
  8. !OPEN(150,FILE='CHOKE_AIRPUMP_OUTPUTS.DAT')
  9. !data%State%CHOOKE(1)%WashoutMalf=1
  10. !data%State%CHOOKE(1)%PlugMalf=0
  11. !data%State%CHOOKE(1)%FailMalf=0
  12. !
  13. !data%State%CHOOKE(2)%WashoutMalf=1
  14. !data%State%CHOOKE(2)%PlugMalf=0
  15. !data%State%CHOOKE(2)%FailMalf=0
  16. !
  17. !
  18. !ChokeAirFail=0
  19. !
  20. !GaugeChokePositionMailf=0
  21. data%State%Choke%kRatio=1.4
  22. data%State%Choke%Cp=0.24
  23. data%State%Choke%CL=0.8
  24. data%State%Choke%x1=0.5
  25. data%State%Choke%LiquidPPG=9.
  26. data%State%Choke%LiquidDensity=data%State%Choke%LiquidPPG*7.48 !lbm/ft**3
  27. data%State%Choke%VL=1.0/data%State%Choke%LiquidDensity !SpecificVolume of Liquid
  28. data%State%Choke%Cv=data%State%Choke%Cp/data%State%Choke%kRatio
  29. data%State%Choke%nPolytripic=1+(data%State%Choke%x1*(data%State%Choke%Cp-data%State%Choke%Cv)/(data%State%Choke%x1*data%State%Choke%Cv+(1-data%State%Choke%x1)*data%State%Choke%CL))
  30. data%State%Choke%VG1=1./0.748 !lbm/ft**3 Specific Volume of Air, Upstream
  31. data%State%Choke%Cdrag=0.8
  32. data%State%Choke%Pwh=1400. !psi
  33. data%State%Choke%Patm=14.7
  34. data%State%Choke%MixDens2=data%State%Choke%x1*data%State%Choke%VG1 !lbm/ft**3
  35. data%State%Choke%epsilon_abs= 1e-5
  36. data%State%Choke%epsilon_step= 1e-5
  37. !ChokeDiameter= 32/64. !in
  38. data%State%CHOOKE%PercentClose= 0.0
  39. !AreaChoke=0.01334635
  40. ! data%State%CHOOKE(1)%AreaChoke=0.01334635
  41. !ChokeAreaFullyOpen = 123.d0 / 64.d0 ! fully open area is 123/64 in^2 = 0.01334635 ft^2
  42. data%State%AirPumpLine%DeltaT_Choke=0.1
  43. !TotalStrokes1=0.
  44. !TotalStrokes2=0.
  45. data%State%Choke%HydraulicChoke1WashoutCoef= 0.0
  46. data%State%Choke%HydraulicChoke2WashoutCoef= 0.0
  47. data%State%Choke%ChokePlugTimeDelay = int(180./data%State%AirPumpLine%DeltaT_Choke) ! =1800 = 180/0.1 : for 3 min delay
  48. data%State%Choke%Present_HydraulicChoke1Plug = REAL(data%problems%ChokeProblems%HydraulicChoke1PluggedPercent)/100.
  49. data%State%Choke%HydraulicChoke1PluggedPercent_Old= data%problems%ChokeProblems%HydraulicChoke1PluggedPercent
  50. data%State%Choke%Plug1TimeCounter= 0
  51. data%State%Choke%DeltaPlug1Percent = 0.0
  52. data%State%Choke%Present_HydraulicChoke2Plug = REAL(data%problems%ChokeProblems%HydraulicChoke2PluggedPercent)/100.
  53. data%State%Choke%HydraulicChoke2PluggedPercent_Old= data%problems%ChokeProblems%HydraulicChoke2PluggedPercent
  54. data%State%Choke%Plug2TimeCounter= 0
  55. data%State%Choke%DeltaPlug2Percent = 0.0
  56. !======================AIRPUMP INPUTS(CONSTANTS)===========================
  57. data%State%AirPumpLine%CourseBase= 24. !cm
  58. data%State%CHOOKE%PassedCourse= 0.
  59. data%Equipments%ChokeControlPanel%ChokePosition=0.
  60. data%State%AirPumpLine%Acylinder= PI*(8.**2)/4. ! (CM^2), 8=DIAMETER, 24=course , 3785.412: cm^3 to galon
  61. data%State%CHOOKE%ChokeIsOpening = .false.
  62. data%State%CHOOKE%ChokeIsClosing = .false.
  63. data%State%AirPumpLine%P_AIRP=0
  64. data%State%AirDrivenPump%cc1 = 0.1354; data%State%AirDrivenPump%cc2 = -2.066; data%State%AirDrivenPump%cc3 = -21.09; data%State%AirDrivenPump%cc4 = -51.36; data%State%AirDrivenPump%cc5 = 5935 ! FOR OUTPUT IN GPM
  65. ! cc1 = 4.754e-07; cc2 = -0.0001676; cc3 = -0.03953; cc4 = -2.223; cc5 = 5935 FOR OUTPUT IN IN^3/MIN
  66. data%State%AirPumpLine%Pdownstrem= 4950 !+0.01*Pchoke (psi) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  67. data%State%AirPumpLine%QITER=5. !(gpm)
  68. ! Q=0.0003585; true
  69. data%State%AirPumpLine%TIME=0
  70. data%State%AirPumpLine%TOL_AIR=0.05
  71. data%State%AirPumpLine%alpha_Qair=0
  72. data%State%AirPumpLine%alpha_timeair=0
  73. data%State%AirPumpLine%alpha_Pdownstrem=data%State%AirPumpLine%Pdownstrem
  74. data%State%AirPumpLine%alpha_diffpair=0
  75. data%State%AirPumpLine%alpha_lossesair=0
  76. end