Skip to main content

Quadrangle

Gauss-Legendre on Biunit quadrangle

PROGRAM main
USE easifemBase
IMPLICIT NONE
TYPE(QuadraturePoint_) :: obj
TYPE(ReferenceQuadrangle_) :: refelem
INTEGER(I4B) :: order
refelem = ReferenceQuadrangle(nsd=2_I4B)
order = 4_I4B
CALL initiate(obj=obj, &
& refelem=refelem, &
& order=order, &
& quadratureType=GaussLegendre)
CALL display(mdencode(obj) , "")
END PROGRAM main
See results
x1-0.7746-0.7746-0.77461.8735E-161.66533E-161.66533E-160.77460.77460.7746
x2-0.77462.22045E-160.7746-0.77461.66533E-160.7746-0.77461.80411E-160.7746
w0.308640.493830.308640.493830.790120.493830.308640.493830.30864
note

You can set quadratureType to following values:

GaussLegendre; GaussLegendreLobatto; GaussLegendreRadauLeft; GaussLegendreRadauRight; GaussJacobi; GaussJacobiLobatto; GaussJacobiRadauLeft; GaussJacobiRadauRight; GaussUltraspherical; GaussUltrasphericalLobatto; GaussUltrasphericalRadauLeft; GaussUltrasphericalRadauRight

Gauss-Legendre points on unit quadrangle

PROGRAM main
USE easifemBase
IMPLICIT NONE
TYPE(QuadraturePoint_) :: obj
TYPE(ReferenceQuadrangle_) :: refelem
INTEGER(I4B) :: order
refelem = ReferenceQuadrangle(nsd=2_I4B, xij=RefCoord_Quadrangle("UNIT"))
order = 4_I4B
CALL initiate(obj=obj, &
& refelem=refelem, &
& order=order, &
& quadratureType=GaussLegendre)
CALL display(mdencode(obj), "")
END PROGRAM main
See results
x10.11270.11270.11270.50.50.50.88730.88730.8873
x20.11270.50.88730.11270.50.88730.11270.50.8873
w7.71605E-020.123467.71605E-020.123460.197530.123467.71605E-020.123467.71605E-02

Anisotropic order

PROGRAM main
USE easifemBase
IMPLICIT NONE
TYPE(QuadraturePoint_) :: obj
TYPE(ReferenceQuadrangle_) :: refelem
INTEGER(I4B) :: order
refelem = ReferenceQuadrangle(nsd=2_I4B)
order = 4_I4B
CALL initiate(obj=obj, &
& refelem=refelem, &
& p=4, &
& q=3, &
& r=1, &
& quadratureType1=GaussLegendre, &
& quadratureType2=GaussLegendre, &
& quadratureType3=GaussLegendre )
CALL display(mdencode(obj) , "")
END PROGRAM main
See results
x1-0.7746-0.77463.60822E-163.33067E-160.77460.7746
x2-0.577350.57735-0.577350.57735-0.577350.57735
w0.555560.555560.888890.888890.555560.55556