Ce,

If you don't have hanging nodes, you can flatten the triangulation (C++ 
<https://dealii.org/developer/doxygen/deal.II/namespaceGridGenerator.html#afe86bf1a4502131ec811a6de41ab41e9>,
 
python 
<https://github.com/dealii/dealii/blob/master/contrib/python-bindings/notebooks/tutorial-1.ipynb>)
 
before saving the triangulation. This will create a new coarse mesh. The 
other solution is to load the mesh from a vtu file (see here 
<https://dealii.org/developer/doxygen/deal.II/classGridIn.html#aa80d89ec984220daf840b0a34e3d216d>).
 


Best,

Bruno

On Tuesday, February 2, 2021 at 9:03:00 AM UTC-5 [email protected] wrote:

> Dear all,
>
> I want to create a p::d::Triangulation from a locally refined 
> Triangulation which is loaded from a file (for example, we can create a 
> triangulation using the python interface, refine some cells, then save it 
> to file). I am aware that we can't use copy_triangulation since the 
> triangulation being copied must be a *coarse mesh*. Is there a way to 
> achieve this? Any suggestion will be appreciated.
>
> Thanks.
>
> Best regards,
> Ce
>

-- 
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/3f51912a-2e9d-47ae-bac1-70f0aade81dbn%40googlegroups.com.

Reply via email to