Simulation Core
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChokeStartup.f90 2.4 KiB

1 년 전
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. kRatio=1.4
  20. Cp=0.24
  21. CL=0.8
  22. x1=0.5
  23. LiquidPPG=9.
  24. LiquidDensity=LiquidPPG*7.48 !lbm/ft**3
  25. VL=1.0/LiquidDensity !SpecificVolume of Liquid
  26. Cv=Cp/kRatio
  27. nPolytripic=1+(x1*(Cp-Cv)/(x1*Cv+(1-x1)*CL))
  28. VG1=1./0.748 !lbm/ft**3 Specific Volume of Air, Upstream
  29. Cdrag=0.8
  30. Pwh=1400. !psi
  31. Patm=14.7
  32. MixDens2=x1*VG1 !lbm/ft**3
  33. epsilon_abs= 1e-5
  34. 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. DeltaT_Choke=0.1
  41. !TotalStrokes1=0.
  42. !TotalStrokes2=0.
  43. HydraulicChoke1WashoutCoef= 0.0
  44. HydraulicChoke2WashoutCoef= 0.0
  45. ChokePlugTimeDelay = int(180./DeltaT_Choke) ! =1800 = 180/0.1 : for 3 min delay
  46. Present_HydraulicChoke1Plug = REAL(HydraulicChoke1PluggedPercent)/100.
  47. HydraulicChoke1PluggedPercent_Old= HydraulicChoke1PluggedPercent
  48. Plug1TimeCounter= 0
  49. DeltaPlug1Percent = 0.0
  50. Present_HydraulicChoke2Plug = REAL(HydraulicChoke2PluggedPercent)/100.
  51. HydraulicChoke2PluggedPercent_Old= HydraulicChoke2PluggedPercent
  52. Plug2TimeCounter= 0
  53. DeltaPlug2Percent = 0.0
  54. !======================AIRPUMP INPUTS(CONSTANTS)===========================
  55. CourseBase= 24. !cm
  56. CHOOKE%PassedCourse= 0.
  57. ChokePosition=0.
  58. 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. P_AIRP=0
  62. cc1 = 0.1354; cc2 = -2.066; cc3 = -21.09; cc4 = -51.36; 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. Pdownstrem= 4950 !+0.01*Pchoke (psi) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  65. Qiter=5. !(gpm)
  66. ! Q=0.0003585; true
  67. time=0
  68. tol_air=0.05
  69. alpha_Qair=0
  70. alpha_timeair=0
  71. alpha_Pdownstrem=Pdownstrem
  72. alpha_diffpair=0
  73. alpha_lossesair=0
  74. end