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.
 
 
 
 
 
 

80 lines
3.5 KiB

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