Simulation Core
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

127 行
3.9 KiB

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