How to get the coordinates of dof with FE_Raviart_Thomas?

30 views
Skip to first unread message

Phạm Ngọc Kiên

unread,
Sep 23, 2019, 10:22:21 PM9/23/19
to deal.II User Group
Hi colleagues,
With FE_Raviart_Thomas in 3D, the dofs are defined normal to the faces of each cell.
For example, if we use  FE_RaviartThomas(0), then in a cell we have 6 dofs defined on the 6 faces, and there is no dofs on the lines.
Do we have any way to get the dof coordinates and the direction of the shape function of the dof?
I would like to thank you very much in advance.
Best regards,
Kien

Wolfgang Bangerth

unread,
Sep 23, 2019, 11:02:22 PM9/23/19
to dea...@googlegroups.com

Pham,

> With FE_Raviart_Thomas in 3D, the dofs are defined normal to the faces of each
> cell.
> For example, if we use FE_RaviartThomas
> <https://www.dealii.org/current/doxygen/deal.II/classFE__RaviartThomas.html#adc8e64d0cdb38af6e29dc9ac0279f121>(0),
> then in a cell we have 6 dofs defined on the 6 faces, and there is no dofs on
> the lines.
> Do we have any way to get the dof coordinates and the direction of the shape
> function of the dof?

You can get the coordinates using DoFTools::map_dofs_to_support_points(). As
for the direction: That's something that the RT element does internally using
a convention that takes into account the two adjacent cells. I don't think
there is a way to determine this direction outside the element short of
evaluating the shape function at a point on the face.

Best
W.


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

Phạm Ngọc Kiên

unread,
Sep 24, 2019, 1:13:12 AM9/24/19
to dea...@googlegroups.com
Dear Prof. Wolfgang Bangerth,
The function fe.has_support_points() returns false. This means that the FE_Raviart_Thomas does not have support points.
I think generalized_support_points are used for this type of finite element.

For FE_RaviartThomas(0), are the dofs defined at the centers of the faces of a cell?
Is the order of the dofs the same as that of the faces. In that case, I think I can loop over the faces to evaluate the shape function at a point on each surface for the purpose of finding the direction.

Thank you very much for your guidance.

Best regards,
Kien


Vào Th 3, 24 thg 9, 2019 vào lúc 12:02 Wolfgang Bangerth <bang...@colostate.edu> đã viết:
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/4457bd19-2f78-fb99-ada7-778b6e921e7e%40colostate.edu.

Praveen C

unread,
Sep 24, 2019, 2:17:56 AM9/24/19
to Deal. II Googlegroup
If you are going to use Cartesian meshes only, then you may want to check out


Best
praveen

Wolfgang Bangerth

unread,
Sep 24, 2019, 9:38:42 AM9/24/19
to dea...@googlegroups.com
On 9/23/19 11:12 PM, Phạm Ngọc Kiên wrote:
> The function fe.has_support_points() returns false. This means that the
> FE_Raviart_Thomas does not have support points.
> I think generalized_support_points are used for this type of finite element.

You are right -- the FE_RT is defined in terms of integrals on the faces, not
point values.


> For FE_RaviartThomas
> <https://www.dealii.org/current/doxygen/deal.II/classFE__RaviartThomas.html#adc8e64d0cdb38af6e29dc9ac0279f121>(0),
> are the dofs defined at the centers of the faces of a cell?

No, in fact they're not defined through interpolation at points at all, but
the degree of freedom is the integral along an entire face. But at least for
RT(0), that's only a constant multiple of the point value at the center of the
cell.


> Is the order of the dofs the same as that of the faces. In that case, I think
> I can loop over the faces to evaluate the shape function at a point on each
> surface for the purpose of finding the direction.

Yes, same order as the order of the faces of the cell.
Reply all
Reply to author
Forward
0 new messages