Simulation Core
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

equipments_PowerLimit.f90 1.9 KiB

1 год назад
1 год назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. MODULE equipments_PowerLimit
  2. IMPLICIT NONE
  3. PUBLIC
  4. real(8) :: Power_sigma, max_Power_sigma
  5. real(8) :: num_of_active_Jenerators, Jenerator_power
  6. real(8) :: power_num_of_Jenerators, drilling_num_of_Jenerators
  7. real(8), dimension(4) :: drilling_console_Jenerators
  8. !contains
  9. !------------------------------------------------------------
  10. ! subroutine PowerLimits
  11. ! !subroutine PowerLimits(Power_sigma)
  12. !
  13. ! USE Pumps_VARIABLES
  14. ! USE Drawworks_VARIABLES
  15. ! USE RTable_VARIABLES
  16. ! USE CPowerVariables
  17. ! USE CDrillingConsoleVariables
  18. ! !use equipments_PowerLimit
  19. !!
  20. !IMPLICIT NONE
  21. ! !integer :: ii
  22. !
  23. !
  24. ! Power_sigma=2.*(PUMP(1)%Vt*PUMP(1)%ia_new)+2.*(PUMP(2)%Vt*PUMP(2)%ia_new)+2.*(PUMP(3)%Vt*PUMP(3)%ia_new)+(RTable%Vt*RTable%ia_new)+2.*(Drawworks%Vt*Drawworks%ia_new)
  25. ! !write(*,*) 'Power_sigma=', Power_sigma
  26. !
  27. !
  28. ! power_num_of_Jenerators=sngl(NumberOfgenerators)
  29. ! Jenerator_power=GeneratorPowerRating
  30. ! drilling_console_Jenerators(1)=GEN1BTNLED
  31. ! drilling_console_Jenerators(2)=GEN2BTNLED
  32. ! drilling_console_Jenerators(3)=GEN3BTNLED
  33. ! drilling_console_Jenerators(4)=GEN4BTNLED
  34. !
  35. ! drilling_num_of_Jenerators=0.
  36. ! !do ii=1,4
  37. ! ! if (drilling_console_Jenerators(ii)=1) then
  38. ! ! drilling_num_of_Jenerators=drilling_num_of_Jenerators+1.
  39. ! ! end if
  40. ! !end do
  41. ! drilling_num_of_Jenerators=sngl(sum(drilling_console_Jenerators))
  42. !
  43. ! if (power_num_of_Jenerators>drilling_num_of_Jenerators) then
  44. ! num_of_active_Jenerators=drilling_num_of_Jenerators
  45. ! else if (power_num_of_Jenerators<=drilling_num_of_Jenerators) then
  46. ! num_of_active_Jenerators=power_num_of_Jenerators
  47. ! end if
  48. !
  49. ! max_Power_sigma=num_of_active_Jenerators*Jenerator_power
  50. !
  51. !
  52. ! end subroutine PowerLimits
  53. !------------------------------------------------------------
  54. End MODULE equipments_PowerLimit