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)
Eco-ventor
 
jakobnev's Avatar
 
Join Date: Oct 2010
Location: sweden
Posts: 1,213

Princess - '92 Mazda MX-3 GS
House of Tudor
Team Mazda
90 day: 53.54 mpg (US)
Thanks: 49
Thanked 415 Times in 262 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:


Code:
#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){
   vel=spd/3.6;
   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);

   printf("%8.0i%10.2lf%8.2lf%8.2lf%8.2lf\n",spd,power,range,time,avg); 
  }
}




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

Attached Thumbnails
Click image for larger version

Name:	ecar.png
Views:	42
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 - 2019, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com