On 8/16/22 07:23, Uclus Heis wrote:
>
> GridGenerator::hyper_rectangle(triangulation,Point<dim>(0,0,0),Point<dim>(2,1,1),false
> );
> triangulation.refine_global(2);
>
> This code generates. rectangle with 4 cells per direction. How can I perform a
> refinement so that I get more elements at the long dimension of the rectangle,
> for example 8 cells? I can not find a function to determine the number of
> refinements per direction. Could you please help me?
>
Take a look at GridGenerator::subdivided_hyper_rectangle().
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/