I am currently trying to mesh something from an SPN file using PSculpt. I have attached the input file below. Note that the ‘variables’ are defined as such because I am generating the input file in Python.
However, when I add the coarse mesh option, the mesh is cropped weirdly. I found that as the number of adapt_levels increases, the more the mesh is cropped. The image below shows the same object meshed with the coarse mesh option, with adapt_levels = 5.
I’m not seeing your spn file. Did it not attach correctly?
I’m not sure I understand the question. The adapt_levels = 5 should coarsen the mesh. That looks like what it is doing to me. The coarsen option does not do a global coarsening of the mesh. That would be controlled by the number of elements in the in initial grid. Adaptivity takes the initial grid and then coarsens that grid where it can. Some of your material areas are small and no coarsening can occur and still maintain a valid mesh. That will impact the ability to coarsen neighboring regions.
Thank you for the response, Karl. That makes sense to me. I had previously used the coarsen option and this cropping issue did not occur, which is why I am so confused.
You can see that the use of the coarse option has caused the mesh to shrink. A greater adapt_levels value causes the cropping issue to be more severe. Do you know why this may be the case?
That is strange. I can maybe see why the shrinkage would occur as the element sizes increase during coarsening, but I don’t think it should. I will send this off to the developer at Sandia. This could be a bug in coarsening.