LagrangeFE example 2
In this exmple we test Lagrange finite element on Triangle element. Interpolation points are equidistance.
Modules and classes
- [[LagrangeFE_]]
Usage
PROGRAM main
use easifemBase
use easifemClasses
implicit none
type(LagrangeFE_) :: obj
integer(i4b) :: order
integer(i4b), parameter :: elemType=Triangle
character(len=*), parameter :: elemName="Triangle"
integer(i4b), parameter :: ipType=IP_EQUIDISTANCE
!!! note "Order=1"
order=1
call obj%Initiate(elemType=elemType, order=order, ipType=ipType)
call obj%Display( elemName // "order=" //tostring(order) )
!!! example "result" order=1 Total Basis=3
!!! note "Order=2"
order=2
call blanklines(nol=3)
call obj%Initiate(elemType=elemType, order=order, ipType=ipType)
call obj%Display( elemName // "order=" //tostring(order) )
!!! example "result" order=2 Total Basis=6
!!! note "Order=3"
order=3
call blanklines(nol=3)
call obj%Initiate(elemType=elemType, order=order, ipType=ipType)
call obj%Display( elemName // "order=" //tostring(order) )
!!! example "result" order=3 Total Basis=10
END PROGRAM main