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.
 
 
 
 
 
 

61 lines
2.0 KiB

  1. MODULE Pump_VARIABLES
  2. IMPLICIT NONE
  3. PUBLIC
  4. REAL , PARAMETER :: pi=3.14159265
  5. REAL :: La, Lf, Ra, Rf
  6. REAL :: Kpn, Kin, Kpi, Kii
  7. REAL :: Total_Pump_GPM, Total_Pump_SPM, Total_Stroke_Counter_For_Plot
  8. !****************************************************************************************************
  9. !**************** Define PUMP Array ************************************************************
  10. TYPE, PUBLIC :: Pump_Var
  11. !***** Pump_VARIABLES ***************************
  12. INTEGER :: j , AssignmentSwitchh
  13. INTEGER :: PowerFailMalf , BlowPopOffMalf , SPMGaugeMalf
  14. REAL :: Stroke_Length, Piston_Area, Piston_Diameter, Inertia_Moment
  15. REAL :: Mech_Efficiency, Vol_Efficiency, Trans_Ratio
  16. REAL :: StandPipe_Pressure , Max_Pressure
  17. REAL :: Torque, Speed
  18. REAL :: Flow_Rate, Hydraulic_HorsePower, TracMotor_Horsepower , Max_Horsepower
  19. REAL :: simulation_time, time_step
  20. REAL(8) :: START_TIME, END_TIME
  21. INTEGER :: INT_CPU_TIME, Dt_ref
  22. !***** Traction Motor_VARIABLES *****************
  23. INTEGER :: i, n
  24. REAL :: TL, Vt, J_coef, Ea, fii, Te
  25. REAL :: time, dt, zaman
  26. REAL :: ia, w, ia_old, w_old, ia_new, w_new
  27. REAL :: error, ia_er, w_er ,x_er, y_er
  28. REAL :: K1ia, K1w, K2ia, K2w, K3ia, K3w, K4ia, K4w
  29. REAL :: K1x, K1y, K2x, K2y, K3x, K3y, K4x, K4y
  30. REAL :: ia_ref, w_ref, N_ref ! N(rpm) , w(rad/s)
  31. REAL :: x, y, x_old, y_old, x_new, y_new
  32. REAL :: dia, dw, dx
  33. REAL :: N_new, N_old
  34. REAL :: Vt_old
  35. !************* Sound_VARIABLES **********************
  36. INTEGER :: SoundSPM
  37. Logical :: SoundBlower
  38. END TYPE Pump_Var
  39. TYPE(Pump_Var), DIMENSION(1:3) :: PUMP
  40. !***********************************************************************************************
  41. !****************************************************************************************************
  42. END MODULE Pump_VARIABLES