Lucas,

On Monday, September 18, 2017 at 3:50:20 AM UTC-4, Lucas Campos wrote:
>
> I am trying to refine a cylinder in the x direction only, but it seems 
> that when I use 
>
> > cell->set_refine_flag(RefinementCase<3>::cut_x);
>
> the whole cylinder is refined. Indeed, if I run the above line for every 
> active cell *once* I would expect the number of cells to double. However, 
> they quintuple!
>
It looks good but how does the mesh look like? Here 
<http://dealii.org/developer/doxygen/deal.II/classCellAccessor.html#afb6cc537720a5b6381c237abe0887de2>,
 
you can see that cut_x is in the local coordinate system not the global 
one. So I would not be surprise if the mesh doesn't look like you think it 
should. Also if you do more than one refinement you should also use 
prepare_coarsening_and_refinement() before you refine your mesh.

Best,

Bruno

-- 
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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to