Closed fredrikekre closed 2 years ago
Thanks for reporting the bug! It was a small logical error inside the cellset creation (https://github.com/Ferrite-FEM/FerriteGmsh.jl/commit/f5c234f5fc660b41d5d1e2eb4b8f0e901948649b). I never tested PhysicalGroups where multiple entities belong to one group, but I'll add it now to the tests!
I think it should look like that right:
Great, thanks!
Looks like the same bug happens for facesets:
ERROR: LoadError: ArgumentError: there already exists a set with the name: left
Edit: Nevermind, I did something stupid.
works? If so, I'll add the facesets test in the evening to https://github.com/Ferrite-FEM/FerriteGmsh.jl/pull/11
Yea it works (I will still trying to add the facesets in my own code even though I had moved them to the mesh file). Here is an updated mesh with facesets:
I played around a bit with this package, mainly just for reading .geo and .msh files. It is very nice compared to my own little mesh reader I used in the past!
Anyway, I was thinking I could use "Physical Groups" to mark regions in the mesh and have that translate to cellsets in Ferrite. That seems to work if there is just one surface in the group, the remaining ones seems to be forgotten. I attach the .msh file here: test.log (I had to change
.msh
extension.log
for GitHub to accept it). Checking e.g.only one of the circles are included in the
"inclusions"
cellset.