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.
__________________
2016: 128.75L for 1875.00km => 6.87L/100km (34.3MPG US)
2017: 209.14L for 4244.00km => 4.93L/100km (47.7MPG US)