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
1.9 KiB

  1. MODULE RTable_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 :: RT_wOld
  8. INTEGER :: RT_OldTransMode , RT_RotaryMode
  9. REAL :: RT_RPMUnityOutput
  10. !****************************************************************************************************
  11. !**************** Difine Rotary Table Array ****************************************************
  12. TYPE, PUBLIC :: RTable_Var
  13. !***** RTable_VARIABLES *************************
  14. INTEGER :: j , AssignmentSwitch , K_throttle
  15. INTEGER :: MotorFaileMalf , OverideTorqueLimitMalf , RpmGaugeMalf , TorqueGaugeMalf , TorqueLimitGaugeMalf
  16. REAL :: Horsepower, Speed, Output_Current, Inertia_Moment, Mech_Efficiency, Torque
  17. REAL :: Conv_Ratio, High_Conv_Ratio, Low_Conv_Ratio
  18. REAL :: String_Torque, String_JCoef
  19. REAL :: TracTorque, ConstLoad
  20. REAL :: simulation_time, time_step
  21. INTEGER :: 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, ia_ref_limit, 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, dy
  33. REAL :: N_new, N_old
  34. !************* Sound_VARIABLES **********************
  35. INTEGER :: SoundRPM
  36. Logical :: SoundBlower , SoundGearCrash
  37. END TYPE RTable_Var
  38. TYPE(RTable_Var) :: RTable
  39. !***********************************************************************************************
  40. !****************************************************************************************************
  41. END MODULE RTable_VARIABLES