Skip to content
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

fix whiteline bug and clean code #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

simondona
Copy link

The output files had problems with FastCap2 due to a white line. Moreover the two big functions have been merged because they were sharing most of the code: now the code should be easier to maintain.

@ediloren
Copy link
Owner

Hi Simone

thanks for the pull request. I'm reviewing the commits before merging. What is the issue with the whiteline in FastCap2? Actually there should be no issue (even if the code had been actually written to produce an input file for FasterCap, not for FastCap2: dielectric in/out definitions are per-panel references, as finding a common reference point for an arbitrary group of panels forming a dielectric interface is a more challenging task)

Enrico

@simondona
Copy link
Author

simondona commented Jan 5, 2018

Hi Enrico, sorry for the huge delay.
I just tried to reproduce the issue. Compiled FastCap2 (https://github.com/ediloren/FastCap2) from the branch WRCad on Debian testing.
After exporting a mesh with the current EM-Workbench-for-FreeCAD code, calling fastcap mymesh.txt gives me the following error:

Running ./fastcap 2.0wr (18Sep92, rev 070714)
  Input: mymesh.txt
quickif: bad line format, line 3:

By deleting the white line on line 3 the simulation runs correctly.

Simone

@ediloren
Copy link
Owner

ediloren commented Jan 10, 2018 via email

@simondona
Copy link
Author

Ok, now I understand, thank you!
Ciao
Simone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants