Bug #767

grdvector with polar coordinates

Added by chuan almost 2 years ago. Updated over 1 year ago.

Status:ClosedStart date:2015-09-20
Priority:NormalDue date:
Assignee:Paul% Done:

100%

Category:-
Target version:Candidate for next bugfix release
Affected version:4.5.x Platform:Linux

Description

Hello:

I found that some errors may happen when using grdvector to handle velocity field in polar coordinates.
For example, suppose file 'vel_x' and 'vel_y' respectively contains the x and y component of velocity field, then every thing is right if cartesian coordinates is used (see file 'draw' and the result shows in 'draw.png'). However, the result may be wrong if polar coordinates is adopted, because as you can see from 'draw_polar.png', the 3 arrows in degree 45 should not perpendicular to the theta direction (the script for polar coordinates is in file 'draw_polar').

vel_x (17 Bytes) chuan, 2015-09-20 16:37

vel_y (17 Bytes) chuan, 2015-09-20 16:37

draw (294 Bytes) chuan, 2015-09-20 16:37

draw_polar (310 Bytes) chuan, 2015-09-20 16:38

draw.png (9.36 KB) chuan, 2015-09-20 16:57

draw_polar.png (16.3 KB) chuan, 2015-09-20 17:12

Associated revisions

Revision 15154
Added by Paul over 1 year ago

Added new test in support of issue #767

History

#1 Updated by chuan almost 2 years ago

I missed a file 'draw_polar.png'

#2 Updated by Paul almost 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Paul
  • Target version set to Candidate for next bugfix release

I see the problem and will work on a fix soon.

#3 Updated by Paul over 1 year ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Should be fixed in r15161 [5.2 branch]

#4 Updated by Joaquim over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF