Re: [deal.II] mesh_generator

2022-08-11 Thread LY XXXiao
Dear prof. Bangerth, Thank you so much for your help. Yes, I tested the make_grid part on a separate sheet. As long as my size is 41*41*37, the time cost did not go down, i.e. approx. 90-110 s. However, your solution 'coarse mesh + global refinement' did help, now it only cost 20s :) Thanks

Re: [deal.II] mesh_generator

2022-08-03 Thread Wolfgang Bangerth
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 cu

Re: [deal.II] mesh_generator

2022-08-03 Thread LY XXXiao
Dear Simon and prof. Bangerth Thanks for your kind replies. The issue finally turned out to be that I set a 'smoothness' when I defined the triangulation ( my supervisor found it, he is a deal ii deep lover XD). I have a further question though. The background is that, I am doing some electrom

Re: [deal.II] mesh_generator

2022-06-23 Thread Wolfgang Bangerth
On 6/24/22 00:22, LY XXXiao wrote: I have already a basic mesh with 120 cells, and I only want to refine one element among them, so I set a refine_flag for this element. But the refinement does not happen ?? Is there anything else that I missed? I learned step 1 and step 6 for meshing problem

Re: [deal.II] mesh_generator

2022-06-23 Thread Simon Sticko
Hi, Did you call triangulation.execute_coarsening_and_refinement(); after setting the refinement flag? Best, Simon On 23/06/2022 17:22, LY XXXiao wrote: Hi there, Has anyone experienced this issue in mesh refinement: I have already a basic mesh with 120 cells, and I only want to refine one

[deal.II] mesh_generator

2022-06-23 Thread LY XXXiao
Hi there, Has anyone experienced this issue in mesh refinement: I have already a basic mesh with 120 cells, and I only want to refine one element among them, so I set a refine_flag for this element. But the refinement does not happen ?? Is there anything else that I missed? I learned step 1 an