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.
 
 
 
 
 
 

126 lines
3.0 KiB

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