Skip to main content
21-Topaz II
February 27, 2021
Solved

How do I draw a surface, expressed in polar coordinates?

  • February 27, 2021
  • 2 replies
  • 4345 views

Hello,
I have a circular symmetry system. A physical quantity defined in the circular section of such a system is defined by a function of the two polar variables r and φ. How to have the graph of this surface using CreateMesh () and pol2xy ()? I find some difficulties, maybe trying and trying again I succeed. But I would like your suggestion so as not to waste time. The function, in polar coordinates, is for example F (r, φ) = Jn (1,0.383r) cos (φ).

Best answer by -MFra-

I'm sorry. Problem solved.

2 replies

-MFra-21-Topaz IIAuthorAnswer
21-Topaz II
February 27, 2021

I'm sorry. Problem solved.

ttokoro
21-Topaz I
February 27, 2021

image.pngimage.pngimage.png

t.t.
-MFra-21-Topaz IIAuthor
21-Topaz II
February 27, 2021

Modes.jpg

25-Diamond I
February 27, 2021

Some remarks:

  1. You can get rid of the if-function in the definition of F.z because Mathcad#s 3D plot won't accept NaN's anyway and would throw an error
  2. Using atan(y/x) gives you wrong results (wrong sign) for x<0 and an error if x=0 (try Bound:=101)
    You should use atan2(x,y) instead
  3. To avoid an error if your mesh includes x=y=0 you should create an error trapping Atan2 function which returns 0 if x=y=0.

Werner_E_0-1614451805978.png

 

-MFra-21-Topaz IIAuthor
21-Topaz II
March 1, 2021

Hi Werner,
Could you give me a practical example of 3D design of isocline using the same function defined constant moving on z. Like the isotherms in a metal bar but in the z direction?