Fortran Generate a circle in FORTRAN having polar coordinates

AI Thread Summary
To plot a grid in polar coordinates (r, theta) using Tecplot, it is essential to select the polar line option within the software. The process involves looping over the radius (r) and the angle (theta) to create the grid. When theta ranges from 0 to 2π, the corresponding Cartesian coordinates can be calculated using the formulas x = r cos(theta) and y = r sin(theta), which will distribute points evenly around a circle of radius r. The discussion highlights the importance of understanding how to convert polar coordinates for proper visualization in Tecplot.
sharmaN
Messages
4
Reaction score
1
Say "I have grid in polar coordinates (r, theta). How do I plot it in tecplot. Tecplot plots it in cartesian coordinates."
 
Last edited:
Technology news on Phys.org
I don't understand. To make a X-Y grid, loop on X and loop on Y. To make a r-θ grid, loop on r and loop on θ.

Perhaps you want to make a rectangular grid within a circle?
 
Is this a question about Fortran or about Tecplot?
 
anorlunda said:
I don't understand. To make a X-Y grid, loop on X and loop on Y. To make a r-θ grid, loop on r and loop on θ.

Perhaps you want to make a rectangular grid within a circle?
DrClaude said:
Is this a question about Fortran or about Tecplot?
About Techplot.
 
Ifound in tecplot to plot in polar coordinates, need to select polar line. Thanks
 
FYI, in any language, if you let ##\theta## go from 0 to ##2\pi## then the points with cartesian coordinates ##x = r \cos(\theta), y = r \sin(\theta)## will be spaced around the circle of radius ##r##.
 
RPinPA said:
FYI, in any language, if you let ##\theta## go from 0 to ##2\pi## then the points with cartesian coordinates ##x = r \cos(\theta), y = r \sin(\theta)## will be spaced around the circle of radius ##r##.
Yes thank you, I have the grid. Was facing problem in plotting it.
 

Similar threads

Replies
5
Views
3K
Replies
8
Views
1K
Replies
18
Views
1K
Replies
5
Views
13K
Replies
4
Views
2K
Replies
7
Views
2K
Replies
9
Views
4K
Replies
3
Views
3K
Replies
17
Views
5K
Back
Top