Can dealii handle different type of element in a grid

68 views
Skip to first unread message

徐辉

unread,
May 26, 2020, 10:13:35 AM5/26/20
to deal.II User Group
I want using different type of element in a grid in dealii.

I already have a grid,  I want solve problem based on this grid.  The grid contain different type of element. For example in 2D, I have some one order triangle element and some one order quadrilateral element. Or another example in 2D, I have some some one order quadrilateral element and some two order quadrilateral element.

I search dealii's tutorial do not found any topic talk about using different type element in a grid. And I found in dealii FAQ first item that seems dealii not support triangle or tetrahedra.

Does dealii can only support one kind of element to assemble a discrete system? All element in grid must be same? Is there any reference can help me?

Thanks for your time.

Bruno Turcksin

unread,
May 26, 2020, 10:25:46 AM5/26/20
to deal.II User Group
Hi,

deal.II only supports quads in 2D and hex in 3D.So if you have triangles you will need to split them. For the quads, you probably want to load order one quads and then, use a manifold to get the higher order. step 49 (https://dealii.org/current/doxygen/deal.II/step_49.html)  shows how to manipulate meshes.

Best,

Bruno

Wolfgang Bangerth

unread,
May 26, 2020, 10:48:06 AM5/26/20
to dea...@googlegroups.com
On 5/26/20 8:13 AM, 徐辉 wrote:
> Or another example in 2D, I have some some one order quadrilateral element and
> some two order quadrilateral element.

Or, if you mean the polynomial degree, you want to use the hp framework -- see
step-27 and step-46.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

徐辉

unread,
May 26, 2020, 8:26:35 PM5/26/20
to deal.II User Group
Thanks sir, I will have a look at the tutorial you listed. Thank you for you all's time.
Reply all
Reply to author
Forward
0 new messages