c00ler wrote:
Sometimes ago, one man created a model for me and its worked.
But need to add several parameters there.
Problem is that, this guy has dissapeared somewhere (one year of silence)
Looking at the code I think I know from where that guy got it a couple of years ago
Anyway, I currently use for tyre rolling resistance the model I found it in a book by ing. Enrico Benzing (he used to make the engine power estimates for Piola’s books) :
rolling resistance = N * (alpha + beta * v^2 + gamma * v^4)
N is obviously the vertical load.
Alpha is a coefficient depending by tarmac and tyre compound, typically : 8 ->14 x 10^-3
Beta is related with the general stiffness of the tyre carcass : -2 -> -3 x 10^-7 [1/(km/h)^2]
Gamma is related with the stiffness of the sidewall : 4.5 -> 11.5 x 10^-10 [1/(km/h)^4)]
To include the model in the code you have just to set the parameters (front and rear separated) and to change the line calculating the instantaneous acceleration a(i) with the following one :
a(i) = (eng_torque * tau(gear))/(M*r) - rho * (v ^2) * CdS / (2*M) - Lf(i)/M * (alpha_f+ beta_f * v^2+gamma_f*v^4) – Lr(i)/M * (alpha_r+ beta_r * v^2+gamma_r*v^4);