# Fortran Generate a circle in FORTRAN having polar coordinates

#### sharmaN

Say "I have grid in polar coordinates (r, theta). How do I plot it in tecplot. Tecplot plots it in cartesian coordinates."

Last edited:
Related Programming and Computer Science News on Phys.org

#### anorlunda

Mentor
Gold Member
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?

Mentor

#### sharmaN

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?

#### sharmaN

Ifound in tecplot to plot in polar coordinates, need to select polar line. Thanks

#### RPinPA

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$.

#### sharmaN

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.

"Generate a circle in FORTRAN having polar coordinates"

### Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving