Well, it’s been a while since I did any calc’ work like this, but lets
have a whirl at actually SOLVING this problem.
Let’s start by defining the problem shall we? We have a torus shaped
object with a little dude sitting on the inner wall at some point. Fair
enough. The torus is made of a material K with some mysterious density P
that we don’t actually know. The distance from the center of the ring
(ie. empty space) to the inner edge of the torus is b meters, and the
distance from the center of the ring to the center of the cyclinder making
the torus is c meters. This means the cross section of the torus has a
radius of (c-b) meters.
OK! Time to get cracking.
Let’s look at a cross sectional volume of the torus. It has volume V
defined by Pi*R^2 * dx, where dx is the width (heh, you can see where I’m
going…) of the little disk we’ve cut out.
It has mass P * V, and a gravitational force Fx associated with it,
attracting the little guy sitting on the torus with Fx equal to G m1 m2 /
r^2, where m1 and m2 are the mass of the person and disk respectively, and
r is the distance from the center of the disk to the person. Fair enough?
So we have a bunch of little disks around the torus, each attracting the
little dude with some force Fx, depending on the distance of the disk from
the person.
Now how to calculate that?
Well, to start with lets imageine this little torus in a nice 2D plane:
//=\
||O||
\=//
Not much of torus, but never mind. The person is sitting at the
bottom. Now, since gravity is vector, we can cancel the components of
gravity with go left and right on this little diagram; it’s only the up
and down forces that will be left. It’s a bit hard to see from this
diagram, but I’m sure you get the idea. The disk on the right has an
equivalent disk on the left with equal magintude gravitational force, but
exact oposite components left and right.
Now, some maths to play with, we’re gonna have some fun with the cosine
and sine rules. Remember at the top our b and c? Let’s make a nice
triangle.
This triangle (you’ll have imagine it, since I can’t draw) has three faces
of length b, c and dxy. Dxy is the distance between the dude standing on
the inner side of the torus and the center of our little disk. The angles
opposite each face are B, C and DXY respectively. To make this a little
clearer:
At the bottom of the triangle is the dude. This angle is C. Directly above
that is side b, which has length b, going to the center of the ring. At
the center of the ring DXY is made from that side, and the other side,
from the center of the ring to the center of our disk, at distance c. At
the center of the disk angle B is made from that side and the final side,
of length Dxy, which goes back to our dude sitting on the torus. Draw a
picture. It’ll help.
By the cosine rule, Dxy^2 = b^2 + c^2 - 2bc cos (DXY).
So Dxy = sqrt (b^2 + c^2 - 2bc cos (DXY))
Additionally by the Sine rule:
a / sin A = b / sin B = Dxy / sin Dxy
Hence: sin C = c sin DXY / Dxy
So what? Well, let’s have a look. The force upwards by both the disks on
the left and right is equal, and from our triangle there, it turns out the
magnitude of that force is given by Dxy Fx cos C. Think of the right angle
triangle with hypotonuse (sp?) Dxy, and lower angle C.
Hence, our force for one disk pair is given by:
Fnet = 2 Dxy cos (C) Fx
Now let the width of those disks drop to 0. By doing this, we can take
the sum of an infinite number of disk pairs, each of infantismal width,
resulting with the net force total. Ie. Basically it means we can integrate
it to get the answer, which is good, 'cause it’s less work (than adding all
the disks togethor).
The trick is, what to integrate over. The definite integral integral (A->B)
f(x) dx is defined as lim (n->infinity) * sum (i=1->n) f(xi*) deltaX.
Basically a sample of width deltaX, where f(xi*) is the sampling of the actual
function. So the infinite sum of samples of the function taken when the
sample width approaches 0; exactly what we’re doing here. However, in this
case we’re using DXY to sample the disks, not x, so we need to find
integral (0->Pi) f(DXY) dDXY. (=P I didn’t explain that very well, but it
is true).
Now from all that stuff at the top, Fx = G m1 m2 / (Dxy)^2, but m2 = V P,
which is given by m2 = P (Pi * (c-b)^2) Let’s just bunch that whole big term
togethor and let K = 2 * P * Pi * (c-b)^2 * G * m1. Then we get something
reasonable to evaluate:
Fnet = K * cos (C) / Dxy
Unfortunately we only have this in the form of cos(C), not cos (DXY), but
that’s easily fixed; recall: sin C = c sin DXY / Dxy. So:
Fnet^2 = K^2 * cos(C)^2 / Dxy^2
Fnet^2 = K^2 * (1-sin(C)^2) / Dxy^2
Fnet^2 = K^2 * (1 - (c sin DXY / Dxy)^2) / Dxy^2
Fnet^2 = K^2 * (1/Dxy^2 - c^2 sin (DXY)^2 / Dxy^4)
Fnet^2 = K^2 * (Dxy^2 - c^2 sin (DXY)^2 / Dxy^4)
Fnet^2 = (K^2 / Dxy^4) * (Dxy^2 - c^2 sin (DXY)^2)
And remember that Dxy = sqrt (b^2 + c^2 - 2bc cos (DXY)), so that Dxy^2
is b^2 + c^2 - 2bc cos (DXY).
Fnet^2 = (K^2 / Dxy^4) * (b^2 + c^2 - 2bc cos (DXY) - c^2 sin (DXY)^2)
Fnet^2 = (K^2 / Dxy^4) * (b^2 + c^2 - 2bc cos (DXY) - c^2 (1 - cos (DXY)^2))
Fnet^2 = (K^2 / Dxy^4) * (b^2 - 2bc cos (DXY) + c^2 cos (DXY)^2)
Fnet^2 = (K^2 / Dxy^4) * (c cos (DXY) - b)^2
finally:
Fnet = K * (c cos(DXY) - b) / Dxy^2
Fnet = K * (c cos(DXY) - b) / (b^2 + c^2 - 2bc cos (DXY))
Which we can integrate to find the total net force on the little dude! How
cool.
…unfortunately, integrating this is too much for my little brain. I can’t
seem to do it. It does seem to be a reasonable solution however; consider
if the radius of the ring (c) where equal to the distance from the center
to the edge of the torus (b). Hence, the torus is actually just a piece
of string. Since c = b;
Fnet = K * (c cos (DXY) - c) / (2c^2 - 2c^2 cos (DXY))
Fnet = K * (cos (DXY) - 1) / (2c - 2c cos (DXY))
Fnet = -K/2c * (-cos (DXY) + 1) / (1 - cos (DXY))
Fnet = -K/2c !!
Which cannot be right! The attraction from all disks is the same! But
remember K has a factor (c-b)^2 in it; so the attraction from all the
disks is actually 0, since they have zero radius, and thus no mass, and,
incidentally, the same. 
But back to the problem at hand. When we graph this function we get something
strange, increasing in amplitude as time increases, this is because a greater
component of the force is directed towards the up, recall we are looking at
the net force up here, not the net force in total.
However, I wish I could actually show you these graphs. You don’t need to
go and solve the integral exactly! It turns out the graph will be of the form
of a sine/cosine wave, negative from 0 to N, and positive from N to Pi.
When N is > Pi / 2, the net force total is toward the torus. When N is <
Pi < 2, the net force total is towards the center of the ring. When N exactly
equal to Pi / 2, the net force total will be zero. These forces are the
forces the little dude experiences I mean.
What is N though? Simple, N is when Fnet is 0. That is, when:
Fnet = K * (c cos(DXY) - b) / (b^2 + c^2 - 2bc cos (DXY)) = 0
Hence, when:
(c cos(DXY) - b) = 0
OR:
-b = -c cos (DXY)
b = c cos(DXY)
b/c = cos (DXY)
And we all know, in the range 0->Pi, cos (DXY) = 0 only when DXY = Pi/2
=======================================================================
SO!! Finally, in summery, let me conclude:
- Thank you for your patience
- Thank you for this problem, it was facinating
- Sorry if I made any mistakes!
- Thanks to JJJ for pointing the website out.
- THE ANSWER:
The answer is, whether or not you will be attacked to the surface of said
torus depends on the ratio of the distance to the edge of the torus surface
from the center of the ring to the radius of the actual torus ring. If the
ratio said is > Pi/2, you would be attracted to surface under you, if ratio
is > Pi/2, you would be attracted to the surface way above you. If it was
exactly Pi/2, you would feel nothing.
NOTE: This weird manner of evaluting the intergral with out actually
evaluating it can ONLY be done since it turns out the integral at 0 is 0.
Otherwise there would be some constant shift of the ratio left or right. 
Once again; sorry for any mistakes/spelling errors. It’s like 2.03 am in
the morning. =P
Enjoy! Hope this helps answer your question!