tmolteno / necpp

NEC2++ is a C++ rewrite of the Numerical Electromagnetics Code (NEC-2) with many new features like automatic error detection when you specify the structure incorrectly and much faster execution. Nec2++ can analyse radiating as well as scattering properties of structures. The simulation engine in Nec2++ is compiled into a library for easy integration into automatic antenna design systems or GUI tools. Examples are included for using Nec2++ from C/C++, Ruby and Python.

Home Page:http://elec.otago.ac.nz/w/index.php/Necpp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parsing nec cards:: comment character

gaming-hacker opened this issue · comments

i usually use other programs like 4nec2 and in the input files it treats the single quote character as the beginning of a comment in a line and ignores it so you can document the command.

i'm going to hack the parser and either use the single quote or maybe the # character like bash

{code}
SY hgh=20 ' Height
SY len=20 ' Wire length
SY ang=110 ' Angle between sloping wires
SY Z=len_cos(ang/2), X=len_sin(ang/2) ' Get delta-Z and -X distances
{\code}