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

FIRST SEGMENT MIDPOINT OF WIRE ... INTERSECTS WIRE ...

kzyapkov opened this issue · comments

I have been using xnec2c to play with antenna simulations, but it is very tedious to use it for optimizations, hence my attempts with necpp.

I wasn' able to build a working model though. See this gist

https://gist.github.com/kzyapkov/02ccfb62b7d9f3d73d29271c86afd48a

The nec file works fine with xnec2c, but an identical design build with necpp results in

RuntimeError: GEOMETRY DATA ERROR -- FIRST SEGMENT MIDPOINT OF WIRE #4 (TAG ID #10) INTERSECTS WIRE #1 (TAG ID #1)

I am using the python wrapper, but trying to run nec2++ with this .nec file (or many of the examples in the xnec2c code) results in the same geometry error.

There is a commit in a fork

cduck@dc2682f

which addresses the issue.