ubuntu-hams-devel team mailing list archive
-
ubuntu-hams-devel team
-
Mailing list archive
-
Message #00945
[Bug 1083301] Re: wrong vis. routine: single dipole no rotational symmetry
To clarify why the fix is needed, I suggest this temporary code
change:
In the "WriteCardFile" function, "pccard.c" file line 321, replace
this line:
increment, increment, step_size, step_size);
by this line:
3, 10, 5, 5);
That will calculate and plot antenna gain for only 3 theta angles and
10 phi angles, starting from theta=0 (z axis), increment of 5 degrees.
Axis and angles in NEC2 are oriented according to this Figure:
http://nec2.org/part_3/gifs/fig18.gif
(In antennavis, +x points to the right, and phi angle grows in the
direction backward from the screen. Note that the "azimuth"
argument to the PlotPoint is theta (contrary to what one could
expect: azimuth=phi).)
The above temporary change is only for you to verify that my bug-fix
will fix the result - it is not to be kept in the code permanently.
Best,
-Bohumir
--
You received this bug notification because you are a member of Ubuntu
ham developers, which is subscribed to antennavis in Ubuntu.
https://bugs.launchpad.net/bugs/1083301
Title:
wrong vis. routine: single dipole no rotational symmetry
Status in “antennavis” package in Ubuntu:
New
Bug description:
Dear Antennavis maintainers,
I am Bohumir, co-author of http://yagi-logper.sourceforge.net/.
Thanks for maintaining antennavis package. I am fond of antennavis.
I believe I found a small bug in the antennavis visualization routines.
It appears, for example, when you give Antennavis a single dipole as input, as
attached. Result should be a rotationally symmetric around the axis of
the dipole, but it is not.
Following three lines, in PlotPoint() function, VisField.c file are
wrong:
glRotatef(azimuth, 0.0, 1.0, 0.0);
glRotatef(elevation, 1.0, 0.0, 0.0);
glTranslatef(0.0, 0.0, dist * POINT_DIST_SCALE);
They should be replaced by:
glRotatef(elevation, 0.0, 1.0, 0.0);
glRotatef(azimuth, 0.0, 0.0, -1.0);
glTranslatef(0.0, dist * POINT_DIST_SCALE, 0.0);
The above change will fix the problem.
I would be very glad if you can implement the above change.
I can supply it in a form of patch if needed.
Best,
-Bohumir
http://www.cavs.msstate.edu/directory/information.php?eid=69
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/antennavis/+bug/1083301/+subscriptions
References