Advertisement
teeks99

power_usage

Oct 30th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.59 KB | None | 0 0
  1. #http://en.wikipedia.org/wiki/List_of_countries_by_electricity_consumption
  2. # We use 3,741,000,000 MW * hr / yr or 3,741,000,000,000,000 W*hr/yr
  3. us_annual_usage_WHrPerYr = 3741000000000000
  4. us_instantaneous_usage_Watts = us_annual_usage_WHrPerYr / (365 * 24)
  5.  
  6. # Percent of US Electricity from coal: 37.5%
  7. electricity_from_coal_percent = 0.375
  8. electricity_from_coal_Watts = us_instantaneous_usage_Watts * electricity_from_coal_percent
  9.  
  10. # Solar prices: $1/Watt
  11. # This doesn't include some ancelary stuff, but also doesn't include what buying *a lot* would do to the price.
  12. #http://theconversation.edu.au/newsflash-solar-power-costs-are-falling-below-fossil-fuels-7215
  13. solar_price_USDPerWatt = 1
  14.  
  15. # Cost of Sandy $50,000,000,000
  16. # Cost of Irene $15,800,000,000 (typical size for a pre-warming storm)
  17. # http://www.cbsnews.com/8301-505143_162-57542602/sandys-cost-may-hit-$50b/
  18. sandy_cost_USD=50000000000
  19. irene_cost_USD=15800000000
  20.  
  21. storm_cost_difference_USD = sandy_cost_USD - irene_cost_USD
  22.  
  23. solar_purchased_Watts = storm_cost_difference_USD / solar_price_USDPerWatt
  24.  
  25. percent_of_coal_replaced_by_solar = solar_purchased_Watts / electricity_from_coal_Watts
  26.  
  27. ############### Output ###############
  28. >>>us_annual_usage_WHrPerYr =  3.7410e+15
  29. >>>us_instantaneous_usage_Watts =  4.2705e+11
  30. >>>electricity_from_coal_percent =  0.37500
  31. >>>electricity_from_coal_Watts =  1.6015e+11
  32. >>>solar_price_USDPerWatt =  1
  33. >>>sandy_cost_USD =  5.0000e+10
  34. >>>irene_cost_USD =  1.5800e+10
  35. >>>storm_cost_difference_USD =  3.4200e+10
  36. >>>solar_purchased_Watts =  3.4200e+10
  37. >>>percent_of_coal_replaced_by_solar =  0.21356
  38. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement