-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
necsy #9
Comments
Interesting. Could this be made interactive so 'SY' lines could be passed by stdin and responses via stdout? The xnec2c parser could add SY support by:
Thus the python necsy code would be a co-processor for xnec2c when loading files. Questions:
|
Indeed, you could help remove this comment from input.c! case SY: /* "sy" TODO Compatibility with 4nec2.
Too difficult, may never happen :-( */
continue; |
Your comment #9 (comment) is very interesting and ambitious. At the moment i'm still investigating the capabilities of necsy to do the translation, without aborting or showing errors. I'm not a 4nec2 user and I have not yet tested any simulation results against 4nec2. I'll try to install it on a virtual machine and start testing.
Examples files are taken from 4nec2 and from a couple of other sources. I plan to test (Step 1: check only for the capability of providing an output) all the files bundled with 4nec2. |
It is if you disable forking because child processes expect to read the same input file. Here is a quick hack: cat examples/airplane.nec | xnec2c -i /proc/self/fd/0 -j0 The
FYI: 4nec2 works in WINE, too.
That makes sense, it is probably somewhat simple. Can you create an example .NEC file so I can try to add that?
There are some other pre-processing that necsy could do, like EX type 6 and LD types 6 and 7:
|
I'm writing a python script (necsy) to preprocess nec files containing the SY directive.
The script is still disorganized and probably with bugs, but already works in many cases I tested.
If you are interested, find it at https://github.com/scaramacai/necsy
The text was updated successfully, but these errors were encountered: