| Author |
nice torpedo-math problem |
Dutch Dud
Joined: Mar 06, 2002 Posts: 81 From: Netherlands
| Posted: 2002-04-08 09:41  
Hi all,
I have this nice torpedo-math-problem which I can't solve. While programming a torpedp-angle-calculator for my PDA I wondered:
Suppose you have OS and Target at 0 deg, distance D. The target moves with velocity V, course 90 deg. You fire a torpedo with velocity 2*V which travels constantly in the direction of the target, homing in. At some point along the course the torpedo will intercept the target.
--> V
T-------I (intercept)
| .
| .
| .
|. Torp moves with 2*V, distance OS-T = D
|.
OS
Question: how do the initial distance D and the distance traveled by the target relate?
At first I thought this was a minor high-school problem, but I wasn't able to solve it.
Anyone wanna try.....?
Good luck!
_________________ Dutch Dud (MD), SeaWolves 10th Fleet
"Privateers"
- AMICULE, DELICIAE, NUM IS SUM QUI MENTIAR TIBI? -
"Baby, sweetheart, would I lie to you?"

 
|
GGTharos
Joined: Feb 27, 2002 Posts: 102 | Posted: 2002-04-08 09:47  
I think you need to calculus to solve that
If I get some free time I'll look into it.
Ah wait...are you trying to predict how far the target will move by the time the torpedo reaches it? It's -almost- a simple highschool problem. Almost.
[ This Message was edited by: GGTharos on 2002-04-08 09:49 ]
 
|
CedricB
Joined: Apr 01, 2002 Posts: 13 From: Las Vegas, NV
| Posted: 2002-04-08 11:15  
Actually you need trig. It's a simple Triangle problem. You need to know your current range to target, Bearing of AND to target, and the speed of your torpedo... or several other variations on other data... basically, if you want to know everything about a triangle you need to know 3 things bout it.
SAS = The length of two sides and the mesurement of the angle between them.
ASA = The measure of 2 angles and the length of the side between them.
There are a few others but my geometry is very rusty.
I'll see if I can work on this and get back to you.
 
|
Dutch Dud
Joined: Mar 06, 2002 Posts: 81 From: Netherlands
| Posted: 2002-04-08 14:26  
At first I thought it was simple too. I did program the torpedo-angle calculator for my PDA. That wasn't too difficult, but here something else seems to be involved, like limits when every delta t the course of the torpedo changes and follows the target. Maybe something deeper into integrals etc.
I have programmed this also and the ratio of the initial distance to the point of intercept seems to be 1: 1.7,3 (sqr(3)?).
Anyway, 3 torps in advance for the one who solves this.
_________________ Dutch Dud (MD), SeaWolves 10th Fleet
"Privateers"
- AMICULE, DELICIAE, NUM IS SUM QUI MENTIAR TIBI? -
"Baby, sweetheart, would I lie to you?"

 
|
CedricB
Joined: Apr 01, 2002 Posts: 13 From: Las Vegas, NV
| Posted: 2002-04-08 14:34  
Ew... if the target changes speed/course after you've fired it get's REALLY complicated.
If you want to design a tracking mechanism after firing then you need to get into calc... with wonderful limits and junk....
This will still only get you close, unless you put the prog in a loop to constantly calc the solution after you enter the variables.
Feh... The TMA does most of this for you... why would you want it in your PDA?
 
|
DreadKnot
Joined: Mar 03, 2002 Posts: 50 | Posted: 2002-04-08 15:13  
Think of it this way,
If the target is moving at velosity Vt and the trop is moving 2*Vt then at the time they intercept the torp will have travelled twice the distance of the target. This particular problem is a 90 degree right triangle with the hyp. at 2x the base. The arcSin of .5 is 30 degrees. You made that easy by setting the crs of the target at 90 degrees to the bearing from OS to target. However, to solve this for all conditions you want to convert everything to polar as solve with vectors.
 
|
TopTorp '92
Joined: Mar 18, 2002 Posts: 218 | Posted: 2002-04-08 19:10  
Quote:
|
On 2002-04-08 09:41, Dutch Dud wrote:
Hi all,
I have this nice torpedo-math-problem which I can't solve. While programming a torpedp-angle-calculator for my PDA I wondered:
Suppose you have OS and Target at 0 deg, distance D. The target moves with velocity V, course 90 deg. You fire a torpedo with velocity 2*V which travels constantly in the direction of the target, homing in. At some point along the course the torpedo will intercept the target.
--> V
T-------I (intercept)
| .
| .
| .
|. Torp moves with 2*V, distance OS-T = D
|.
OS
Question: how do the initial distance D and the distance traveled by the target relate?
At first I thought this was a minor high-school problem, but I wasn't able to solve it.
Anyone wanna try.....?
Good luck!
|
|
What does it matter? The distances you ask for are computed independantly of each other.
 
|
jsteed
Joined: Apr 08, 2002 Posts: 253 | Posted: 2002-04-08 20:39  
The math is fairly simple. The angle to fire the torp if the target course angle relative to own ship is C. Speed of torp is Vtorp and speed of target is Vtarget
Angle = sin-1((Vtarget / Vtorp) * cos(C-90))
 
