jayakkumar said:
Thanks for the response.
Let me explain my question in detail.
My question about transformation is not for force components but displacements and stresses at a point in cylindrical coordinate frame.
I have displacement and stress tensors in Cartesian coordinate frames (XYZ) for some points and I would like to transfrom those data in Cylindrical coordinate frame (RTZ). I used the same formula given above for force transformation for R and Theta components and z component is same as cartesian Z component.
Here the formula has the cosine and sine theta, where the points lying in the z axis, singularity occurs in finding the RTZ of a point in Cylindrical Coordinate from Cartesian coordinate XYZ. I used the following formula to convert the XYZ to RTZ. R = SQRT (x*x + y*y) and theta = tan-1(x/y) and Z=Z.
Here I have problem with the points lying on Z axis where R=0 and theta is indeterminate.
Can anyone help me.?
Ok, this clarifies a few things.
First, for the sake of clarity for anyone who may be reading this, I'd like to point out that my original answer (and the original question) did not involve polar coordinates (which describe a point in terms of angle 'theta' and arc length 'r'). It was rather a matter of rotating cartesian coordinates for a given angle 'theta'.
Now, on the subject of converting from XYZ to RTZ, there is in fact an indetermination for 'theta' at R = 0, and unfortunatly I do not have a magic answer.
I am by no means an expert on the subject and I have never worked with displacement and stress tensors (therefore I can't really grasp the context of your problem), but if it can help at least a bit, my advices would be:
1 - If this is for an analytical problem, and if you can work in cartesian coordinates (or generalized coordinates (not an expert at that either) or another singularity-free coordinate system) it might allow you to have 'cleaner' equations, albeit possibly more complex;
2 - If you are working on an algorithm, you probably will have to resort to a 'hack' for the R=0 case (e.g. if 'theta' is of little importance, set it to 0 or to a random value)
You might also want to check the litterature on your subject (although you probably already did). Chances are someone faced the same problem and found a way around.
Finally, you can always hope that someone more knowledgeable will drop by! ;)