necpp
necpp copied to clipboard
FIRST SEGMENT MIDPOINT OF WIRE ... INTERSECTS WIRE ...
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
https://github.com/cduck/necpp/commit/dc2682f84f1ddd0dfaf2ff86901a0280d67de1d1
which addresses the issue.