On Tue, Sep 19, 2017 at 5:00 AM, luca.heltai <
luca....@gmail.com> wrote:
> Dear Lucas,
>
> you could use GridTools::remove_anisotropy
>
> Best,
> Luca.
>
>> On 18 Sep 2017, at 16:29, Lucas Campos <
rmk...@gmail.com> wrote:
>>
>> Dear Bruno,
>>
>> You will find attached the resulting grids. While I originally expected to find new divisions only along the x-direction, your previous answer tells me it actually cuts in some local coordinate (whatever that might be). In this case, what is the best way to refine the cylinder in a single direction? I tried adding an if(cell->boundary_id() == 0) before setting the flag, but it did not really help. The mesh is still being refined in all directions.
>>
>> I ask this because I plan to do some transformations on this cylinder, to turn it into a coil. In this case, the final result is much better if there are enough cuts in the x-axis.
>>
>> Bests
>>
>> On Monday, 18 September 2017 14:44:40 UTC+2, Bruno Turcksin wrote:
>> 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, 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
>>
>> --