NEC Source Code
Alan Bain (M5AIQ)
This page is an attempt to collect together various versions
of the FORTRAN source code for NEC the Numerical Electromagnetic
Code produced by Laurence Livermore Laboratories in order to
establish a know working version.
Some Goals
- To find a copy of the original code as per the report issued
by Laurence Livermore Labs (part II).
- Produce a single and a double
precision version which compile without error on modern fortran
compilers, on machines without tape drives.
Subgoals of this are:
- Not to use INTEGERs for storing CHARACTER data
- Identify how the input routine works (non fixed format)
and update the documentation accordingly
- Identify useful user add ons (like helices of length
zero for spirals) and document correctly
- Remove less useful user add ons
- Produce a unix friendly version which performs argument
parsing correctly in a unix like fashion
Information
If you have any versions of the NEC2 fortran then I would be
interested to hear from you. Please mail me ([email protected])
with information! Similarly comments on code which won't
compile, errors etc. are most welcome.
Code
This archive is fairly small at the moment and I hope that
it will grow. Numbers in parentheses are the RCS version
numbers of the code from my copy.
Tutorial Material
To a first time user, especially someone not acquainted with FORTRAN
programs in the `good old days' NEC can seem quite intimidating. It
expects the input to be in the format of `cards', and the manual
even includes pictures of how to punch them! The output is equally
obscure since the program was originally designed for batch
execution. These days, on a modern workstation things are much simpler.
The following tutorial material may be of some use
- Basic Introduction -- Modelling a
Monopole above Ground
- Intermediate Guide -- An Imperfect Ground
- Advanced Features -- Excitation Response
Note that some parts are not yet available on line.
NEC Links
The following sites contain useful information about NEC