Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free
Register Now
 Register Now

Reply  Post New Thread
Submit Tools LinkBack Thread Tools
Old 08-10-2017, 08:16 AM   #1 (permalink)
jakobnev's Avatar
Join Date: Oct 2010
Location: sweden
Posts: 1,625

Princess - '92 Mazda MX-3 GS
House of Tudor
Team Mazda
90 day: 53.54 mpg (US)

Shirubāarō (*ω`*) - '05 Toyota Prius Executive
Team Toyota
90 day: 54.88 mpg (US)

Blue Thunder - '20 Hyundai IONIQ Trend PHEV
Team Hyundai
Plug-in Hybrids
90 day: 207.11 mpg (US)
Thanks: 74
Thanked 696 Times in 440 Posts
Send a message via MSN to jakobnev
Maximizing average speed with an electric car

A while back there was a thread asking how fast you should go to maximize averege speed on a 1000 mile trip, I decided to try and solve a slightly simpler problem, i.e. Infinite trip, and charging stations everywhere:

#include <stdio.h>

int main(){

  double cdA  =       0.7;   // m2
  double crr  =       0.008;
  double mass =    1500;     // kg
  double para =     150;     // w
  double batCap=  44000;     // wh
  double chrgRte= 60000;     // w
  double timeLoss=    2;     // minutes
  double power, range, time, avg, vel;

  printf("#  speed     power   range    time     avg\n");

  for(int spd=10;spd<=250;spd+=5){
   power = para + vel*(0.5*1.225*vel*vel*cdA + crr*mass*9.81);
   range = vel*(batCap*3.6)/power;
   time = range/(vel*3.6);
   avg = range/(timeLoss/60+time+batCap/chrgRte);


I was a bit surprised at how high your optimum speed is.

Attached Thumbnails
Click image for larger version

Name:	ecar.png
Views:	70
Size:	4.1 KB
ID:	22373  

2016: 128.75L for 1875.00km => 6.87L/100km (34.3MPG US)
2017: 209.14L for 4244.00km => 4.93L/100km (47.7MPG US)
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

Reply  Post New Thread

Thread Tools

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com