Overview
RefLine_
defines the reference element for line element. This element will be used for constructing finite elements on lines (1D). RefLine_
is a subclass of AbstractRefElem_
.
- To see the full structure of this class go to RefLine_.
Initiate
Use Initiate to construct an instance . An example is shows below:
PROGRAM main
USE easifemBase
USE easifemClasses
IMPLICIT NONE
TYPE(RefLine_) :: obj
REAL(DFP) :: avar, xij(1, 2)
CALL obj%Initiate(nsd=1, baseInterpol="Lagrange", baseContinuity="H1")
CALL display(obj%MdEncode(), 'Line2 : '//char_lf//char_lf)
END PROGRAM main
See results
Getting the name
To get the element name use GetName.
Getting facet elements
To get the facet elements use GetFacetElements. An example is given below:
PROGRAM main
USE easifemBase
USE easifemClasses
IMPLICIT NONE
TYPE(RefLine_) :: obj
TYPE(AbstractRefElementPointer_), ALLOCATABLE :: faceElem(:)
INTEGER(I4B) :: ii
TYPE(String) :: astr
REAL(DFP) :: avar, xij(1, 2)
CALL obj%Initiate(nsd=1, baseInterpol="Lagrange", baseContinuity="H1")
CALL obj%GetFacetElements(faceElem)
DO ii = 1, SIZE(faceElem)
astr = "**Facet Element "//tostring(ii)//"**"//char_lf//char_lf// &
& faceElem(ii)%ptr%MdEncode()
CALL display(astr, "")
END DO
END PROGRAM main
See results
Getting nodal coordinates
To get nodal coordinates of element use GetNodeCoord.