View Single Post
  #4   Report Post  
Old March 27th 18, 07:36 PM posted to rec.radio.amateur.antenna
Jeff Liebermann[_2_] Jeff Liebermann[_2_] is offline
external usenet poster
 
First recorded activity by RadioBanter: Jun 2007
Posts: 1,336
Default exporting radiating patterns (using NEC for educational purposes)

On Tue, 27 Mar 2018 18:27:42 +0200, kristoff
wrote:

I'll concidering writing something myself to do this as there are python
libraries that interact with nec directly.
Perhaps it would be a good exercise to learn more about the 3D plotting
libraries in python.


I'm confused. Do you want to "plot" the output in 3D or do your want
to "visualize" the output in 3D? Plotting implies a 2D display, such
as an LCD display, projector, or piece of paper. Visualization
implies the use of a HUD (heads up display), polarizing glasses, or if
desperate, anaglyph glasses. Which are you looking for?

I just did some searching for antenna models that used anaglyphs.
Nothing found.

It shouldn't be too difficult to make a movie or viewer using only
4NEC2 3D screen output. When viewing an antenna, capture the current
3D screen as well as the next screen after about a 2 degree rotation.
Convert one image to shades of red, the other to shades of blue.
Conglomerate into an anaglyph image. With blue/red glasses, you
should see it in 3D. The difficult part will be determining the
rotating angle and antenna size that corresponds to the spacing
between your eyes. Then, writing a program that captures successive
frames and creates the anaglyph.

Your method looks interessing but seems to require a lot of manual work.


Yep. I could automate the process with a scripting language or even
keyboard macros. Not a big deal, but without a paying customer, I'm
just too lazy to do it.

--
Jeff Liebermann
150 Felker St #D
http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558