Skip to main content

Understanding FEDOF in easifem (Part 3)

· 2 min read
Vikas Sharma
Assistant Professor, Kyoto University, Japan

FEDOF

note
  • Read the part 1 of this series here before proceeding further.
  • Read the part 2 of this series here before proceeding further.

In this note we will study the FEDOF for scalar field using H1 conforming Hierarchical basis functions. The main focus is on generating quadrature points and shape functions.

In this note we will focus on 2D mesh with quadrilateral.

Quadrilateral mesh

Scalar FEDOF

Initiate the FEDOF object and scalar field by using the following code.

CALL u%ImportFromToml(tomlName="u", fedof=fedof, dom=dom, filename=tomlFileName)
CALL fedof%Display(msg="FEDOF info: ")

Getting quadrature points

The following code gets the quadrature points in an element.

CALL fedof%GetQuadraturePoints(quad=qp, globalElement=1, islocal=yes)
CALL Display(qp, "Quadrature points: ")
Quadrature points
x1x2x3x4x5x6x7x8x9x10x11x12x13x14x15x16
-0.861136-0.861136-0.861136-0.861136-0.339981-0.339981-0.339981-0.3399810.3399810.3399810.3399810.3399810.8611360.8611360.8611360.861136
-0.861136-0.3399810.3399810.861136-0.861136-0.3399810.3399810.861136-0.861136-0.3399810.3399810.861136-0.861136-0.3399810.3399810.861136
0.1210030.2268520.2268520.1210030.2268520.4252930.4252930.2268520.2268520.4252930.4252930.2268520.1210030.2268520.2268520.121003

Getting shape functions