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:                 [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/4c79d380-21a8-8067-db2b-8697d2787704%40colostate.edu.

Reply via email to