Using SparseGridTopology with a .msh file #4765
-
Hi everyone, I'm trying to add a regular grid on top of an irregular shape and, from what I understood, SparseGridTopology could help me in doing that. I tried to run the example from the repository without problems. I tried to do the same inside my simulation, but instead of loading a
If I load the My question is: is this behaviour intended, meaning that SparseGridTopology is built only for I can provide the code for the simulation, but I think that what I'm trying to do is simply not possible, so even just a confirmation would be great. In that case I'll try to build a workaround. Thanks in advance for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello, This is because you are using the Hope that worked for you ! |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the quick reply. I already changed the loader with the correct one, I even tried to change it in the example given in the repository. breaking the example. Trying to load my mesh in that example, it didn't work. It just load the mesh once but doesn't create the three child nodes. Here's my code
In this example, if I change the I suspect I may be doing something incorrectly, maybe I need to add a |
Beta Was this translation helpful? Give feedback.
Hi @hugtalbot,
Thanks for the tip, now it is working exactly as I needed.
The only problem is that it is not working on a 2D mesh, but once I gave as input a 3D mesh created in Gmsh it worked.
For future reference here is the line that must be changed in the example I used before
It would be great to find a way to have it work on 2D mesh, but for the moment it solves my problem.
Thanks again!