Analysis of Train in Tunnel Problem Using an AND Gate

In summary: I assume that you mean the train is 1 km long in its rest frame, and the tunnel is 1 km long in its rest frame. But you should not leave such things for the reader to assume. You should specify them.
  • #1
Alfred Cann
82
4
This analysis uses an AND gate, the very embodiment of simultaneity, for clarity.
A 1km long train travels through a 1km tunnel at a speed of 0.6c=180m/microsecond. At each end of the tunnel is a photo-electric beam sensor, which can be blocked by the train. They are connected to an AND gate at the center of the tunnel, which drives a light. The light will be on whenever both beams are unblocked. (We can even dispense with electrical transmission by using 45° mirrors and placing the photocells at the AND gate.)

In the tunnel reference frame, the train is shrunk to a length of 800mhttps://www.physicsforums.com/file:///C:/Users/fred/Desktop/Fredmisc/Train%20in%20tunnel.docx#_ftn1 . Let us say the rear beam is unblocked at t=0. Then the front beam is blocked at t=200m/180m/us=1.11..us. Since the transmission times from the two beam sensors are equal, the light is turned on for a duration of 1.11..us.

Assume the train has an observation car so that an observer can see the output light. In the train reference frame, the tunnel is shrunk to a length of 800m. Say the front beam is blocked at t=0. As seen from the train, that signal travels toward the AND gate at a speed of 300m/us. But the gate is traveling away from it at a speed of 180m/us, so the net speed is 300-180=120m/us (even though an observer at the gate would measure a speed of 300m/us). The distance is half the shrunken tunnel length, 400m. Thus, the travel time is 400/120=3.33..us.

The rear beam is unblocked at t=200m/180m/us=1.11..us. That signal travels toward the gate at a speed of 300m/us. But the gate is traveling toward it at a speed of 180m/us, yielding a total speed of 480m/us (even though an observer at the gate would measure a speed of 300m/us). The distance is400m; thus, the travel time is 400m/480m/us=0.833..us, and the arrival time is 1.11..+0.833..=1.944..us. The light is on (both beams unblocked) for a duration of 3.33..-1.944..=1.388..us.

As viewed from the train, all tunnel clocks run slow by a factor of 0.8. The light is such a ‘clock’, and its ‘on’ time is stretched to 1.11../0.8=1.388..us, in agreement with the previous paragraph.https://www.physicsforums.com/file:///C:/Users/fred/Desktop/Fredmisc/Train%20in%20tunnel.docx#_ftnref1 Using L'=L√(1-(v/c)Λ2)
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
Without having checked your maths in detail, it looks reasonable. Do you have a question?
 
  • #3
Do you and Peter Donis think this is a useful pedagogic approach?
 
  • #4
Alfred Cann said:
Do you and Peter Donis think this is a useful pedagogic approach?

Pedagogically, I see a few potential issues with your presentation. I'll phrase them as comments on your OP.

Alfred Cann said:
an AND gate, the very embodiment of simultaneity

No, it isn't, because signals still take time to travel to the AND gate. See below.

Alfred Cann said:
A 1km long train travels through a 1km tunnel

I assume that you mean the train is 1 km long in its rest frame, and the tunnel is 1 km long in its rest frame. But you should not leave such things for the reader to assume. You should specify them. One of the most common ways of going wrong in relativity problems is to fail to state which frame a frame-dependent quantity (like length) is relative to; pedagogically, you want to avoid that.

Alfred Cann said:
The light will be on whenever both beams are unblocked.

No, it will not. It will be on whenever a signal is reaching both inputs of the AND gate. But the signal takes time to travel from where the beams are or are not blocked, to the AND gate. You have ignored that signal travel time in your statement above, which invites the reader to ignore it, and pedagogically, that's not good. (You didn't ignore it in your actual analysis, which is good; but pedagogically, you should be sure to phrase everything in a way that makes clear that signal travel time needs to be taken into account.)
 
  • #5
Further to Peter's comments, I'd be a bit wary of the way you calculated your signal delays in the train frame.

"Speed" can mean two different things - the closure rate as seen from some frame and the closure rate as seen from the rest frame of one of the objects. These are the same thing in Galilean relativity but not in Einsteinian relativity. For example, a pedestrian sees two cars doing 30mph towards each other. According to the pedestrian they are coming together at 60mph. In Galilean relativity the drivers also see themselves coming together at 60mph, but in Einsteinian relativity they see 59.99999999mph (ish).

These speeds have different properties. One cannot exceed c, and the other cannot exceed 2c. You are using the latter. You may wish to call it something other than "speed" to avoid questions about how speed can be greater than c. Alternatively, structure your calculation as "there are 400m to cover; the gate is doing 0.6c and the signal is doing c. They meet after ##\Delta t##, where ##400=0.6c\Delta t+c\Delta t##.

Also, you are using the same symbol (t) for times in both frames. I'd tend to think this would be confusing. Typically people use t for one frame and t' for the other. I'd recommend following the convention.
 
  • #6
