I'm trying to work out a formula that would calculate the amount of time required to travel distance A given a constant acceleration from 0 to B and deceleration from B to 0.
Eg: How long would it take to travel 1 km with a maximum speed of 50 km/hr?
I just realized that the amount of time spent travelling at the maximum speed can (will?) have a significant affect to the total time, so, for the example go with just hitting maximum speed before starting to decelerate..though if an additional variable C can be worked in, where C is the amount of time spent at maximum speed, that'd be great.
[Solved] Travel time
[Solved] Travel time
Last edited by RusselB on Wed Sep 25, 2019 11:05 pm, edited 3 times in total.
Reason: Updated post by OP.. Topic moved per suggestion from Mr. Programmer
Reason: Updated post by OP.. Topic moved per suggestion from Mr. Programmer
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
- MrProgrammer
- Moderator
- Posts: 4908
- Joined: Fri Jun 04, 2010 7:57 pm
- Location: Wisconsin, USA
Re: Travel time
This is a physics problem, and has nothing to do with Calc. I'd say the topic belongs in General Discussion.RusselB wrote:I'm trying to work out a formula that would calculate the amount of time required to travel distance A given a constant acceleration from 0 to B and deceleration from B to 0.
Eg: How long would it take to travel 1 km with a maximum speed of 50 km/hr?
By symmetry, the time for the first ½ kilometer will equal the time for the last ½ kilometer. It is simpler to consider just the first of these where the acceleration is constant and positive. You need information about the equations of motion, and specifically about Constant translational acceleration in a straight line. During the first ½ kilometer, we have r₀=0, r=½, v₀=0, v=50, want to determine t, and do not know a (except that it is a constant). From equation [4] a will be 2500 (v²÷2r) and then from equation [1] t will be v÷a = .02 hour or 1.2 minutes. The time for 1 kilometer will be double that, 2.4 minutes.
Edit: Oops: my earlier numbers for a and t were wrong because I forgot that r=½ here. |
The problem is no longer well-defined. Let's call c the fraction of the time spent at maximum acceleration. c can vary from 0 (your initial scenario) to almost 1 (speed climbs very quickly form 0 to to v, continues at v, and decreases very quickly from v to 0). We have three periods: accelerating, constant speed, and decelerating; since this considers both acceleration and deceleration, r=1 for your example. The acceleration a during the first period will be (v²+v²c )÷(r-rc). As c approaches 1, the acceleration increases without bound since r-rc approaches 0. But vehicles have a maximum acceleration, thus c has an upper limit. The minimum acceleration needed is v²÷r, otherwise you cannot obtain speed v in distance r. For an acceleration a between this minimum and the maximum the vehicle allows, the time is (r÷v)+(v÷a).RusselB wrote:I just realized that the amount of time spent traveling at the maximum speed can (will?) have a significant affect to the total time, so, for the example go with just hitting maximum speed before starting to decelerate..though if an additional variable C can be worked in, where C is the amount of time spent at maximum speed, that'd be great.
Edit: Restated acceleration formula adding r; restated time formula replacing c by a. Added example below -- 2019-09-26 18:00 UTC |
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
Re: Travel time
Thank you for the information.
I believe I now have the correct basis for creating the actual formulas.
I believe I now have the correct basis for creating the actual formulas.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.