EcoModder.com

EcoModder.com (https://ecomodder.com/forum/)
-   Fossil Fuel Free (https://ecomodder.com/forum/fossil-fuel-free.html)
-   -   Maximizing average speed with an electric car (https://ecomodder.com/forum/showthread.php/maximizing-average-speed-electric-car-35471.html)

jakobnev 08-10-2017 08:16 AM

Maximizing average speed with an electric car
 
1 Attachment(s)
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);
  }
}


http://ecomodder.com/forum/attachmen...1&d=1502362835


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


All times are GMT -4. The time now is 12:33 PM.

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