Wang ...
I have been running NEC 2 for years in batch mode, creating input
files on the run, or prior to commencement. The largest batch I have run so
far was 4500 models. I use TURBO PASCAL to create input files, as well as
to write the batch file to run the jobs, but you could use any other
language.
TURBO PASCAL code to write a 20 metere dipole might look something
like ...
...
writeln(NECfile,'CM .... <add comments here>');
writeln(NECfile,'CM .... <more comments>');
writeln(NECfile,'CE');
writeln(NECFILE,'GW 1,5,-10,0,0,10,0,0'); {dipole wire}
writeln(NECfile,'GE'); {end of geometry}
writeln(NECfile,'EX 5,1,3,0,1.0,0.0'); {excitation}
writeln(NECfile,'FR 0,0,0,0,10.0,1.0'); {frequency}
writeln(NECfile,'RP 0,19,72,1501,0.0,0.0,5.0,5.0,1.e6,0.0');
{radiation patterns at 5 degree increments}
writeln(NECfile,'EN'); {end
of NEC input}
...
I have used a variation of this technique to optimise antenna
geometry for some parameter. A text file is written containing parameters
that describe the geometry (wire lengths, spacing etc), and then NEC is run.
The output is examined (by another program) to examine the desired
parameters and make some decision as to what changes need to be made. A new
geometry parameter file created, and the process repeated until the antenna
parameter is acceptable.
I run NEC-2 under a 32 bit DOS, but I guess you could do the same
under a DOS shell. I have also called NEC from applications written in
DELPHI, and this is another area where input files could be written.
Good luck.
Alan Nott BEE, CEng, MIEE
Senior Technical Specialist Engineer
Electromagnetics and Software
Fire Support Unit
Land Engineering Agency
Tel + 61 3 9622 2835
Fax + 61 3 9282 7311
email: alan.nott_at_defence.gov.au
-- The NEC-List mailing list <nec-list_at_gweep.ca> http://www.gweep.ca/mailman/listinfo.cgi/nec-listReceived on Sun Jan 20 2002 - 17:16:17 EST
This archive was generated by hypermail 2.2.0 : Sat Oct 02 2010 - 00:10:42 EDT