Hi.
I am running Garfield++ in a Jupyter notebook in SWAN.
I am trying to import a field map from COMSOL following the instructions in the manual here.
It seems that the mesh and materials file are imported properly, but the field file gives the error
ComponentComsol::Initialise:
Error parsing
Now, the field map that I produced from COMSOL is the components one (x,y,z).
In the manual there are no details about it.
Can anyone help debugging this?
Thank you
It seems it has problems reading the mesh file, typically it has to do with not exporting the second order elements. For this follow the instructions of the image bellow,
Hi @djjansse. Thank you for the prompt reply.
I just tried according to your suggestion and the same problem persists.
Indeed the complaint is not about the mesh file, but the field map.
Thank you
LM
Hi.
I found out the problem.
Following the instructions in the manual I was exporting from COMSOL and importing in Garfield the Electric Field, while the required file is the Potential map.
Once using the potential file it works fine.
I suggest clarifying this point in the instructions in the Garfield manual and the instructions written by @ikempf.
Thank you
LM
Great to hear that you found out the problem. However this confusion is a bit generic in the documentation, not restricted to COMSOL only. Everywhere in the manual, where one discusses the “field” or “weighting field” solutions to be loaded, this is always intended as a map of the potentials, not of the fields, because the FEM codes calculate the potential on the nodes. We should think a bit how to make this more clear in the documentation.
greets
Piet