Simulation Core
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

78 wiersze
3.5 KiB

  1. MODULE CHOKEVARIABLES
  2. !IMPLICIT DOUBLEPRECISION(A-H,O-Z)
  3. ! use CBopControlPanel
  4. ! use ConfigurationVariables
  5. ! use CEquipmentsConstants
  6. ! use CSimulationVariables
  7. ! use CAccumulatorVariables
  8. ! use CBopStackVariables
  9. ! use CChokeControlPanelVariables
  10. ! use ConfigurationVariables
  11. IMPLICIT NONE
  12. !===========================================================================
  13. ! CHOKE VARIABLES
  14. !===========================================================================
  15. type::ChokeType
  16. REAL Ycritical,Cp,Cv,CL,kRatio,nPolytripic,x1,SGliquid,WaterDensity,LiquidDensity,VL,VG1
  17. REAL epsilon_step,epsilon_abs,step_size,Ycritical_a,Ycritical_b,Ycritical_c
  18. REAL G2,Cdrag,Pwh,MixDens2,Yratio_a,Yratio_b,Yratio_c,Yratio,Yratio_low,Yratio_high
  19. REAL FlowRate,Patm,MassFlux,LiquidPPG,time2,AreaChoke
  20. REAL eps_step,eps_abs,Yratiomat(100),Yrario_actual,Yrario
  21. REAL :: DegreeOpen,GRAVITY1=9.81!,PercentClose
  22. REAL ChokedMassFlux,ChokedFlowRate,PwhChoked
  23. REAL TotalStrokes1,TotalStrokes2
  24. !INTEGER WashoutMalf,PlugMalf,failMalf
  25. INTEGER GaugeChokePositionMailf,SoundChokePump
  26. Real Cumulative_AirVolume_Choke
  27. Real HydraulicChoke1WashoutCoef,HydraulicChoke2WashoutCoef
  28. Real Present_HydraulicChoke1Plug, Present_HydraulicChoke2Plug,DeltaPlug1Percent,DeltaPlug2Percent
  29. Integer HydraulicChoke1PluggedPercent_Old,HydraulicChoke2PluggedPercent_Old,Plug1TimeCounter,Plug2TimeCounter,ChokePlugTimeDelay
  30. Real ChokeAreaFullyOpen
  31. end type ChokeType
  32. !===========================================================================
  33. ! AIR DRIVEN PUMP VARIABLES
  34. !===========================================================================
  35. type::AirDrivenPumpType
  36. REAL QAIR_PUMP,cc1,cc2,cc3,cc4,cc5
  37. INTEGER ChokeAirFail
  38. end type AirDrivenPumpType
  39. ! PARAMETER PI=3.141593
  40. !============================================================================
  41. ! OIL & ENVIRONMENT VARIABLES
  42. !============================================================================
  43. ! REAL:: SG=1.12,WDENS=1000,GRAVITY=9.81,RE_CR=2000
  44. !specific gravity of liquid
  45. !water density(kg/m^3)
  46. !===========================================================================
  47. ! AIR PUMP LINE COMPUTATIONAL VARIABLES
  48. !===========================================================================
  49. !logical ChokeIsClosing,ChokeIsOpening
  50. type::AirPumpLineType
  51. REAL ChokeControlLeverOld
  52. REAL P_AIRP,QITER,DELTAV_AIR,TIME,DeltaT_Choke,TOL_AIR
  53. REAL diffp_air,losses_air,pipe_loss1air,minor_loss1air,static_loss1air
  54. integer NO_PIPINGS_AIRPLINE,NO_MINORS_AIRPLINE
  55. REAL,ALLOCATABLE:: Re_air(:),DIAM_AIR_MM(:),DIAM_AIR_INCH(:),AREA_AIR(:),REL_ROUGHAIR(:),LENGT_AIR(:),LF_AIR(:),CV_AIR(:),NOTE_AIR(:)
  56. REAL,ALLOCATABLE:: fric_air(:),fricloss_air(:),minlosspa_air(:),minloss_air(:),MINORS_AIRPUMP(:,:)
  57. REAL,ALLOCATABLE:: MINORDIAM_AIR_INCH(:),MINORAREA_AIR(:)
  58. REAL,ALLOCATABLE:: ROUGHNESS_AIRPLINE(:),PIPINGS_AIRPUMP(:,:)
  59. REAL Acylinder,CourseBase!,PassedCourse
  60. REAL alpha_Qair,alpha_timeair,alpha_pairp,alpha_diffpair,alpha_lossesair,alpha_Pdownstrem,Pdownstrem
  61. end type AirPumpLineType
  62. !=================================================================================
  63. TYPE, PUBLIC :: CHOKE_TypeVars
  64. INTEGER WashoutMalf,PlugMalf,failMalf
  65. REAL PercentClose,PassedCourse,AreaChoke,AreaChokeFinal
  66. logical ChokeIsClosing,ChokeIsOpening
  67. END TYPE CHOKE_TypeVars
  68. END MODULE