Re: radiation pattern of log-periodic antenna



Roy Lewallen wrote:
Frank wrote:

. . . NEC source code is available
in FORTRAN, so you could translate it to C.


It was done long ago. See http://www.nic.funet.fi/pub/ham/antenna/NEC/swindex.html for sources. A google search might reveal others.

Roy Lewallen, W7EL

A simpler approach, depending on the accuracy needed, might be to convert some matlab codes. Orfanidis's book has matlab routines to do the mutual coupling calculations and the transmission lines and to generate a radiation pattern from the element currents. heck, he might even have a LPDA model in there.. it would be a good exercise for a class on computational electromagnetics. If it's a free space model, that might be the easiest.

I have heard, but do not know from my own experience or anyone I know (essentialy it is totally unsubstantiated rumor), that the NEC repository C code version of NEC (converted by something like f2c) has a number of problems. Given the age of the original FORTRAN code and its coding style, I can believe that a machine translation might introduce artifacts.
.



Relevant Pages

  • Re: Very long computation, speed is the issue: gcc or g77 ?
    ... > column major order and C stores them in row order. ... > performance comparisons misleading if you just translate one language ... Elimination program into Fortran. ...
    (comp.lang.fortran)
  • Re: How to get MACAddress?
    ... but the window-specific question isn't ... I'll note I pointed you to the CVF sample code that illustrates the use ... I'll take a look at what it might take to translate it to ... Fortran using the CVF compiler. ...
    (microsoft.public.vb.general.discussion)
  • Re: You are my hope. Please
    ... > structrured language. ... You seem to me to be mixing up two things. ... Do you want to translate the code into C? ... You can translate the code into more structured one in Fortran. ...
    (comp.lang.fortran)
  • Re: CMUCL Warning
    ... > The part of the code where the warning occurs reads as follows: ... I have translated it in lisp from fortran. ... There may not be a need to hand translate the Fortran flavored NR code ...
    (comp.lang.lisp)
  • Re: radiation pattern of log-periodic antenna
    ... in FORTRAN, so you could translate it to C. ... google search might reveal others. ... but it has subtle bugs. ...
    (rec.radio.amateur.antenna)