Simulation Core
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

ChokeStartup.f90 3.9 KiB

1 anno fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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