necpp icon indicating copy to clipboard operation
necpp copied to clipboard

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

Open kzyapkov opened this issue 7 years ago • 1 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.

kzyapkov avatar May 18 '18 11:05 kzyapkov

There is a commit in a fork

https://github.com/cduck/necpp/commit/dc2682f84f1ddd0dfaf2ff86901a0280d67de1d1

which addresses the issue.

kzyapkov avatar May 19 '18 12:05 kzyapkov