Modelling Acceleration to Constant Velocity

AI Thread Summary
The discussion focuses on creating a computer model to simulate a car's acceleration and constant velocity, factoring in output power, drag, and rolling resistance. The user seeks a single formula to represent both the acceleration phase and the constant velocity phase after reaching a specific speed. A suggestion is made to use an equation that incorporates a constant decay factor for drag and resistance, allowing for a smooth transition to constant velocity. The proposed formula, v(t)=v_final(1-e^{-kt}), is derived from a differential equation that models the forces acting on the car. This approach provides a practical solution for graphing velocity over time in MATLAB.
Timeforheroes0
Messages
11
Reaction score
0
Hi there,

I'm trying to create a computer model which takes into account output power in a car due to acceleration, drag and rolling resistance. The car will be accelerating for a set amount of time and I am able to model the power required for this with respect to time, as well as the power required for the rolling resistance and drag as it is accelerating.
However, after it reaches a certain velocity, its velocity will remain constant (the acceleration power will drop to zero and the drag and rolling resistance will then be constant). Is there anyway of fitting all of this into one formula for programming purposes so that when it reaches a certain velocity it will then remain constant?

Thanks for any help.
 
Physics news on Phys.org
Hmm..how precisely, have you modeled the acceleration?
 
Not very precisely at all. Just using basic equation of motions at a constant acceleration. I'm at a very basic level of the model so far and my brain isn't really working today. Basically, I'm trying to find a way to model the power output with respect to time incorporating both the accelerating and constant velocity sections using one equation. Will I need to use a differential equation?
 
If you just want a look-alike development (rather than something realistic), why not just model your final velocity as a constant?
 
I suppose I could do that. It's just I'm running it in MATLAB in respect to time (using a loop). So say I want to graph the output velocity at the end, it would be handy to have something that would give me a constant velocity after a certain number of iterations of the loop..
 
Well, use a play formula like the following then:
v(t)=v_{final}(1-e^{-kt})
where "k" is a constant>0 modelling the effects of drag&resistance.
 
  • Like
Likes 1 person
Looks good, will give that a go. Thank you..
 
Note that this equation is, basically, the solution of the following differential equation:
\frac{dv}{dt}=F/m-kv
where F/m is applied force per unit mass (considered for simplicity as a constant), and -kv a force per unit mass resistance term acting oppositely to the velocity.
We then have the relation:
v_final=F/(m*k)
 
  • Like
Likes 1 person
Back
Top