Skip to main content

Triangle

Quadrature points on unit triangle

PROGRAM main
USE easifemBase
IMPLICIT NONE
TYPE(QuadraturePoint_) :: obj
TYPE(ReferenceTriangle_) :: refelem
INTEGER(I4B) :: order
refelem = ReferenceTriangle(nsd=2_I4B)
order = 4_I4B
CALL initiate(obj=obj, &
& refelem=refelem, &
& order=order, &
& quadratureType=GaussLegendre)
CALL display(obj, "ans: ")
END PROGRAM main
note

In the case of triangle quadratureType is ineffective, that is, we do not use quadratureType.

See results
x19.15762E-020.816859.15762E-020.445950.445950.1081
x29.15762E-029.15762E-020.816850.10810.445950.44595
w5.49759E-025.49759E-025.49759E-020.111690.111690.11169

Quadrature points on biunit triangle

PROGRAM main
USE easifemBase
IMPLICIT NONE
TYPE(QuadraturePoint_) :: obj
TYPE(ReferenceTriangle_) :: refelem
INTEGER(I4B) :: order
refelem = ReferenceTriangle(nsd=2_I4B, xij=RefCoord_Triangle("BIUNIT"))
order = 4_I4B
CALL Initiate(obj=obj, &
& refelem=refelem, &
& order=order, &
& quadratureType=GaussLegendre)
CALL Display(mdencode(obj) , "")
END PROGRAM main
See results
x1-0.816850.6337-0.81685-0.1081-0.1081-0.78379
x2-0.81685-0.816850.6337-0.78379-0.1081-0.1081
w0.21990.21990.21990.446760.446760.44676