hello , When I try to import the weight field file obtained from comsol, the error message in the figure below always appears. I did it again many times, the result is still like this.!
WPOT.txt is the electric potential (V) distribution file
WPOT1.txt is the electric field (V/m) distribution file
The file is relatively large, so it is compressed using compression software (360zip) WPOT.zip (501.2 KB) WPOT1.zip (674.6 KB)
A change of the SetWeightingField function has been pushed to the repository. I would be curious to know if this solves your problem. If not, please let me know.
Thank you for coming back to me. In that case could you provide me with the files containing the code, mesh information and dielectric constants? This will allow me to run it in full.
Hello ,Dear djjansse.
Have you found the cause of the error? I tried to make changes, but the same error message is still displayed so far. I really don’t know what to do.
If you find the reason, please tell me, thank you!
My apologies for my late reply. I have run your code and everything seems to be working as intended on my end. That is, the ComponentComsol error message has disappeared, the weighting field is imported and the code runs until the end. Do you still have the “Error parsing WPOT1.txt” message?
Thank you for your reply. Yes, the error message still exists. Maybe it’s because of the software version? I think I may need to reinstall the software?
Yes, you should pull the newest version from git (execute “git pull” in the Garfield++ folder) and then rebuild the code as instructed in the installation guide. Let me know if this solves it.