TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker and becoming a Supporting Member. For more info: Support TMC

Breaking down the Model S range calculator: hidden features and data!

Discussion in 'Model S' started by KarenRei, Jul 26, 2017.

  1. KarenRei

    KarenRei KarenRei KarenRei KarenRei KarenRei KarenRei

    Jul 18, 2017
    So, on a whim I decided to look into how Tesla's Model S range calculator works. You know the one (3/4ths down):

    Model S | Tesla Europe

    Looking at the code, I see that first off, there's actually several data fields that you can't configure. They have 90D data. They have data on the effects of headlights. They have data on the effects of windows. They have a range field called "city", which one presumes is a start/stop city cycle of unknown details. And of course,one can always take their data, combine it with the known actual-usable-capacity data, and get Wh/mi on the vehicles. They also have three versions of the site - metric, imperial, and hybrid - each with datapoints, which you can combine to get a wider set of data. So, I'm attaching two spreadsheets that contain *all* of this data, including the hidden data, so people can feel free to look things up, make comparative graphs, and so forth :)

    Graph ideas (I don't have time at the moment):
    * How does each model's energy consumption compare in the same weather/window/light/ac/heating conditions?
    * How do windows-down effect a given vehicle's energy consumption under a specific set of conditions vs. AC?
    * Same for lighting, and heating

    One could also adjust the curves to get a pretty good guess at Model 3 data (for example, range vs. speed in different weather conditions).

    The other curious thing I found is this:

    There's a ton of fields in there describing something *much* more elaborate than the simplistic range calculator on the page. It sounds like they were perhaps looking to do a primitive of what a company I ran years ago had offered to them as a feature ;) That is, simulating actual drives. There's data in there to figure out how long charges take, with fields like:

    "plugEfficiencyStd": 6.48,
    "plugEfficiencyMid": 9.94,
    "plugEfficiencyMid_JP": 6.743,
    "plugEfficiencyHi": 19.85,
    "plugEfficiencyHi_JP": 13.65,

    There's fields discussing summer vs. winter. There's something involving estimating your savings vs. a gasoline car:


    There's a list of fuel prices for different countries. There's lots of animation data - including charging animations, savings animations, and my favorite, road trip animations that have fields related to cows:

    "cowLeftStart": 7138,
    "cowLeftStop": 7618,
    "cowRightStart": 7138,
    "cowRightStop": 7618,
    "cowRight2Start": 7138,
    "cowRight2Stop": 7618,

    It'd be interesting to know just what they had been planning ;)

    Anyway, just thought I'd share :)

    Attached Files:

    • Like x 1
    • Love x 1
  2. jaguar36

    jaguar36 Active Member

    Apr 10, 2014
    I just use EVtripplanner Its very accurate for predicting energy usage, and takes into account weather, elevations and road speed. The Tesla information is mostly useless.

Share This Page

  • About Us

    Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.
  • Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.