You people are very sharp and I thank you for sharpening my argument. How does the following grab you?

"This analysis uses an AND gate to avoid the difficulty of needing to know the train’s speed to decide where to site the sensor for slamming the doors, and may be clearer for some people.

A train which is 1km long at rest travels through a tunnel which is also 1km long at rest, at a speed of 0.6c=180m/microsecond. At each end of the tunnel is a photo-electric beam sensor, which can be blocked by the train. They are connected to an AND gate at the center of the tunnel, which drives a light. The light will be on whenever both inputs to the AND gate are high. Further, let us dispense with electrical transmission by using 45° mirrors and placing the photocells at the AND gate. Then all signal transmissions occur at light speed.

In the tunnel reference frame, the train is shrunk to a length of 800mhttps://www.physicsforums.com/file:///C:/Users/fred/Desktop/Fredmisc/Train%20in%20tunnel.docx#_ftn1 . Let us say the rear beam is unblocked at t=0. Then the front beam is blocked at t=200m/180m/us=1.11..us. Since the transmission times from the two beam sensors are equal, the light is turned on for a duration of 1.11..us.

Assume the train has an observation car so that an observer can see the output light. Now, in the train reference frame, the tunnel is shrunk to a length of 800m. Say the front beam is blocked at t’=0. (We now use t’ because we are in a different reference frame.) As seen from the train, that signal travels toward the AND gate at a speed of 300m/us. But the gate is traveling away from it at a speed of 180m/us, so the net closing rate is 300-180=120m/us (even though an observer at the gate would measure a light speed of 300m/us). The distance is half the shrunken tunnel length, 400m. Thus, the travel time is 400/120=3.33..us.

The rear beam is unblocked at t’=200m/180m/us=1.11..us. That signal travels toward the gate at a speed of 300m/us. But the gate is traveling toward it at a speed of 180m/us, yielding a total closing rate of 480m/us (even though an observer at the gate would measure a light speed of 300m/us). The distance is 400m; thus, the travel time is 400m/480m/us=0.833..us, and the arrival time is 1.11..+0.833..=1.944..us. The light is on (both gate inputs high) for a duration of 3.33..-1.944..=1.388..us.

As viewed from the train, all tunnel clocks run slow by a factor of 0.8, the same factor by which the tunnel is shrunk. The light is such a ‘clock’, and its ‘on’ time is stretched to 1.11../0.8=1.388..us, in agreement with the previous paragraph."https://www.physicsforums.com/file:///C:/Users/fred/Desktop/Fredmisc/Train%20in%20tunnel.docx#_ftnref1 Using L'=L√(1-(v/c)Λ2)
 
Last edited by a moderator:
  • #7
Apologies, missed your update somehow.

This looks fine. However - may I ask what context you're planning to use it in? If it's just a numerical example then fine. If it's more than that, I'd be inclined to just teach the full Lorentz transformation. Your use of length contraction and time dilation works here, but is kind of masking the relativity of simultaneity, which is an important part of what's going on in this example. Just using the Lorentz transforms always works, where length contraction and time dilation only works as long as measurements are of a well-defined object.
 
  • #8
Thanks. Wasn't planning any use. Just came up with this in the effort to make it clear to myself, and thought it might help others.
Happy New Year!
 

Related to Analysis of Train in Tunnel Problem Using an AND Gate

1. What is the "Analysis of Train in Tunnel Problem"?

The "Analysis of Train in Tunnel Problem" is a classic problem in computer science that involves a train entering a tunnel and triggering a sensor, which in turn activates a gate to close. The train has to exit the tunnel before the gate closes to avoid collision.

2. What is an AND gate and how is it used in this problem?

An AND gate is a logic gate that produces an output only when all of its inputs are high (1). In this problem, the AND gate is used to connect the sensor and the gate. When the train triggers the sensor, it sends a high signal to the AND gate, which then sends a high signal to the gate to close.

3. How is this problem solved using an AND gate?

To solve this problem, we can use a binary system to represent the state of the train and the gate. When the train enters the tunnel, it is represented as 1 and when it exits, it is represented as 0. Similarly, the gate is represented as 1 when it is open and 0 when it is closed. By using an AND gate, we can ensure that the gate will only close when both the train and the gate are in the correct state (1 and 1).

4. Are there any limitations to using an AND gate in this problem?

Yes, there are some limitations to using an AND gate in this problem. For example, if the train does not exit the tunnel before the gate closes, it can lead to a collision. Also, if there are multiple trains entering the tunnel at the same time, the AND gate may not be able to differentiate between them and may close the gate prematurely.

5. How can this problem be further improved or modified?

This problem can be further improved or modified by incorporating other logic gates, such as OR gates or NOT gates, to make the system more robust. Additionally, using sensors with more advanced technology, such as infrared sensors or radar sensors, can also improve the accuracy and efficiency of the system.

Similar threads

  • Special and General Relativity
2
Replies
58
Views
4K
Replies
165
Views
21K
Back
Top