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
Line2 :
| Element type | Line2 |
| Xidimension | 1 |
| NSD | 1 |
| tPoints | 2 |
| tLines | 1 |
| tSurfaces | 0 |
| tVolumes | 0 |
| BaseContinuity | H1 |
| BaseInterpolation | LagrangeInterpolation |
Nodal Coordinates:
| x | -1 | 1 |
PointTopology( 1 ) :
| Element type | Point1 |
| Xidimension | 0 |
| Nptrs | 1 |
PointTopology( 2 ) :
| Element type | Point1 |
| Xidimension | 0 |
| Nptrs | 2 |
EdgeTopology( 1 ) :
| Element type | Line2 | |
| Xidimension | 1 | |
| Nptrs | 1 | 2 |
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
Facet Element 1
| Element type | Point1 |
| Xidimension | 0 |
| NSD | 1 |
| tPoints | 1 |
| tLines | 0 |
| tSurfaces | 0 |
| tVolumes | 0 |
| BaseContinuity | H1 |
| BaseInterpolation | LagrangeInterpolation |
Nodal Coordinates:
| x | -1 |
PointTopology( 1 ) :
| Element type | Point1 |
| Xidimension | 0 |
| Nptrs | 1 |
Facet Element 2
| Element type | Point1 |
| Xidimension | 0 |
| NSD | 1 |
| tPoints | 1 |
| tLines | 0 |
| tSurfaces | 0 |
| tVolumes | 0 |
| BaseContinuity | H1 |
| BaseInterpolation | LagrangeInterpolation |
Nodal Coordinates:
| x | 1 |
PointTopology( 1 ) :
| Element type | Point1 |
| Xidimension | 0 |
| Nptrs | 1 |
Getting nodal coordinates
To get nodal coordinates of element use GetNodeCoord.