On 8/3/22 01:34, LY XXXiao wrote:


I have a further question though. The background is that, I am doing some electromagnetic geophysics simulation based on an octree mesh, and before that, I make a rectangular base mesh (make_grid) using *GridGenerator::subdivided_hyper_rectangle*. For the current case, my mesh size is 41*41*37, it will take 90s to make the grid. Is this time cost reasonable, as I don't feel so..

It probably shouldn't take that long. Do you think you could come up with a small test program (only containing the generation of the mesh) that illustrates the issue and shows that the time is really spent in the generation of the mesh?

As a general rule, though, one should try to create meshes by using as coarse a mesh and then refine it. That's obviously not possible with a 41x41x37 mesh because these are all prime numbers, but if you had wanted a mesh with 40x40x36 cells, for example, then one would generate a 10x10x9 cell mesh and refine it globally twice.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/53a116ff-b4fe-2076-1a6e-0a51f42f2466%40colostate.edu.

Reply via email to