Generate a circle in FORTRAN having polar coordinates

Click For Summary

Discussion Overview

The discussion revolves around generating a circle using polar coordinates in FORTRAN and plotting it in Tecplot. Participants explore the conversion from polar to Cartesian coordinates for visualization purposes.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • One participant inquires about plotting a grid in polar coordinates using Tecplot, which typically uses Cartesian coordinates.
  • Another participant suggests that creating a grid in polar coordinates involves looping over the radius (r) and angle (θ), possibly implying a rectangular grid within a circle.
  • There is a question about whether the discussion pertains to FORTRAN or Tecplot, indicating some confusion about the focus of the inquiry.
  • A later reply mentions that to plot in polar coordinates in Tecplot, one needs to select the polar line option.
  • Another participant provides a general method for generating points around a circle using the equations x = r cos(θ) and y = r sin(θ) as θ varies from 0 to 2π.
  • One participant acknowledges having the grid but expresses difficulty with the plotting process.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the plotting process and the relationship between polar and Cartesian coordinates. There is no clear consensus on the best approach to take.

Contextual Notes

Some assumptions about the definitions of polar and Cartesian coordinates may not be fully articulated, and the discussion does not resolve the specific challenges faced in plotting.

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 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 5 ·
Replies
5
Views
14K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 17 ·
Replies
17
Views
6K