|
DreadKnot
Joined: Mar 03, 2002 Posts: 50 | Posted: 2002-04-09 01:32  
Thanks jsteed,
You beat me to it. I was at work when I answered the original question and did have time to derive the equation that covers all cases. Dutch, look at it this way, draw a vector (speed of the target) from the target moving in the direction of the target. If the target is moving 12 knots, make the line 12 unit in length. Now use the bearing line between the OS and the target as a new 0 degree line (y axis). Now draw a new x axis through both the target and the OS. Using the new x and y axis at the target draw the separate x and y vectors for the target. Now consider that the x vector of the torp fired from the point of the OS will need to match the x vector of the target to hit it. Now as Jsteed said use the difference of the target bearing and his course to find the x vector. Then divide that x vector by the speed of the torp and calculate the arcsin of that value. If you preserved the sign, add the angle to the bearing to the target and that is your firing angle. To find the ETA, use the y vectors (cos). Take care on the sign. Use the estimated range and divide it by the addition of the vectors. If you preserved the sign correctly the closure speed will be less than the y vector for the torp if the target is moving away (<90 degrees target crs normal to bearing), and greater for the other case. Now with that you might be able to see how Jsteed's equation works. If you like SC then you most likely like challenges so I will leave the ETA equation to you. If you get stuck let me know.
By the way, I think someone posted an intercept calculator that uses EXCEL that might work on your PDA.
 
|
Dutch Dud
Joined: Mar 06, 2002 Posts: 81 From: Netherlands
| Posted: 2002-04-09 02:13  
I'll look into it. What a specifically DON'T mean is a course to fire the torpedo in to hit on a precalculated interception-point like the torpedo angle calculator. Like I said I programmed that already. it is relatively easy.
I really wanted to fire at the course of target at t+0 and let the torpedo change the course constantly in the direction of the target. Then the math ain't that simple anymore. I agree that the way the torp traveled is 2*Vtorp*t and the target traveled Vtarg*t. Problem is the curve the torp made.
For those who don't understand the effort I'm putting into this: just see it as un unhealthy appetite for math-problems.
Thank you all
_________________ Dutch Dud (MD), SeaWolves 10th Fleet
"Privateers"
- AMICULE, DELICIAE, NUM IS SUM QUI MENTIAR TIBI? -
"Baby, sweetheart, would I lie to you?"

 
|
Dutch Dud
Joined: Mar 06, 2002 Posts: 81 From: Netherlands
| Posted: 2002-04-09 03:20  
Eeerr....
Way Torpedo = 2*Vtarg*time fired at t=0
Way Target = Vtarg*time
that is.
_________________ Dutch Dud (MD), SeaWolves 10th Fleet
"Privateers"
- AMICULE, DELICIAE, NUM IS SUM QUI MENTIAR TIBI? -
"Baby, sweetheart, would I lie to you?"

 
|
jsteed
Joined: Apr 08, 2002 Posts: 253 | Posted: 2002-04-09 08:53  
Dutch Dud,
I'm not sure I understand what you are asking. Are you saying that at time=0 you know the course and speed of the target. Then at time=t1, after both you and the target have move some distance, you want to fire at the target?
jsteed
 
|
Dutch Dud
Joined: Mar 06, 2002 Posts: 81 From: Netherlands
| Posted: 2002-04-09 09:52  
No, I assume that OS is not moving and lying on distance D from the origin. At t = 0 it fires a torp with Vtorp = 2*Vtarg at Target which is situated ON the origin and starts moving with Vtarg along the x-axis (so initial course torp = -90 deg, assuming the x-axis is 0 deg.
Now the torp is homing in on the target and must therefore CONSTANTLY change it's course to the direction of the target, moving with Vtarg on the x-axis. This way the torp makes a somewhat hyperbilic curve and intercepts the target on the x-axis at t = T, distance, say Vtarg*T. Now I want to know if for different Vtarg's de ratio D/(Vtarg*T) is a constant and if so, which.
Do you follow? (drawing helps a great deal I noticed....)
So all you MathNerds out there, start dancing..
_________________ Dutch Dud (MD), SeaWolves 10th Fleet
"Privateers"
- AMICULE, DELICIAE, NUM IS SUM QUI MENTIAR TIBI? -
"Baby, sweetheart, would I lie to you?"

 
|
DreadKnot
Joined: Mar 03, 2002 Posts: 50 | Posted: 2002-04-09 10:26  
Sorry Dutch,
now I understand what you are looking for. Sometimes it takes 20 minutes for sound to reach me, unlike SC modeled sonar. What you want is the model for a torp that cannot calculate and intercept, but bird-dogs the target unitl it hits it. Right? In that case, you will have a torp that travels a much longer path. Where speeds are constant and directions are changing, I think you end up with an eliptical path not hyperbolic. It would be described by integrating the sines of the vectors over the distance travelled. Once the limits are defined it should resolve to a sin-cos relationship. Do you really want to do this? It is not a very efficient way to hit a target.
 
|
Dutch Dud
Joined: Mar 06, 2002 Posts: 81 From: Netherlands
| Posted: 2002-04-10 02:32  
DreadKnot,
Yeah, I know, but after programming the "normal" intercept-path the question kept bugging me and now I just wanna know for problem's sake what the answer is
Maybe a bit farfetched, but that's the way solving those irritating problem's work with me. Still I use the normal procedures and intercepts for SC ofcourse. Must be a sinister cob-webbed cave in the back of my head
Can you do this?
Thanks for all the patience......
_________________ Dutch Dud (MD), SeaWolves 10th Fleet
"Privateers"
- AMICULE, DELICIAE, NUM IS SUM QUI MENTIAR TIBI? -
"Baby, sweetheart, would I lie to you?"

 
|