I am trying to generate a poincare map for a system whose reduced energy manifold looks like the following surface.
(x/a)^2 +(y/b)^2 +(z/c)^2=1
I want to find a lot of sample points(initial conditions) on the above mentioned ellipsoid.
Can anyone suggest a nice elegant way of doing this?
So far I have tried the following
a1[y_] := R Sqrt[Energy (1 - y^2/Energy)];
a2[vy_, y_] := Sqrt[2 Energy (1 - (vy^2/(Energy*R^2) + y^2/Energy))]
y1 = Table[i, {i, -Sqrt[Energy], Sqrt[Energy], inc}]
vyi = Map[a1, y1];
vyf = Flatten[Range[0, vyi, (vyi - 0)/num]];
yf = Flatten[Table[#, {num + 1}] & /@ y1];
vx1 = Re[a2[a, b] /. {a -> vyf, b -> yf}]
IC = Table[{vx1[[i]], yf[[i]], vyf[[i]]}, {i, 1, (num + 1)^2}]
where a=2*Energy,b=2*Energy*R^2 and c=Energy. (vx1,yf,vyf) represents (x,y,z)
Excuse me if this sounds a very basic question, but I am new to mathematica. I am trying to learn through the documentation but I could not get a good reference on how to go about this problem.


RandomPointis really a killer feature of v10.2 for uniform sampling on geometric regions. – kirma Jan 07 '16 at 12:22