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.
 
 
 
 
 
 

83 lines
2.8 KiB

  1. MODULE Drawworks_VARIABLES
  2. use CDrillingConsoleVariables
  3. use CDataDisplayConsoleVariables
  4. IMPLICIT NONE
  5. PUBLIC
  6. REAL, PARAMETER :: pi=3.14159265
  7. REAL :: La, Lf, Ra, Rf
  8. REAL :: Kpn, Kin, Kpi, Kii
  9. INTEGER :: DW_OldTransMode , DW_DrillModeCond , DW_OldClutchMode , StringIsBottomOfWell
  10. REAL :: DW_TDHookHeight
  11. !**************************************************************************************************
  12. !**************** Define Drawworks Array ****************************************************
  13. TYPE, PUBLIC :: Drawworks_Var
  14. !***** Drawworks_VARIABLES **********************
  15. INTEGER :: AssignmentSwitch
  16. INTEGER :: ClutchMode, TransMode, Direction_Var
  17. INTEGER :: MotorFaileMalf , ClutchEngageMalf , ClutchDisengageMalf
  18. INTEGER :: motion
  19. REAL :: Diameter
  20. !REAL :: motion
  21. REAL :: EddyTorque, TracTorque, F_fastline
  22. REAL :: Hook_Height, Hook_Height_ini, Hook_Height_inim, Hook_Height_ini_graph_output, Hook_Height_final, max_Hook_Height, min_Hook_Height, HookHeight_graph_output
  23. REAL :: N_Throtle, N_Accelarator, Conv_Ratio, Inertia_Moment, NumberOfLine
  24. REAL :: EddyBreak, ManualBreak, BreakLoad , BrakeLeverCoefficient
  25. REAL, Dimension(-1:1,-1:1) :: FWD_Conv_Ratio
  26. REAL :: simulation_time, time_step
  27. INTEGER :: INT_CPU_TIME, Dt_ref
  28. !***** Traction Motor_VARIABLES *****************
  29. INTEGER :: i, n
  30. REAL :: NumberOfTracMotor
  31. REAL :: TL, Vt, J_coef, Ea, fii, Te
  32. REAL :: time, dt, zaman
  33. REAL :: error, ia_er, w_er ,x_er, y_er
  34. REAL :: K1ia, K2ia, K3ia, K4ia
  35. REAL :: K1w, K2w, K3w, K4w
  36. REAL :: K1x, K2x, K3x, K4x
  37. REAL :: K1y, K2y, K3y, K4y
  38. REAL :: ia, w, ia_old, w_old, ia_new, w_new
  39. REAL :: ia_ref, ia_ref_limit, w_ref, N_ref ! N[rpm] , w[rad/s]
  40. REAL :: N_new, N_old
  41. REAL :: x, x_old, x_new
  42. REAL :: y, y_old, y_new
  43. REAL :: dia, dw, dx, dy, dw_freeTrac, dw_DawnMotion, dw_freeTrac_Dmotion
  44. REAL :: ia_Dir, w_Dir, ia_old_Dir, w_old_Dir, ia_new_Dir, w_new_Dir, x_Dir, x_old_Dir, x_new_Dir, y_Dir, y_old_Dir, y_new_Dir
  45. REAL :: w_drum_Dir, w_old_drum_Dir, w_new_drum_Dir, w_drum, w_old_drum, w_new_drum
  46. !************* Sound_VARIABLES **********************
  47. INTEGER :: SoundFw , SoundRev , SoundDwBrake
  48. Logical :: SoundBlower , SoundGearCrash
  49. Logical :: SoundFloorCollision , SoundCrownCollision , SoundClutch
  50. END TYPE Drawworks_Var
  51. TYPE(Drawworks_Var) :: Drawworks
  52. !***********************************************************************************************
  53. !****************************************************************************************************
  54. END MODULE Drawworks_VARIABLES